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, Version 1.0 only 6# (the "License"). You may not use this file except in compliance 7# with the License. 8# 9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10# or http://www.opensolaris.org/os/licensing. 11# See the License for the specific language governing permissions 12# and limitations under the License. 13# 14# When distributing Covered Code, include this CDDL HEADER in each 15# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16# If applicable, add the following below this CDDL HEADER, with the 17# fields enclosed by brackets "[]" replaced with your own identifying 18# information: Portions Copyright [yyyy] [name of copyright owner] 19# 20# CDDL HEADER END 21# 22# 23# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24# Use is subject to license terms. 25# 26# ident "%Z%%M% %I% %E% SMI" 27# 28 29LIBRARY= libpsvcplugin_psr.a 30VERS= .1 31 32OBJECTS= psvcplugin.o 33 34# include library definitions 35include $(SRC)/lib/Makefile.lib 36include $(SRC)/Makefile.psm 37 38include $(SRC)/cmd/picl/plugins/Makefile.com 39 40SRCS= $(OBJECTS:%.o=%.c) 41 42LIBS = $(DYNLIB) 43 44ROOT_PLATFORM = $(USR_PLAT_DIR)/SUNW,Sun-Fire-880 45DYNFLAGS_PLAT = /usr/platform/\$$PLATFORM/lib/picl/plugins 46DYNFLAGS_SUN4U = /usr/platform/sun4u/lib/picl/plugins 47DYNFLAGS_COM = /usr/lib/picl/plugins 48 49ROOTLIBDIR = $(ROOT_PLAT_PLUGINDIR) 50 51CLEANFILES= $(LINTOUT) $(LINTLIB) 52 53CPPFLAGS += -I$(SRC)/uts/sun4u 54CPPFLAGS += -I$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj 55CPPFLAGS += -D_REENTRANT 56 57CFLAGS += $(CCVERBOSE) 58LDLIBS += -L$(SRC)/lib/libpicl/$(MACH) -L$(SRC)/lib/libpicltree/$(MACH) 59LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcobj 60LDLIBS += -L$(SRC)/cmd/picl/plugins/sun4u/psvc/psvcplugin 61DYNFLAGS += -R$(DYNFLAGS_PLAT):$(DYNFLAGS_SUN4U):$(DYNFLAGS_COM) 62 63LDLIBS += -lc -lpicltree -lpicl -lrt -lpsvcobj -lpsvcplugin 64 65LINTFLAGS += 66 67.KEEP_STATE: 68 69SUBDIRS= 70 71POFILE= psvcplugin.po 72POFILE_RENAME= psvcplugin_dak.po 73 74all := TARGET= all 75install := TARGET= install 76clean := TARGET= clean 77clobber := TARGET= clobber 78lint := TARGET= lint 79_msg := TARGET= _msg 80 81all: $(LIBS) $(LIBLINKS) 82 83install: all $(ROOTLIBDIR) $(ROOTLIBS) $(ROOTLINKS) 84 85_msg: $(MSGDOMAIN) $(POFILE) 86 $(RM) $(MSGDOMAIN)/$(POFILE) 87 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE_RENAME) 88 89$(MSGDOMAIN): 90 $(INS.dir) 91 92$(LIBLINKS): FRC 93 $(RM) $(LIBLINKS); $(SYMLINK) $(DYNLIB) $(LIBLINKS) 94 95# include library targets 96include $(SRC)/cmd/picl/plugins/Makefile.targ 97include $(SRC)/lib/Makefile.targ 98 99lint : 100 $(LINT.c) $(SRCS) 101 102$(SUBDIRS): FRC 103 @cd $@; pwd; $(MAKE) $(TARGET) 104 105FRC: 106