xref: /titanic_41/usr/src/cmd/fs.d/pcfs/fsck/Makefile (revision 7a286c471efbab8562f7655a82931904703fffe0)
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 (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22#ident	"%Z%%M%	%I%	%E% SMI"
23#
24# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25# Use is subject to license terms.
26#
27# cmd/fs.d/pcfs/fsck/Makefile
28
29FSTYPE=		pcfs
30LIBPROG=	fsck
31ATTMK=		$(LIBPROG)
32
33include		../../Makefile.fstype
34
35FSCKOBJS=	fsck.o bpb.o clusters.o fat.o dir.o pcfs_common.o
36FSCKSRCS=	$(FSCKOBJS:%.o=%.c)
37
38#
39#  Error injection module for debugging purposes
40#
41#DEBUGOBJS=	inject.o
42#DEBUGSRCS=	$(DEBUGOBJS:%.o=%.c)
43
44OBJS=		$(FSCKOBJS) $(DEBUGOBJS)
45SRCS=		$(FSCKSRCS) $(DEBUGSRCS)
46LSRCS=		$(FSCKSRCS) $(DEBUGSRCS)
47
48# for messaging catalog
49#
50POFILE= fsck.po
51
52catalog:        $(POFILE)
53
54#
55# Uncomment the following two lines to build for dbx debugging
56#COPTFLAG = -g
57#COPTFLAG64 = -g
58#
59CPPFLAGS +=	-D_LARGEFILE64_SOURCE
60
61#
62# We need to tell lint not to complain about the routines
63# we are grabbing from the kernel as being undefined.
64#
65LINTFLAGS += -u
66
67$(LIBPROG):	$(OBJS)
68		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
69		$(POST_PROCESS)
70
71lint_LSRCS:
72	$(LINT.c) $(LSRCS) $(LDLIBS)
73
74lint:	lint_LSRCS
75
76clean:
77	$(RM) $(FSCKOBJS) $(DEBUGOBJS)
78