149b225e1SGavin Maltby# 249b225e1SGavin Maltby# CDDL HEADER START 349b225e1SGavin Maltby# 449b225e1SGavin Maltby# The contents of this file are subject to the terms of the 549b225e1SGavin Maltby# Common Development and Distribution License (the "License"). 649b225e1SGavin Maltby# You may not use this file except in compliance with the License. 749b225e1SGavin Maltby# 849b225e1SGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 949b225e1SGavin Maltby# or http://www.opensolaris.org/os/licensing. 1049b225e1SGavin Maltby# See the License for the specific language governing permissions 1149b225e1SGavin Maltby# and limitations under the License. 1249b225e1SGavin Maltby# 1349b225e1SGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each 1449b225e1SGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1549b225e1SGavin Maltby# If applicable, add the following below this CDDL HEADER, with the 1649b225e1SGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying 1749b225e1SGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner] 1849b225e1SGavin Maltby# 1949b225e1SGavin Maltby# CDDL HEADER END 2049b225e1SGavin Maltby# 2149b225e1SGavin Maltby# 22*f6e214c7SGavin Maltby# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 2349b225e1SGavin Maltby# 2449b225e1SGavin Maltby 2549b225e1SGavin MaltbyLIBRARY = libfmevent.a 2649b225e1SGavin MaltbyVERS = .1 2749b225e1SGavin Maltby 2849b225e1SGavin MaltbyLIBSRCS = fmev_subscribe.c \ 2949b225e1SGavin Maltby fmev_evaccess.c \ 3049b225e1SGavin Maltby fmev_errstring.c \ 31*f6e214c7SGavin Maltby fmev_util.c \ 32*f6e214c7SGavin Maltby fmev_publish.c 3349b225e1SGavin Maltby 3449b225e1SGavin MaltbyOBJECTS = $(LIBSRCS:%.c=%.o) 3549b225e1SGavin Maltby 3649b225e1SGavin Maltbyinclude ../../../Makefile.lib 3749b225e1SGavin Maltbyinclude ../../Makefile.lib 3849b225e1SGavin Maltby 3949b225e1SGavin MaltbySRCS = $(LIBSRCS:%.c=../common/%.c) 4049b225e1SGavin MaltbyLIBS = $(DYNLIB) $(LINTLIB) 4149b225e1SGavin Maltby 4249b225e1SGavin MaltbySRCDIR = ../common 4349b225e1SGavin Maltby 44*f6e214c7SGavin MaltbyC99MODE = $(C99_ENABLE) 45*f6e214c7SGavin Maltby 4649b225e1SGavin MaltbyCPPFLAGS += -I../common -I. 4749b225e1SGavin Maltby$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 4849b225e1SGavin Maltby 4949b225e1SGavin MaltbyCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS) 5049b225e1SGavin MaltbyCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS) 51*f6e214c7SGavin Maltby$(DYNLIB) := LDLIBS += -lumem -lnvpair -luutil -lsysevent -L$(ROOTLIBDIR) \ 52*f6e214c7SGavin Maltby -ltopo -lc 5349b225e1SGavin Maltby 5449b225e1SGavin MaltbyLINTFLAGS = -msux 5549b225e1SGavin MaltbyLINTFLAGS64 = -msux -m64 5649b225e1SGavin Maltby 5749b225e1SGavin Maltby$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 5849b225e1SGavin Maltby$(LINTLIB) := LINTFLAGS = -nsvx 5949b225e1SGavin Maltby$(LINTLIB) := LINTFLAGS64 = -nsvx -m64 6049b225e1SGavin Maltby 6149b225e1SGavin MaltbyCLEANFILES += ../common/fmev_errstring.c 6249b225e1SGavin Maltby 6349b225e1SGavin Maltby.KEEP_STATE: 6449b225e1SGavin Maltby 6549b225e1SGavin Maltbyall: $(LIBS) 6649b225e1SGavin Maltby 6749b225e1SGavin Maltbylint: $(LINTLIB) lintcheck 6849b225e1SGavin Maltby 6949b225e1SGavin Maltbypics/%.o: ../$(MACH)/%.c 7049b225e1SGavin Maltby $(COMPILE.c) -o $@ $< 7149b225e1SGavin Maltby $(POST_PROCESS_O) 7249b225e1SGavin Maltby 7349b225e1SGavin Maltby../common/fmev_errstring.c: ../common/mkerror.sh ../common/libfmevent.h 7449b225e1SGavin Maltby sh ../common/mkerror.sh ../common/libfmevent.h > $@ 7549b225e1SGavin Maltby 7649b225e1SGavin Maltby%.o: ../common/%.c 7749b225e1SGavin Maltby $(COMPILE.c) -o $@ $< 7849b225e1SGavin Maltby $(POST_PROCESS_O) 7949b225e1SGavin Maltby 8049b225e1SGavin Maltbyinclude ../../../Makefile.targ 8149b225e1SGavin Maltbyinclude ../../Makefile.targ 82