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.
25 # cmd/dispadmin/Makefile
29 MANIFEST
= scheduler.xml
30 SVCMETHOD
= svc-scheduler
37 PROGS
= $(PROG
) $(RT
) $(TS
) $(IA
) $(FSS
) $(FX
) $(SDC
)
39 include ..
/Makefile.cmd
41 CERRWARN
+= -Wno-uninitialized
43 ROOTDIR
= $(ROOT
)/usr
/lib
/class
44 ROOTDIRS
= $(ROOTDIR
) \
52 ROOTPROG
= $(PROG
:%=$(ROOTUSRSBIN
)/%)
53 ROOTFSS
= $(FSS
:%=$(ROOTDIR
)/FSS
/%)
54 ROOTFX
= $(FX
:%=$(ROOTDIR
)/FX
/%)
55 ROOTIA
= $(IA
:%=$(ROOTDIR
)/IA
/%)
56 ROOTRT
= $(RT
:%=$(ROOTDIR
)/RT
/%)
57 ROOTSDC
= $(SDC
:%=$(ROOTDIR
)/SDC
/%)
58 ROOTTS
= $(TS
:%=$(ROOTDIR
)/TS
/%)
59 ROOTMANIFESTDIR
= $(ROOTSVCSYSTEM
)
61 # this would be simpler if we renamed rtdispadmin.c and tsdispadmin.c
62 OBJECTS
= $(PROG
).o rt
$(PROG
).o ts
$(PROG
).o ia
$(PROG
).o \
63 fss
$(PROG
).o fx
$(PROG
).o sdc
$(PROG
).o subr.o
65 # conditional assignments, because of above names
66 $(PROG
):= OBJ
= $(PROG
).o
67 $(FSS
):= OBJ
= fss
$(PROG
).o
68 $(FX
):= OBJ
= fx
$(PROG
).o
69 $(IA
):= OBJ
= ia
$(PROG
).o
70 $(RT
):= OBJ
= rt
$(PROG
).o
71 $(SDC
):= OBJ
= sdc
$(PROG
).o
72 $(TS
):= OBJ
= ts
$(PROG
).o
88 $(PROGS
): $$(OBJ
) subr.o
89 $(LINK.c
) -o
$@
$(OBJ
) subr.o
$(LDLIBS
)
92 install: all $(ROOTPROG
) $(ROOTRT
) $(ROOTTS
) $(ROOTIA
) $(ROOTFSS
) $(ROOTFX
) \
93 $(ROOTSDC
) $(ROOTMANIFEST
) $(ROOTSVCMETHOD
)
95 # Don't re-install directories already installed by Targetdirs
102 $(RM
) $(OBJECTS
) $(PROGS
) llib-lsubr.ln
104 include ..
/Makefile.targ