1*9b9d39d2SRichard Lowe# 2*9b9d39d2SRichard Lowe# CDDL HEADER START 3*9b9d39d2SRichard Lowe# 4*9b9d39d2SRichard Lowe# The contents of this file are subject to the terms of the 5*9b9d39d2SRichard Lowe# Common Development and Distribution License (the "License"). 6*9b9d39d2SRichard Lowe# You may not use this file except in compliance with the License. 7*9b9d39d2SRichard Lowe# 8*9b9d39d2SRichard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*9b9d39d2SRichard Lowe# or http://www.opensolaris.org/os/licensing. 10*9b9d39d2SRichard Lowe# See the License for the specific language governing permissions 11*9b9d39d2SRichard Lowe# and limitations under the License. 12*9b9d39d2SRichard Lowe# 13*9b9d39d2SRichard Lowe# When distributing Covered Code, include this CDDL HEADER in each 14*9b9d39d2SRichard Lowe# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*9b9d39d2SRichard Lowe# If applicable, add the following below this CDDL HEADER, with the 16*9b9d39d2SRichard Lowe# fields enclosed by brackets "[]" replaced with your own identifying 17*9b9d39d2SRichard Lowe# information: Portions Copyright [yyyy] [name of copyright owner] 18*9b9d39d2SRichard Lowe# 19*9b9d39d2SRichard Lowe# CDDL HEADER END 20*9b9d39d2SRichard Lowe# 21*9b9d39d2SRichard Lowe# 22*9b9d39d2SRichard Lowe# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23*9b9d39d2SRichard Lowe# Use is subject to license terms. 24*9b9d39d2SRichard Lowe# 25*9b9d39d2SRichard Lowe# Copyright 2015 RackTop Systems. 26*9b9d39d2SRichard Lowe# Copyright 2020 Joyent, Inc. 27*9b9d39d2SRichard Lowe# 28*9b9d39d2SRichard Lowe 29*9b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools 30*9b9d39d2SRichard Loweinclude $(SRC)/cmd/svc/configd/Makefile.shared.com 31*9b9d39d2SRichard Lowe 32*9b9d39d2SRichard Lowe 33*9b9d39d2SRichard LoweLIBUUTIL = $(SRC)/lib/libuutil 34*9b9d39d2SRichard LoweLIBSCF = $(SRC)/lib/libscf 35*9b9d39d2SRichard LoweLIBSQLITE = $(SRC)/lib/libsqlite 36*9b9d39d2SRichard Lowe 37*9b9d39d2SRichard LoweCPPFLAGS += -I$(SRC)/cmd/svc/configd \ 38*9b9d39d2SRichard Lowe -I$(SRC)/cmd/svc/common -I$(SRC)/common/svc \ 39*9b9d39d2SRichard Lowe -D_REENTRANT -I$(LIBUUTIL)/common -I$(LIBSCF)/inc -I$(LIBSQLITE) \ 40*9b9d39d2SRichard Lowe -I$(SRC)/tools/svc/libsqlite \ 41*9b9d39d2SRichard Lowe 42*9b9d39d2SRichard LoweCPPFLAGS += -DNATIVE_BUILD 43*9b9d39d2SRichard Lowe 44*9b9d39d2SRichard LoweLDFLAGS += $(BDIRECT) 45*9b9d39d2SRichard LoweLDLIBS += -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib \ 46*9b9d39d2SRichard Lowe -lumem -L$(ROOTONBLDLIBMACH) \ 47*9b9d39d2SRichard Lowe -R '$$ORIGIN/../../lib/$(MACH)' -lsqlite-sys -luutil 48*9b9d39d2SRichard Lowe 49*9b9d39d2SRichard LoweNATIVE_LIBS += libumem.so libc.so 50*9b9d39d2SRichard Lowe 51*9b9d39d2SRichard Loweinclude $(SRC)/Makefile.native 52*9b9d39d2SRichard Lowe 53*9b9d39d2SRichard Lowe.KEEP_STATE: 54*9b9d39d2SRichard Lowe.PARALLEL: $(OBJS) 55*9b9d39d2SRichard Lowe 56*9b9d39d2SRichard Loweall: $(PROG) 57*9b9d39d2SRichard Lowe 58*9b9d39d2SRichard Lowe$(PROG): $(OBJS) 59*9b9d39d2SRichard Lowe $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 60*9b9d39d2SRichard Lowe $(POST_PROCESS) 61*9b9d39d2SRichard Lowe 62*9b9d39d2SRichard Lowe%.o: $(SRC)/cmd/svc/configd/%.c 63*9b9d39d2SRichard Lowe $(COMPILE.c) $< 64*9b9d39d2SRichard Lowe $(POST_PROCESS_O) 65*9b9d39d2SRichard Lowe 66*9b9d39d2SRichard Loweinstall: all $(ROOTONBLDMACHPROG) 67*9b9d39d2SRichard Lowe 68*9b9d39d2SRichard Loweclean: 69*9b9d39d2SRichard Lowe 70*9b9d39d2SRichard Loweclobber: clean 71*9b9d39d2SRichard Lowe 72*9b9d39d2SRichard Loweinclude $(SRC)/cmd/Makefile.targ 73