xref: /titanic_44/usr/src/cmd/fs.d/cachefs/Makefile.cachefs (revision fcf3ce441efd61da9bb2884968af01cb7c1452cc)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23#ident	"%Z%%M%	%I%	%E% SMI"
24#
25# Copyright (c) 1989,2001 by Sun Microsystems, Inc.
26# All rights reserved.
27
28CACHEFSDIR=	$(SRC)/cmd/fs.d/$(FSTYPE)/common
29
30#
31# This next line is only enabled if you are NOT doing a RELEASE_BUILD.  It
32# causes changes to header files in $(SRC)/uts/common to cause a rebuild.
33#
34#$(NOT_RELEASE_BUILD)CPPFLAGS	= $(CPPFLAGS.master)
35
36#
37# The next line can be uncommented to turn on debugging when not doing a
38# RELEASE_BUILD.
39#
40#$(NOT_RELEASE_BUILD)CFLAGS	+= -g
41
42#
43# Uncomment the next line if you want ZIP extensions.
44#
45#$(NOT_RELEASE_BUILD)CPPFLAGS	+= -DZIP
46
47OBJS=		$(PROGOBJS)
48SRCS=		$(OBJS:%.o=%.c)
49LIBRARY=	libcachefs.a
50LIBRARYMT=	libcachefsmt.a
51CFSLIB=		$(CACHEFSDIR)/$(LIBRARY)
52CFSLIBMT=	$(CACHEFSDIR)/$(LIBRARYMT)
53LDLIBS +=	$(CFSLIB)
54
55$(LIBPROG):	$(OBJS)
56		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
57		$(POST_PROCESS)
58
59$(CFSLIB):
60		cd $(@D); pwd; $(MAKE) $(TARGET);
61		@pwd
62
63$(CACHEFSDIR)/cachefsd.h:
64		cd $(@D); pwd; $(MAKE) $(TARGET);
65		@pwd
66
67lint:	lint_SRCS
68
69clean:
70	$(RM) $(PROGOBJS) $(CLEANFILES)
71
72FRC:
73