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/CDDL.txt 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/CDDL.txt. 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 2007 Sun Microsystems, Inc. All rights reserved. 24 # Use is subject to license terms. 25 # 26 #ident "@(#)Makefile.cmd 1.37 07/08/15 SMI" 27 # 28 # usr/src/cmd/Makefile.cmd 29 # 30 # Definitions common to command source. 31 # 32 include $(SRC)/Makefile.master 33 34 # Default LINTFILES rule 35 LINTFILES= $(PROG:%=%.ln) $(DAEMON:%=%.ln) $(OBJECTS:%.o=%.ln) 36 37 LDLIBS = $(LDLIBS.cmd) 38 $(POST_S9_BUILD)LDLIBS += -lscf 39 LDFLAGS.cmd = $(STRIPFLAG) $(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) 40 LDFLAGS = $(LDFLAGS.cmd) 41 42 # Default text domain 43 TEXT_DOMAIN= SUNW_SC_CMD 44 PIFILES= $(PROG:%=%.pi) 45 POFILE= $(PROG:%=%.po) 46 47 CLOBBERFILES += $(LINTFILES) 48 49 ROOTOPTBIN= $(VROOT)/opt/$(PKGNAME)/bin 50 ROOTOPTETC= $(VROOT)/opt/$(PKGNAME)/etc 51 ROOTOPTLIB= $(VROOT)/opt/$(PKGNAME)/lib 52 ROOTOPTUTIL= $(VROOT)/opt/$(PKGNAME)/util 53 ROOTOPTBINPROG= $(PROG:%=$(ROOTOPTBIN)/%) 54 ROOTOPTETCPROG= $(PROG:%=$(ROOTOPTETC)/%) 55 ROOTOPTETCCONF= $(CONF:%=$(ROOTOPTETC)/%) 56 ROOTOPTETCRTR= $(RTRFILE:%=$(ROOTOPTETC)/%) 57 ROOTOPTLIBPROG= $(PROG:%=$(ROOTOPTLIB)/%) 58 ROOTOPTLIBKSHPROG= $(LIBPROG:%=$(ROOTOPTLIB)/%) 59 ROOTOPTUTILPROG= $(UTILPROG:%=$(ROOTOPTUTIL)/%) 60