xref: /titanic_41/usr/src/cmd/fs.d/cachefs/Makefile.cachefs (revision 5b2ba9d3d1e04dde804c89e9879f7dfc9bcebf61)
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# Copyright (c) 1989,2001 by Sun Microsystems, Inc.
24# All rights reserved.
25#
26
27CACHEFSDIR=	$(SRC)/cmd/fs.d/$(FSTYPE)/common
28
29#
30# This next line is only enabled if you are NOT doing a RELEASE_BUILD.  It
31# causes changes to header files in $(SRC)/uts/common to cause a rebuild.
32#
33#$(NOT_RELEASE_BUILD)CPPFLAGS	= $(CPPFLAGS.master)
34
35#
36# The next line can be uncommented to turn on debugging when not doing a
37# RELEASE_BUILD.
38#
39#$(NOT_RELEASE_BUILD)CFLAGS	+= -g
40
41#
42# Uncomment the next line if you want ZIP extensions.
43#
44#$(NOT_RELEASE_BUILD)CPPFLAGS	+= -DZIP
45
46OBJS=		$(PROGOBJS)
47SRCS=		$(OBJS:%.o=%.c)
48LIBRARY=	libcachefs.a
49LIBRARYMT=	libcachefsmt.a
50CFSLIB=		$(CACHEFSDIR)/$(LIBRARY)
51CFSLIBMT=	$(CACHEFSDIR)/$(LIBRARYMT)
52LDLIBS +=	$(CFSLIB)
53
54CERRWARN +=	-_gcc=-Wno-unused-variable
55CERRWARN +=	-_gcc=-Wno-parentheses
56CERRWARN +=	-_gcc=-Wno-implicit-function-declaration
57CERRWARN +=	-_gcc=-Wno-uninitialized
58CERRWARN +=	-_gcc=-Wno-unused-function
59
60$(LIBPROG):	$(OBJS)
61		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
62		$(POST_PROCESS)
63
64$(CFSLIB):
65		cd $(@D); pwd; $(MAKE) $(TARGET);
66		@pwd
67
68$(CACHEFSDIR)/cachefsd.h:
69		cd $(@D); pwd; $(MAKE) $(TARGET);
70		@pwd
71
72lint:	lint_SRCS
73
74clean:
75	$(RM) $(PROGOBJS) $(CLEANFILES)
76
77FRC:
78