17a286c47SDai Ngo#
27a286c47SDai Ngo# CDDL HEADER START
37a286c47SDai Ngo#
47a286c47SDai Ngo# The contents of this file are subject to the terms of the
57a286c47SDai Ngo# Common Development and Distribution License (the "License").
67a286c47SDai Ngo# You may not use this file except in compliance with the License.
77a286c47SDai Ngo#
87a286c47SDai Ngo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97a286c47SDai Ngo# or http://www.opensolaris.org/os/licensing.
107a286c47SDai Ngo# See the License for the specific language governing permissions
117a286c47SDai Ngo# and limitations under the License.
127a286c47SDai Ngo#
137a286c47SDai Ngo# When distributing Covered Code, include this CDDL HEADER in each
147a286c47SDai Ngo# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157a286c47SDai Ngo# If applicable, add the following below this CDDL HEADER, with the
167a286c47SDai Ngo# fields enclosed by brackets "[]" replaced with your own identifying
177a286c47SDai Ngo# information: Portions Copyright [yyyy] [name of copyright owner]
187a286c47SDai Ngo#
197a286c47SDai Ngo# CDDL HEADER END
207a286c47SDai Ngo#
217a286c47SDai Ngo#
227a286c47SDai Ngo# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237a286c47SDai Ngo# Use is subject to license terms.
247a286c47SDai Ngo#
257a286c47SDai Ngo
267a286c47SDai NgoLIBRARY=	libreparse.a
277a286c47SDai NgoVERS=		.1
287a286c47SDai Ngo
297a286c47SDai NgoLOCOBJS =	fs_reparse_lib.o
307a286c47SDai NgoCOMOBJS =	fs_reparse.o
317a286c47SDai NgoOBJECTS =	$(LOCOBJS) $(COMOBJS)
327a286c47SDai NgoCOMDIR =	$(SRC)/common/fsreparse
337a286c47SDai Ngo
347a286c47SDai Ngoinclude ../../Makefile.lib
357a286c47SDai Ngo
367a286c47SDai NgoSRCDIR =	../common
377a286c47SDai NgoSRCS =		$(LOCOBJS:%.o=$(SRCDIR)/%.c) $(COMOBJS:%.o=$(COMDIR)/%.c)
387a286c47SDai Ngo
39*241c90a0SRichard LoweLIBS =		$(DYNLIB)
40*241c90a0SRichard LoweLDLIBS +=	-lc -lnvpair
417a286c47SDai Ngo
427a286c47SDai NgoCFLAGS +=	$(CCVERBOSE)
437a286c47SDai NgoCPPFLAGS +=	-I$(COMDIR) -D_FILE_OFFSET_BITS=64
447a286c47SDai Ngo
457a286c47SDai Ngo
467a286c47SDai Ngo.KEEP_STATE:
477a286c47SDai Ngo
487a286c47SDai Ngoall: $(LIBS)
497a286c47SDai Ngo
507a286c47SDai Ngo
517a286c47SDai Ngoinclude ../../Makefile.targ
527a286c47SDai Ngo
537a286c47SDai Ngopics/%.o: $(COMDIR)/%.c
547a286c47SDai Ngo	$(COMPILE.c) -o $@ $<
557a286c47SDai Ngo	$(POST_PROCESS_O)
56