xref: /titanic_50/usr/src/lib/libreparse/Makefile.com (revision 7a286c471efbab8562f7655a82931904703fffe0)
1*7a286c47SDai Ngo#
2*7a286c47SDai Ngo# CDDL HEADER START
3*7a286c47SDai Ngo#
4*7a286c47SDai Ngo# The contents of this file are subject to the terms of the
5*7a286c47SDai Ngo# Common Development and Distribution License (the "License").
6*7a286c47SDai Ngo# You may not use this file except in compliance with the License.
7*7a286c47SDai Ngo#
8*7a286c47SDai Ngo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*7a286c47SDai Ngo# or http://www.opensolaris.org/os/licensing.
10*7a286c47SDai Ngo# See the License for the specific language governing permissions
11*7a286c47SDai Ngo# and limitations under the License.
12*7a286c47SDai Ngo#
13*7a286c47SDai Ngo# When distributing Covered Code, include this CDDL HEADER in each
14*7a286c47SDai Ngo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*7a286c47SDai Ngo# If applicable, add the following below this CDDL HEADER, with the
16*7a286c47SDai Ngo# fields enclosed by brackets "[]" replaced with your own identifying
17*7a286c47SDai Ngo# information: Portions Copyright [yyyy] [name of copyright owner]
18*7a286c47SDai Ngo#
19*7a286c47SDai Ngo# CDDL HEADER END
20*7a286c47SDai Ngo#
21*7a286c47SDai Ngo#
22*7a286c47SDai Ngo# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*7a286c47SDai Ngo# Use is subject to license terms.
24*7a286c47SDai Ngo#
25*7a286c47SDai Ngo
26*7a286c47SDai NgoLIBRARY=	libreparse.a
27*7a286c47SDai NgoVERS=		.1
28*7a286c47SDai Ngo
29*7a286c47SDai NgoLOCOBJS =	fs_reparse_lib.o
30*7a286c47SDai NgoCOMOBJS =	fs_reparse.o
31*7a286c47SDai NgoOBJECTS =	$(LOCOBJS) $(COMOBJS)
32*7a286c47SDai NgoCOMDIR =	$(SRC)/common/fsreparse
33*7a286c47SDai Ngo
34*7a286c47SDai Ngoinclude ../../Makefile.lib
35*7a286c47SDai Ngo
36*7a286c47SDai NgoSRCDIR =	../common
37*7a286c47SDai NgoSRCS =		$(LOCOBJS:%.o=$(SRCDIR)/%.c) $(COMOBJS:%.o=$(COMDIR)/%.c)
38*7a286c47SDai Ngo
39*7a286c47SDai NgoLIBS =		$(DYNLIB) $(LINTLIB)
40*7a286c47SDai NgoLDLIBS += 	-lc -lnvpair
41*7a286c47SDai Ngo
42*7a286c47SDai NgoCFLAGS +=	$(CCVERBOSE)
43*7a286c47SDai NgoCPPFLAGS +=	-I$(COMDIR) -D_FILE_OFFSET_BITS=64
44*7a286c47SDai Ngo
45*7a286c47SDai Ngo$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
46*7a286c47SDai Ngo
47*7a286c47SDai Ngo.KEEP_STATE:
48*7a286c47SDai Ngo
49*7a286c47SDai Ngoall: $(LIBS)
50*7a286c47SDai Ngo
51*7a286c47SDai Ngolint: lintcheck
52*7a286c47SDai Ngo
53*7a286c47SDai Ngoinclude ../../Makefile.targ
54*7a286c47SDai Ngo
55*7a286c47SDai Ngopics/%.o: $(COMDIR)/%.c
56*7a286c47SDai Ngo	$(COMPILE.c) -o $@ $<
57*7a286c47SDai Ngo	$(POST_PROCESS_O)
58