dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / dispadmin / Makefile
blobb0ca8f8202ff6309ee14040058e88bf51a48cf70
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
25 # cmd/dispadmin/Makefile
28 PROG= dispadmin
29 MANIFEST= scheduler.xml
30 SVCMETHOD= svc-scheduler
31 SDC= SDC$(PROG)
32 RT= RT$(PROG)
33 TS= TS$(PROG)
34 IA= IA$(PROG)
35 FSS= FSS$(PROG)
36 FX= FX$(PROG)
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) \
45 $(ROOTDIR)/FSS \
46 $(ROOTDIR)/FX \
47 $(ROOTDIR)/IA \
48 $(ROOTDIR)/RT \
49 $(ROOTDIR)/SDC \
50 $(ROOTDIR)/TS
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
74 # install rules
75 $(ROOTDIR)/% \
76 $(ROOTDIR)/FSS/% \
77 $(ROOTDIR)/FX/% \
78 $(ROOTDIR)/IA/% \
79 $(ROOTDIR)/RT/% \
80 $(ROOTDIR)/SDC/% \
81 $(ROOTDIR)/TS/% : %
82 $(INS.file)
84 .KEEP_STATE:
86 all: $(PROGS)
88 $(PROGS): $$(OBJ) subr.o
89 $(LINK.c) -o $@ $(OBJ) subr.o $(LDLIBS)
90 $(POST_PROCESS)
92 install: all $(ROOTPROG) $(ROOTRT) $(ROOTTS) $(ROOTIA) $(ROOTFSS) $(ROOTFX) \
93 $(ROOTSDC) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
95 # Don't re-install directories already installed by Targetdirs
96 #$(ROOTDIRS):
97 # $(INS.dir)
99 check: $(CHKMANIFEST)
101 clean:
102 $(RM) $(OBJECTS) $(PROGS) llib-lsubr.ln
104 include ../Makefile.targ