1 # 2 # CDDL HEADER START 3 # 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. 7 # 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. 12 # 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] 18 # 19 # CDDL HEADER END 20 # 21 22 # 23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 27 ETCBRANDDIR= $(ROOT)/etc/brand/native 28 ETCUSER= $(USERFILES:%=$(ETCBRANDDIR)/%) 29 $(ETCUSER) := FILEMODE = 644 30 $(ETCUSER) := OWNER = root 31 $(ETCUSER) := GROUP = sys 32 33 $(ETCBRANDDIR)/%: % 34 $(INS.file) 35 36 PROG= sw_support 37 BRAND= native 38 PROGS= attach_update image_install p2v $(PROG) 39 XMLDOCS= config.xml platform.xml smf_disable.lst pkgrm.lst 40 USERFILES= smf_disable.conf pkgrm.conf 41 SHARED= common.ksh 42 TEMPLATES= SUNWdefault.xml SUNWblank.xml 43 CLOBBERFILES= $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \ 44 $(ETCUSER) 45 46 all: $(PROGS) 47 48 include $(SRC)/cmd/Makefile.cmd 49 include ../../Makefile.brand 50 51 CPPFLAGS += -I/usr/include/libxml2 -D_REENTRANT 52 LDLIBS += -lzonecfg -luutil 53 54 POFILES= $(PROGS:%=%.po) 55 POFILE= native_zone.po 56 57 $(POFILE): $(POFILES) 58 $(RM) $@ 59 $(BUILDPO.pofiles) 60 61 _msg: $(MSGDOMAINPOFILE) 62 63 lint: lint_PROG 64 65 install: $(PROGS) $(ROOTPROGS) $(ROOTXMLDOCS) $(ROOTTEMPLATES) $(ROOTSHARED) \ 66 $(ETCUSER) 67 68 clean: 69 -$(RM) $(PROGS) 70 71 include $(SRC)/Makefile.msg.targ 72 include $(SRC)/cmd/Makefile.targ