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 # Copyright 2008 Sun Microsystems, Inc. All rights reserved. 23 # Use is subject to license terms. 24 # 25 # ident "%Z%%M% %I% %E% SMI" 26 # 27 # cmd/picl/plugins/sun4v/piclsbl/Makefile 28 29 LIBRARY= libpiclsbl.a 30 VERS= .1 31 32 OBJECTS= piclsbl.o 33 34 # include library definitions 35 include $(SRC)/lib/Makefile.lib 36 include $(SRC)/Makefile.psm 37 38 include $(SRC)/cmd/picl/plugins/Makefile.com 39 40 SRCS= $(OBJECTS:%.o=%.c) 41 42 LINT_SRC= $(LINTLIB:%.ln=%) 43 44 $(OBJS_DIR)/%.o: $(SRC)/sun4v/piclsbl/%.c 45 $(COMPILE.c) -o $@ $< 46 $(CTFCONVERT_O) 47 48 $(LINTS_DIR)/%.ln: $(SRC)/sun4v/piclsbl/%.c 49 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 50 51 52 LIBS = $(DYNLIB) 53 54 ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4v 55 DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins 56 DYNFLAGS_SUN4V = /usr/platform/sun4v/lib/picl/plugins 57 DYNFLAGS_COM = /usr/lib/picl/plugins 58 ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 59 60 CLEANFILES= $(LINTOUT) $(LINTLIB) 61 62 CPPFLAGS += -I$(SRC)/sun4v/piclsbl 63 CPPFLAGS += -I$(SRC)/uts/common/sys 64 CPPFLAGS += -I$(SRC)/lib/libpcp/common 65 CPPFLAGS += -D_REENTRANT 66 67 CFLAGS += $(CCVERBOSE) 68 LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH) 69 LDLIBS += -L$(ROOT)/usr/lib/picl/plugins 70 DYNFLAGS += -R$(DYNFLAGS_COM) 71 72 LDLIBS += -lc -lpicltree -lumem -lnvpair 73 74 LINTFLAGS += -erroff=E_BAD_PTR_CAST_ALIGN -v 75 76 .KEEP_STATE: 77 78 all: $(LIBS) $(LIBLINKS) 79 80 install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 81 82 $(ROOTLIBDIR)/$(LIBS) : $(LIBS) 83 $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(LIBS) 84 85 $(LIBLINKS): FRC 86 $(RM) -r $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 87 88 # include library targets 89 include $(SRC)/cmd/picl/plugins/Makefile.targ 90 include $(SRC)/lib/Makefile.targ 91 92 lint : 93 $(LINT.c) $(SRCS) 94 95 FRC: 96