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 src/sun_nws/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 src/sun_nws/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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 #ident "@(#)Makefile 1.2 08/06/23 SMI" 26 # 27 # src/sun_nws/sbdadm/Makefile 28 # 29 30 include ../Makefile.config 31 include ../Makefile.cmds 32 33 BUILD64 = $(POUND_SIGN) 34 35 MODULE = sbdadm 36 37 STAGING32 = $(PROTO_ROOT)/usr/sbin 38 STAGING64 = 39 40 CPPFLAGS32 += $(DTEXTDOM) 41 CFLAGS32 += -DSOLARIS 42 CFLAGS64 += -DSOLARIS 43 44 MODULE_SRC = sbdadm.c 45 COMMON_SRC += $(COM_SRC_CMDPARSE)/cmdparse.c 46 47 MODULE_OBJ_32 = $(MODULE_SRC:%.c=$(OBJ32)/%.o) 48 MODULE_OBJ_32 += $(COMMON_SRC:$(COM_SRC_CMDPARSE)/%.c=$(OBJ32)/%.o) 49 MODULE_OBJ_64 = 50 51 PROJ_DEPENDS = libstmf 52 53 CLASS_ACTIONS += $(ON_REF_GATE)/usr/src/pkgdefs/common_files/i.rbac 54 CLASS_ACTIONS += $(ON_REF_GATE)/usr/src/pkgdefs/common_files/r.rbac 55 56 BINARY32 = $(OBJ32)/$(MODULE) 57 BINARY64 = 58 BINARIES = $(BINARY32) $(BINARY64) 59 60 COMMON_INCLUDES += -I$(MOD_INC_SBD) -I$(COM_INC_STMF) 61 COMMON_INCLUDES += -I$(MOD_INC_LIBSTMF) 62 COMMON_INCLUDES += -I$(MOD_INC_CMDPARSE) 63 64 sparc_INCLUDES = 65 i386_INCLUDES = 66 67 sparc_LDLIBS = -lstmf 68 sparc_LDLIBS += -lnvpair 69 70 i386_LDLIBS = -lstmf 71 i386_LDLIBS += -lnvpair 72 LDLIBS += $($(MACH)_LDLIBS) 73 74 LDLIBS32 = -L$(LIBSTMF_32) 75 LDLIBS32 += -L$(ON_LIB_32) 76 LDLIBS32 += $(LDLIBS) 77 78 LDLIBS64 = 79 80 LINT_TARGETS = cmd_lint32 81 LFLAGS32 += -DSOLARIS 82 LFLAGS64 += -DSOLARIS 83 84 # Handle creating our directories when needed 85 DIRS += $(LCMESSAGES) 86 87 ALLPREQ = $(PROJ_DEPENDS) 88 ALLPREQ += $(OBJ32) 89 ALLPREQ += .WAIT 90 ALLPREQ += $(BINARIES) 91 92 INSTALLPREQ = all 93 INSTALLPREQ += .WAIT 94 INSTALLPREQ += $(STAGING32) 95 INSTALLPREQ += .WAIT 96 INSTALLPREQ += $(STAGING32)/$(MODULE) 97 98 PKGPREQ = install 99 PKGPREQ += $(PKGAREA) 100 PKGPREQ += .WAIT 101 PKGPREQ += $(MODULE_PKGS:%=$(PKGAREA)/%) 102 103 CLEANFILES = $(MODULE_OBJ_32) 104 CLEANFILES += $(BINARY32) 105 106 CLOBBERFILES = $(CLEANFILES) 107 CLOBBERFILES += $(MOD_LINT_LIB) 108 109 NUKEFILES = $(CLOBBERFILES) 110 NUKEFILES += $(STAGING32)/$(MODULE) 111 NUKEFILES += $(MODULE_PKGS:%=$(PKGAREA)/%) 112 113 include ../Makefile.common 114