Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
52N/A#
52N/A# CDDL HEADER START
292N/A#
52N/A# The contents of this file are subject to the terms of the
52N/A# Common Development and Distribution License, Version 1.0 only
811N/A# (the "License"). You may not use this file except in compliance
52N/A# with the License.
52N/A#
52N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
52N/A# or http://www.opensolaris.org/os/licensing.
292N/A# See the License for the specific language governing permissions
292N/A# and limitations under the License.
292N/A#
292N/A# When distributing Covered Code, include this CDDL HEADER in each
52N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
52N/A# If applicable, add the following below this CDDL HEADER, with the
52N/A# fields enclosed by brackets "[]" replaced with your own identifying
292N/A# information: Portions Copyright [yyyy] [name of copyright owner]
292N/A#
292N/A# CDDL HEADER END
292N/A#
292N/A#
292N/A#pragma ident "%Z%%M% %I% %E% SMI"
292N/A#
292N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
292N/A# Use is subject to license terms.
292N/A#
292N/A# cmd/picl/plugins/sun4u/lib/fruaccess/Makefile
52N/A#
52N/ALIBRARY= libfruaccess.a
52N/AVERS= .1
52N/AOBJECTS= fru_access.o cvrt_spd_data.o crcutils.o crcmodel.o
52N/A
52N/A# include library definitions
52N/Ainclude $(SRC)/Makefile.psm
52N/Ainclude $(SRC)/lib/Makefile.lib
52N/A
52N/AROOT_PLATFORM = $(USR_PLAT_DIR)/sun4u
52N/A
52N/Ainclude $(SRC)/cmd/picl/plugins/Makefile.com
292N/A
52N/ASRCS= $(OBJECTS:%.o=%.c)
52N/A
5N/ALIBS= $(DYNLIB)
5N/A
5N/AROOTLIBDIR = $(ROOT_PLATFORM)/lib
5N/AROOTLIBDIR := OWNER = root
5N/AROOTLIBDIR := GROUP = sys
15N/A
15N/ACONF = fru_container.conf
813N/AROOTCONF= $(CONF:%=$(ROOTLIBDIR)/%)
15N/A$(ROOTCONF) := FILEMODE = 0644
5N/A
5N/A
15N/ACLEANFILES= $(LINTOUT) $(LINTLIB)
5N/ACLOBBERFILES += $(LIBLINKS)
5N/ACSTYLE = cstyle -p -P
5N/AHDRCHK = hdrchk
5N/A
44N/A
44N/ACPPFLAGS += -I$(SRC)/lib/libfru/include
44N/ACPPFLAGS += -I$(SRC)/lib/libfruutils/
44N/ACFLAGS += $(CCVERBOSE) -DBIG_ENDIAN
44N/ALDLIBS += -L$(SRC)/lib/libfruutils/$(MACH)
5N/ALDLIBS += -lc -lpicltree -lfruutils
LDLIBS += -ldevinfo
LDLIBS += -Wl,-f/opt/SUNWSMS/lib/$(DYNLIBPSR) # SMS before platform
LDLIBS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
.KEEP_STATE:
SUBDIRS=
all := TARGET= all
install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
lint := TARGET= lint
_msg := TARGET= _msg
LN = ln -s
POFILE= $(LIBRARY:.a=.po)
all: $(DYNLIB) $(LIBLINKS) $(CONF)
install: $(ROOTLIBDIR) all $(ROOTLIBS) $(ROOTLINKS) $(ROOTCONF)
_msg: $(MSGDOMAIN) $(POFILE)
$(RM) $(MSGDOMAIN)/$(POFILE)
$(CP) $(POFILE) $(MSGDOMAIN)
$(POFILE):
$(RM) $@ messages.po
$(XGETTEXT) $(XGETFLAGS) *.[ch]* */*.[ch]*
$(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
$(RM) messages.po
$(MSGDOMAIN):
$(INS.dir)
$(LIBLINKS): FRC
$(RM) $@; $(SYMLINK) $(DYNLIB) $@
check-style:
$(CSTYLE) *.cc *.c *.h
$(HDRCHK) *.h
# include library targets
include $(SRC)/cmd/picl/plugins/Makefile.targ
include $(SRC)/lib/Makefile.targ
lint :
$(LINT.c) -m $(SRCS)
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
FRC: