4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
28 PRIOCNTLOBJ
= $(PROG
).o subr.o
30 PRIOCNTLSRC
= $(PRIOCNTLOBJ
:%.o
=%.c
)
31 OBJS
= $(PRIOCNTLOBJ
) rt
$(PROG
).o ts
$(PROG
).o ia
$(PROG
).o fss
$(PROG
).o \
32 fx
$(PROG
).o sdc
$(PROG
).o
35 include ..
/Makefile.cmd
38 CERRWARN
+= -Wno-parentheses
39 CERRWARN
+= -Wno-uninitialized
41 CLASSD
= $(ROOTLIB
)/class
48 DIRS
= $(CLASSD
) $(RTD
) $(SDCD
) $(TSD
) $(IAD
) $(FSSD
) $(FXD
)
57 ROOTRTPROG
= $(RTD
)/$(RTPROG
)
58 ROOTSDCPROG
= $(SDCD
)/$(SDCPROG
)
59 ROOTTSPROG
= $(TSD
)/$(TSPROG
)
60 ROOTIAPROG
= $(IAD
)/$(IAPROG
)
61 ROOTFSSPROG
= $(FSSD
)/$(FSSPROG
)
62 ROOTFXPROG
= $(FXD
)/$(FXPROG
)
64 $(ROOTUSRSBINPROG
) := FILEMODE
= 04555
65 $(DIRS
) := FILEMODE
= 0775
66 CLOBBERFILES
+= $(RTPROG
) $(SDCPROG
) $(TSPROG
) $(IAPROG
) $(FSSPROG
) $(FXPROG
)
89 all: $(PROG
) $(RTPROG
) $(SDCPROG
) $(TSPROG
) $(IAPROG
) $(FSSPROG
) $(FXPROG
)
91 $(PROG
): $(PRIOCNTLOBJ
)
92 $(LINK.c
) $(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
95 $(RTPROG
): rt
$(PRIOCNTLOBJ
)
96 $(LINK.c
) rt
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
99 $(SDCPROG
): sdc
$(PRIOCNTLOBJ
)
100 $(LINK.c
) sdc
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
103 $(TSPROG
): ts
$(PRIOCNTLOBJ
)
104 $(LINK.c
) ts
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
107 $(IAPROG
): ia
$(PRIOCNTLOBJ
)
108 $(LINK.c
) ia
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
111 $(FSSPROG
): fss
$(PRIOCNTLOBJ
)
112 $(LINK.c
) fss
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
115 $(FXPROG
): fx
$(PRIOCNTLOBJ
)
116 $(LINK.c
) fx
$(PRIOCNTLOBJ
) -o
$@
$(LDLIBS
)
119 install: all $(DIRS
) \
134 include ..
/Makefile.targ