Makefile revision 70cbfe41f2338b77c15f79c6625eca6e70c412f3
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER START
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# The contents of this file are subject to the terms of the
af062818b47340eef15700d2f0211576ba3506eevboxsync# Common Development and Distribution License (the "License").
af062818b47340eef15700d2f0211576ba3506eevboxsync# You may not use this file except in compliance with the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
af062818b47340eef15700d2f0211576ba3506eevboxsync# or http://www.opensolaris.org/os/licensing.
af062818b47340eef15700d2f0211576ba3506eevboxsync# See the License for the specific language governing permissions
af062818b47340eef15700d2f0211576ba3506eevboxsync# and limitations under the License.
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# When distributing Covered Code, include this CDDL HEADER in each
af062818b47340eef15700d2f0211576ba3506eevboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
af062818b47340eef15700d2f0211576ba3506eevboxsync# If applicable, add the following below this CDDL HEADER, with the
af062818b47340eef15700d2f0211576ba3506eevboxsync# fields enclosed by brackets "[]" replaced with your own identifying
af062818b47340eef15700d2f0211576ba3506eevboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
af062818b47340eef15700d2f0211576ba3506eevboxsync#
af062818b47340eef15700d2f0211576ba3506eevboxsync# CDDL HEADER END
af062818b47340eef15700d2f0211576ba3506eevboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync# Use is subject to license terms.
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync#
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncPROG = svc.startd
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsyncOBJS = \
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync contract.o \
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync deathrow.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync dict.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync env.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync expand.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync file.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync fork.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync graph.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync libscf.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync log.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync method.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync misc.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync protocol.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync restarter.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync specials.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync startd.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync transition.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync wait.o \
af062818b47340eef15700d2f0211576ba3506eevboxsync utmpx.o
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncALLOBJS = $(OBJS) proc.o
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncSRCS = $(OBJS:%.o=%.c)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncPOFILES = $(ALLOBJS:%.o=%.po)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../../Makefile.cmd
af062818b47340eef15700d2f0211576ba3506eevboxsyncinclude ../Makefile.ctf
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncROOTCMDDIR= $(ROOT)/lib/svc/bin
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncCFLAGS += -v
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync$(OBJS) := CPPFLAGS += \
af062818b47340eef15700d2f0211576ba3506eevboxsync -I. -I../common -D_REENTRANT -D_FILE_OFFSET_BITS=64
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync$(POFILE) := CPPFLAGS += -I. -I../common
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncproc.o := CPPFLAGS += -I. -I../common -D_REENTRANT
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncLDLIBS += \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lcontract \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lkstat \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lnvpair \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lrestart \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lscf \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lsysevent \
af062818b47340eef15700d2f0211576ba3506eevboxsync -lumem \
af062818b47340eef15700d2f0211576ba3506eevboxsync -luutil
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncFILEMODE = 0555
af062818b47340eef15700d2f0211576ba3506eevboxsyncOWNER = root
af062818b47340eef15700d2f0211576ba3506eevboxsyncGROUP = sys
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync# lint doesn't like the unused _umem_*_init()
af062818b47340eef15700d2f0211576ba3506eevboxsync# And lint thinks uadmin() is undefined.
af062818b47340eef15700d2f0211576ba3506eevboxsynclint_SRCS := LINTFLAGS += -U_FILE_OFFSET_BITS -xerroff=E_NAME_DEF_NOT_USED2 -u
af062818b47340eef15700d2f0211576ba3506eevboxsynclint_SRCS := CPPFLAGS += \
af062818b47340eef15700d2f0211576ba3506eevboxsync -I. -I../common -D_REENTRANT -D_FILE_OFFSET_BITS=64
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync.KEEP_STATE:
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync.PARALLEL: $(ALLOBJS)
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncall: $(PROG)
af062818b47340eef15700d2f0211576ba3506eevboxsync
$(PROG): $(ALLOBJS)
$(LINK.c) -o $@ $(ALLOBJS) $(LDLIBS) $(CTFMERGE_HOOK)
$(POST_PROCESS)
$(POFILE): $(POFILES)
cat $(POFILES) > $(POFILE)
install: all $(ROOTCMD)
clean:
$(RM) $(ALLOBJS)
lint: lint_SRCS
include ../../Makefile.targ