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 27include $(SRC)/Makefile.psm 28 29LIBRARY = libpiclfrutree.a 30VERS = .1 31 32OBJECTS = piclfrutree.o 33 34# include library definitions 35include $(SRC)/lib/Makefile.lib 36 37ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Netra-T12 38 39include $(SRC)/cmd/picl/plugins/Makefile.com 40 41CPPFLAGS += -D_REENTRANT -I$(SRC)/uts/sun4u/serengeti 42CPPFLAGS += -I$(SRC)/uts/sun4u/serengeti 43CPPFLAGS += -I$(SRC)/uts/sun4u/lw8 44CPPFLAGS += -I$(SRC)/uts/sun4u -I$(CLOSED)/uts/sun4u 45CPPFLAGS += -I$(SRC)/uts/common -I$(CLOSED)/uts/common 46 47SRCS = $(OBJECTS:%.o=%.c) 48 49LIBS = $(DYNLIB) 50 51ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 52 53LINTSRC = $(LINTLIB:%.ln=%) 54ROOTLINTDIR = $(ROOTLIBDIR) 55ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 56 57CLEANFILES = $(LINTOUT) $(LINTLIB) 58 59 60CPPFLAGS += -D_SGFRU 61CFLAGS += $(CCVERBOSE) 62DYNFLAGS += -R/usr/platform/\$$PLATFORM/lib/picl/plugins:/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins 63LDLIBS += -L$(DEVTREE_SRC_DIR) 64LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH) 65LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree 66LDLIBS += -L$(ROOT)/usr/lib/picl/plugins 67LDLIBS += -lc -lpicldevtree -lpiclmemcfg 68LDLIBS += -lpicltree -lnvpair -lkstat -ldevice 69 70.KEEP_STATE: 71 72SUBDIRS = 73 74POFILE = piclfrutree.po 75 76all := TARGET= all 77install := TARGET= install 78clean := TARGET= clean 79clobber := TARGET= clobber 80lint := TARGET= lint 81_msg := TARGET= _msg 82 83all: $(LIBS) $(LIBLINKS) 84 85install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 86 87_msg: $(MSGDOMAIN) $(POFILE) 88 $(RM) $(MSGDOMAIN)/$(POFILE) 89 $(CP) $(POFILE) $(MSGDOMAIN)/lw8_$(POFILE) 90 91$(MSGDOMAIN): 92 $(INS.dir) 93 94$(LIBLINKS): FRC 95 $(RM) $@; $(SYMLINK) $(DYNLIB) $@ 96 97# include library targets 98include $(SRC)/lib/Makefile.targ 99include $(SRC)/cmd/picl/plugins/Makefile.targ 100 101$(ROOTLINTDIR)/%: ../% 102 $(INS.file) 103 104lint: 105 $(LINT.c) $(SRCS) 106 107$(SUBDIRS): FRC 108 @cd $@; pwd; $(MAKE) $(TARGET) 109 110FRC: 111