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 2009 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# cmd/picl/plugins/sun4u/envmon/Makefile 26# 27include $(SRC)/Makefile.psm 28 29LIBRARY= libpiclenvmon.a 30VERS= .1 31 32OBJECTS= piclenvmon.o 33 34# include library definitions 35include $(SRC)/lib/Makefile.lib 36 37ROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u 38 39include $(SRC)/cmd/picl/plugins/Makefile.com 40 41SRCS= $(OBJECTS:%.o=%.c) 42 43LIBS = $(DYNLIB) 44 45ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 46 47LINTSRC = $(LINTLIB:%.ln=%) 48ROOTLINTDIR = $(ROOTLIBDIR) 49ROOTLINT = $(LINTSRC:%=$(ROOTLINTDIR)/%) 50 51CLEANFILES= $(LINTOUT) $(LINTLIB) 52 53CPPFLAGS += -I$(SRC)/uts/sun4u/ -I$(SRC)/uts/common/ 54CPPFLAGS += -I$(SRC)/cmd/picl/plugins/lib/picld_pluginutil 55CPPFLAGS += -D_REENTRANT 56CFLAGS += $(CCVERBOSE) 57LINTFLAGS = -uxmn -I.. -I$(SRC)/lib/libpicl -I$(SRC)/lib/libpicltree 58DYNFLAGS += -R/usr/platform/sun4u/lib/picl/plugins:/usr/lib/picl/plugins 59LDLIBS += -L$(SRC)/cmd/picl/plugins/lib/picld_pluginutil/$(MACH) 60LDLIBS += -L$(SRC)/lib/libpicltree/$(MACH) 61LDLIBS += -L$(SRC)/cmd/picl/plugins/common/piclevent 62LDLIBS += -L$(SRC)/cmd/picl/plugins/common/memcfg 63LDLIBS += -L$(SRC)/cmd/picl/plugins/common/devtree 64LDLIBS += -lnvpair -ldevinfo -lc 65LDLIBS += -lpicltree -lpicld_pluginutil -lpiclevent -lpicldevtree 66 67.KEEP_STATE: 68 69SUBDIRS= 70 71all := TARGET= all 72install := TARGET= install 73clean := TARGET= clean 74clobber := TARGET= clobber 75lint := TARGET= lint 76_msg := TARGET= _msg 77 78POFILE = piclenvmon_sun4u.po 79POFILES = $(SRCS:%.c=%.po) 80 81all: $(LIBS) $(LIBLINKS) 82 83install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) 84 85$(POFILE): $(POFILES) 86 $(CAT) $(POFILES) > $(POFILE) 87 88_msg: $(MSGDOMAIN) $(POFILE) 89 $(RM) $(MSGDOMAIN)/$(POFILE) 90 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE) 91 92$(MSGDOMAIN): 93 $(INS.dir) 94 95 96$(LIBLINKS): FRC 97 $(RM) $@; $(SYMLINK) $(DYNLIB) $@ 98 99# include library targets 100include $(SRC)/lib/Makefile.targ 101include $(SRC)/cmd/picl/plugins/Makefile.targ 102 103$(ROOTLINTDIR)/%: ../% 104 $(INS.file) 105 106lint: 107 $(LINT.c) $(SRCS) 108 109$(SUBDIRS): FRC 110 @cd $@; pwd; $(MAKE) $(TARGET) 111 112FRC: 113 114