Makefile.com revision 2
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License (the "License").
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You may not use this file except in compliance with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# or http://www.opensolaris.org/os/licensing.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# If applicable, add the following below this CDDL HEADER, with the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# fields enclosed by brackets "[]" replaced with your own identifying
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# information: Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb#
7f667e74610492ddbce8ce60f52ece95d2401949jose borrego# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw#
faa1795a28a5c712eed6d0a3f84d98c368a316c6jb
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLIBRARY = libfmevent.a
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwVERS = .1
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLIBSRCS = fmev_subscribe.c \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw fmev_evaccess.c \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw fmev_errstring.c \
7f667e74610492ddbce8ce60f52ece95d2401949jose borrego fmev_util.c \
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw fmev_publish.c
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwOBJECTS = $(LIBSRCS:%.c=%.o)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwinclude ../../../Makefile.lib
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# This library must install in /lib/fm since it is a dependency of
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# svc.startd and may be required in early boot. Thus we cannot
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# include ../Makefile.lib - instead we set ROOTFMHDRDIR and
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# ROOTFMHDRS and redefine ROOTLIBDIR and ROOTLIBDIR64 accordingly
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTFMHDRDIR = $(ROOTHDRDIR)/fm
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwROOTFMHDRS = $(FMHDRS:%=$(ROOTFMHDRDIR)/%)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwINSTALL_LIBDIR= lib/fm
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
29bd28862cfb8abbd3a0f0a4b17e08bbc3652836Alan WrightSRCS = $(LIBSRCS:%.c=../common/%.c)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLIBS = $(DYNLIB) $(LINTLIB)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwSRCDIR = ../common
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwC99MODE = $(C99_ENABLE)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCPPFLAGS += -I../common -I.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
29bd28862cfb8abbd3a0f0a4b17e08bbc3652836Alan Wright
7b59d02d2a384be9a08087b14defadd214b3c1ddjbFMLIBDIR=usr/lib/fm
dc20a3024900c47dd2ee44b9707e6df38f7d62a5as$(BUILD64)FMLIBDIR64=usr/lib/fm/$(MACH64)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
7b59d02d2a384be9a08087b14defadd214b3c1ddjb$(DYNLIB) := LDLIBS += -lumem -lnvpair -luutil -lsysevent \
6537f381d2d9e7b4e2f7b29c3e7a3f13be036f2eas -L$(LROOT)/$(FMLIBDIR) -ltopo -lc
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(BUILD64)$(DYNLIB) := LDLIBS64 += -lumem -lnvpair -luutil -lsysevent \
7f667e74610492ddbce8ce60f52ece95d2401949jose borrego -L$(LROOT)/$(FMLIBDIR64) -ltopo -lc
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
29bd28862cfb8abbd3a0f0a4b17e08bbc3652836Alan WrightLINTFLAGS = -msux
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwLINTFLAGS64 = -msux -m64
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(LINTLIB) := LINTFLAGS = -nsvx
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwCLEANFILES += ../common/fmev_errstring.c
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw.KEEP_STATE:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
55bf511df53aad0fdb7eb3fa349f0308cc05234casall: stub $(LIBS)
1fcced4c370617db71610fecffd5451a5894ca5eJordan Brown
8d7e41661dc4633488e93b13363137523ce59977jose borregolint: $(LINTLIB) lintcheck
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwpics/%.o: ../$(MACH)/%.c
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(COMPILE.c) -o $@ $<
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw $(POST_PROCESS_O)
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw../common/fmev_errstring.c: ../common/mkerror.sh ../common/libfmevent.h
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw sh ../common/mkerror.sh ../common/libfmevent.h > $@
%.o: ../common/%.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
include ../../../Makefile.targ
include ../../Makefile.targ