Makefile revision a192e900f6d2b0e1a822e3252c0dfd795ed49d76
1268N/A#
1268N/A# CDDL HEADER START
1268N/A#
1268N/A# The contents of this file are subject to the terms of the
1268N/A# Common Development and Distribution License (the "License").
1268N/A# You may not use this file except in compliance with the License.
1268N/A#
1268N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1268N/A# or http://www.opensolaris.org/os/licensing.
1268N/A# See the License for the specific language governing permissions
1268N/A# and limitations under the License.
1268N/A#
1268N/A# When distributing Covered Code, include this CDDL HEADER in each
1268N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1268N/A# If applicable, add the following below this CDDL HEADER, with the
1268N/A# fields enclosed by brackets "[]" replaced with your own identifying
1268N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1268N/A#
1268N/A# CDDL HEADER END
1268N/A#
5680N/A#
1268N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5680N/A#
5680N/A# ident "%Z%%M% %I% %E% SMI"
1268N/A#
1268N/A# cmd/dispadmin/Makefile
1268N/A#
3889N/A
1268N/APROG= dispadmin
3889N/AMANIFEST= scheduler.xml
1268N/ASVCMETHOD= svc-scheduler
3889N/ART= RT$(PROG)
2899N/ATS= TS$(PROG)
5680N/AIA= IA$(PROG)
5680N/AFSS= FSS$(PROG)
1268N/AFX= FX$(PROG)
1294N/APROGS= $(PROG) $(RT) $(TS) $(IA) $(FSS) $(FX)
1268N/A
5680N/Ainclude ../Makefile.cmd
5680N/A
1268N/ACFLAGS += $(CCVERBOSE)
4730N/A
4730N/AROOTDIR= $(ROOT)/usr/lib/class
4730N/AROOTDIRS= $(ROOTDIR) \
4730N/A $(ROOTDIR)/RT \
4730N/A $(ROOTDIR)/TS \
4730N/A $(ROOTDIR)/IA \
4730N/A $(ROOTDIR)/FSS \
4730N/A $(ROOTDIR)/FX
4730N/AROOTPROG= $(PROG:%=$(ROOTUSRSBIN)/%)
4730N/AROOTRT= $(RT:%=$(ROOTDIR)/RT/%)
4730N/AROOTTS= $(TS:%=$(ROOTDIR)/TS/%)
5680N/AROOTIA= $(IA:%=$(ROOTDIR)/IA/%)
1268N/AROOTFSS= $(FSS:%=$(ROOTDIR)/FSS/%)
3817N/AROOTFX= $(FX:%=$(ROOTDIR)/FX/%)
ROOTMANIFESTDIR= $(ROOTSVCSYSTEM)
GROUP = bin
# this would be simpler if we renamed rtdispadmin.c and tsdispadmin.c
OBJECTS= $(PROG).o rt$(PROG).o ts$(PROG).o ia$(PROG).o \
fss$(PROG).o fx$(PROG).o subr.o
# conditional assignments, because of above names
$(PROG):= OBJ= $(PROG).o
$(RT):= OBJ= rt$(PROG).o
$(TS):= OBJ= ts$(PROG).o
$(IA):= OBJ= ia$(PROG).o
$(FSS):= OBJ= fss$(PROG).o
$(FX):= OBJ= fx$(PROG).o
# install rules
$(ROOTDIR)/% \
$(ROOTDIR)/RT/% \
$(ROOTDIR)/IA/% \
$(ROOTDIR)/TS/% \
$(ROOTDIR)/FSS/% \
$(ROOTDIR)/FX/% : %
$(INS.file)
.KEEP_STATE:
all: $(PROGS)
$(PROGS): $$(OBJ) subr.o
$(LINK.c) -o $@ $(OBJ) subr.o $(LDLIBS)
$(POST_PROCESS)
llib-lsubr.ln: subr.c
$(LINT.c) -y -o subr subr.c
lint := LDLIBS += -L. -lsubr
install: all $(ROOTPROG) $(ROOTRT) $(ROOTTS) $(ROOTIA) $(ROOTFSS) $(ROOTFX) \
$(ROOTMANIFEST) $(ROOTSVCMETHOD)
# Don't re-install directories already installed by Targetdirs
#$(ROOTDIRS):
# $(INS.dir)
check: $(CHKMANIFEST)
clean:
$(RM) $(OBJECTS) $(PROGS) llib-lsubr.ln
lint: llib-lsubr.ln
$(LINT.c) dispadmin.c $(LDLIBS)
$(LINT.c) rtdispadmin.c $(LDLIBS)
$(LINT.c) tsdispadmin.c $(LDLIBS)
$(LINT.c) iadispadmin.c $(LDLIBS)
$(LINT.c) fssdispadmin.c $(LDLIBS)
$(LINT.c) fxdispadmin.c $(LDLIBS)
include ../Makefile.targ