xref: /titanic_41/usr/src/lib/fm/libfmnotify/Makefile.com (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
1*f6e214c7SGavin Maltby#
2*f6e214c7SGavin Maltby# CDDL HEADER START
3*f6e214c7SGavin Maltby#
4*f6e214c7SGavin Maltby# The contents of this file are subject to the terms of the
5*f6e214c7SGavin Maltby# Common Development and Distribution License (the "License").
6*f6e214c7SGavin Maltby# You may not use this file except in compliance with the License.
7*f6e214c7SGavin Maltby#
8*f6e214c7SGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*f6e214c7SGavin Maltby# or http://www.opensolaris.org/os/licensing.
10*f6e214c7SGavin Maltby# See the License for the specific language governing permissions
11*f6e214c7SGavin Maltby# and limitations under the License.
12*f6e214c7SGavin Maltby#
13*f6e214c7SGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each
14*f6e214c7SGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*f6e214c7SGavin Maltby# If applicable, add the following below this CDDL HEADER, with the
16*f6e214c7SGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying
17*f6e214c7SGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner]
18*f6e214c7SGavin Maltby#
19*f6e214c7SGavin Maltby# CDDL HEADER END
20*f6e214c7SGavin Maltby#
21*f6e214c7SGavin Maltby
22*f6e214c7SGavin Maltby#
23*f6e214c7SGavin Maltby# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24*f6e214c7SGavin Maltby#
25*f6e214c7SGavin Maltby
26*f6e214c7SGavin MaltbyLIBRARY = libfmnotify.a
27*f6e214c7SGavin MaltbyVERS = .1
28*f6e214c7SGavin Maltby
29*f6e214c7SGavin MaltbyLIBSRCS = libfmnotify.c
30*f6e214c7SGavin MaltbyOBJECTS = $(LIBSRCS:%.c=%.o)
31*f6e214c7SGavin Maltby
32*f6e214c7SGavin Maltbyinclude ../../../Makefile.lib
33*f6e214c7SGavin Maltbyinclude ../../Makefile.lib
34*f6e214c7SGavin Maltby
35*f6e214c7SGavin MaltbySRCS = $(LIBSRCS:%.c=../common/%.c)
36*f6e214c7SGavin MaltbyLIBS = $(DYNLIB) $(LINTLIB)
37*f6e214c7SGavin Maltby
38*f6e214c7SGavin MaltbySRCDIR =	../common
39*f6e214c7SGavin Maltby
40*f6e214c7SGavin MaltbyC99MODE = $(C99_ENABLE)
41*f6e214c7SGavin Maltby
42*f6e214c7SGavin MaltbyCPPFLAGS += -I../common -I.
43*f6e214c7SGavin MaltbyCFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
44*f6e214c7SGavin MaltbyCFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
45*f6e214c7SGavin Maltby
46*f6e214c7SGavin Maltby$(DYNLIB) := LDLIBS += $(MACH_LDLIBS)
47*f6e214c7SGavin Maltby$(DYNLIB) := LDLIBS += -lnvpair -lc -lfmd_msg -lfmevent -lscf -ldiagcode
48*f6e214c7SGavin Maltby
49*f6e214c7SGavin MaltbyLINTFLAGS = -msux
50*f6e214c7SGavin MaltbyLINTFLAGS64 = -msux -m64
51*f6e214c7SGavin Maltby
52*f6e214c7SGavin Maltby$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
53*f6e214c7SGavin Maltby$(LINTLIB) := LINTFLAGS = -nsvx
54*f6e214c7SGavin Maltby$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
55*f6e214c7SGavin Maltby
56*f6e214c7SGavin Maltby.KEEP_STATE:
57*f6e214c7SGavin Maltby
58*f6e214c7SGavin Maltbyall: $(LIBS)
59*f6e214c7SGavin Maltby
60*f6e214c7SGavin Maltbylint: $(LINTLIB) lintcheck
61*f6e214c7SGavin Maltby
62*f6e214c7SGavin Maltbyinclude ../../../Makefile.targ
63*f6e214c7SGavin Maltbyinclude ../../Makefile.targ
64