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# 23*9b9d39d2SRichard Lowe# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 24*9b9d39d2SRichard Lowe# Copyright 2020 Joyent, Inc. 25*9b9d39d2SRichard Lowe# 26*9b9d39d2SRichard Lowe 27*9b9d39d2SRichard Loweinclude $(SRC)/tools/Makefile.tools 28*9b9d39d2SRichard Loweinclude $(SRC)/cmd/svc/svccfg/Makefile.shared.com 29*9b9d39d2SRichard Lowe 30*9b9d39d2SRichard LoweSRCDIR = $(SRC)/cmd/svc/svccfg 31*9b9d39d2SRichard LoweCOMDIR = $(SRC)/cmd/svc/common 32*9b9d39d2SRichard Lowe 33*9b9d39d2SRichard LoweCPPFLAGS += -I. -I$(SRC)/cmd/svc/svccfg -I$(SRC)/cmd/svc/common \ 34*9b9d39d2SRichard Lowe -I$(NATIVE_ADJUNCT)/include/libxml2 \ 35*9b9d39d2SRichard Lowe -DNATIVE_BUILD \ 36*9b9d39d2SRichard Lowe -I$(LIBSCF)/inc \ 37*9b9d39d2SRichard Lowe -I$(LIBTECLA) \ 38*9b9d39d2SRichard Lowe -I$(LIBUUTIL)/common 39*9b9d39d2SRichard Lowe 40*9b9d39d2SRichard LoweLIBTECLA = $(SRC)/lib/libtecla # just for the header 41*9b9d39d2SRichard LoweLIBUUTIL = $(SRC)/lib/libuutil 42*9b9d39d2SRichard Lowe 43*9b9d39d2SRichard LoweSVCCFG_EXTRA_LIBS += -lxml2 -lscf -ll -luutil -lumem -lmd \ 44*9b9d39d2SRichard Lowe -lnvpair 45*9b9d39d2SRichard LoweNATIVE_LIBS += libxml2.so libl.so libumem.so libmd.so libnvpair.so libc.so 46*9b9d39d2SRichard Lowe 47*9b9d39d2SRichard LoweLDLIBS += \ 48*9b9d39d2SRichard Lowe -L$(SRC)/tools/svc/libscf -R '$$ORIGIN/../../lib/$(MACH)' \ 49*9b9d39d2SRichard Lowe -L$(NATIVE_ADJUNCT)/lib -R$(NATIVE_ADJUNCT)/lib -L$(ROOTONBLDLIBMACH) \ 50*9b9d39d2SRichard Lowe $(SVCCFG_EXTRA_LIBS) 51*9b9d39d2SRichard Lowe 52*9b9d39d2SRichard Loweinclude $(SRC)/Makefile.native 53*9b9d39d2SRichard Lowe 54*9b9d39d2SRichard Lowe.KEEP_STATE: 55*9b9d39d2SRichard Lowe.PARALLEL: $(OBJS) 56*9b9d39d2SRichard Lowe 57*9b9d39d2SRichard Loweall debug: $(PROG) 58*9b9d39d2SRichard Lowe 59*9b9d39d2SRichard Lowe$(PROG): $(OBJS) $(MAPFILES) 60*9b9d39d2SRichard Lowe $(LINK.c) -o $@ $(OBJS) $(LDLIBS) 61*9b9d39d2SRichard Lowe $(POST_PROCESS) 62*9b9d39d2SRichard Lowe 63*9b9d39d2SRichard Loweinstall: all $(ROOTONBLDMACHPROG) 64*9b9d39d2SRichard Lowe 65*9b9d39d2SRichard Loweclean: 66*9b9d39d2SRichard Lowe $(RM) $(OBJS) 67*9b9d39d2SRichard Lowe 68*9b9d39d2SRichard Loweinclude ../../Makefile.targ 69*9b9d39d2SRichard Loweinclude $(SRC)/cmd/svc/svccfg/Makefile.shared.targ 70