Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
1525N/A#
1525N/A# CDDL HEADER START
1525N/A#
1525N/A# The contents of this file are subject to the terms of the
1525N/A# Common Development and Distribution License, Version 1.0 only
1525N/A# (the "License"). You may not use this file except in compliance
1525N/A# with the License.
1525N/A#
1525N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1525N/A# or http://www.opensolaris.org/os/licensing.
1525N/A# See the License for the specific language governing permissions
1525N/A# and limitations under the License.
1525N/A#
1525N/A# When distributing Covered Code, include this CDDL HEADER in each
1525N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1525N/A# If applicable, add the following below this CDDL HEADER, with the
1525N/A# fields enclosed by brackets "[]" replaced with your own identifying
1525N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1525N/A#
1525N/A# CDDL HEADER END
5680N/A#
1525N/A#
5680N/A#pragma ident "%Z%%M% %I% %E% SMI"
5680N/A#
5680N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
1525N/A# Use is subject to license terms.
1525N/A#
1525N/A
1525N/AFSTYPE= udfs
1525N/ALIBPROG= fsdb
1525N/A
1525N/Ainclude ../../Makefile.fstype
1525N/A
1525N/ACPPFLAGS += -D_LARGEFILE64_SOURCE
2899N/ALDLIBS += -lmalloc -ll -ladm
2899N/AYFLAGS="-d"
5680N/A
5680N/ASRCS= fsdb.c ud_lib.c
5680N/A
5680N/Afsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o
1525N/A $(LINK.c) -o $@ fsdb.o fsdb_yacc.o fsdb_lex.o \
1525N/A ud_lib.o $(LDLIBS)
1525N/A $(POST_PROCESS)
2101N/A
2101N/Afsdb.o : fsdb.c
1525N/A $(COMPILE.c) -o $@ fsdb.c
1525N/A $(POST_PROCESS_O)
3280N/A
4391N/Aud_lib.o : ../fstyp/ud_lib.c
5680N/A $(RM) ud_lib.c
4391N/A $(CP) ../fstyp/ud_lib.c ud_lib.c
4391N/A $(RM) ud_lib.h
4391N/A $(CP) ../fstyp/ud_lib.h ud_lib.h
4391N/A $(COMPILE.c) -o $@ ud_lib.c
4391N/A $(POST_PROCESS_O)
1525N/A
3817N/Ay.tab.c : fsdb_yacc.y
$(YACC.y) fsdb_yacc.y
fsdb_yacc.o : y.tab.c
$(COMPILE.c) -o $@ y.tab.c
$(POST_PROCESS_O)
lex.yy.c : fsdb_lex.l
$(LEX) -e fsdb_lex.l
fsdb_lex.o : lex.yy.c
$(COMPILE.c) -o $@ lex.yy.c
$(POST_PROCESS_O)
clean :
$(RM) ud_lib.c ud_lib.h fsdb.o ud_lib.o fsdb_yacc.o fsdb_lex.o
$(RM) fsdb_yacc.c fsdb_lex.c y.tab.c y.tab.h lex.yy.c
# for messaging catalog
#
POFILE= fsdb.po
# for messaging catalog
#
catalog: $(POFILE)
CATSRCS= $(SRCS) lex.yy.c y.tab.c
$(POFILE): $(CATSRCS)
$(RM) $@
$(COMPILE.cpp) $(CATSRCS) > $(POFILE).i
$(XGETTEXT) $(XGETFLAGS) $(POFILE).i
$(SED) "/^domain/d" messages.po > $@
$(RM) $(POFILE).i messages.po
lint: y.tab.c lex.yy.c
$(RM) ud_lib.h
$(CP) ../fstyp/ud_lib.h ud_lib.h
$(RM) ud_lib.c
$(CP) ../fstyp/ud_lib.c ud_lib.c
$(LINT.c) -mu $(SRCS)
putback :
-cstyle -p fsdb.c
-keywords fsdb.c
-keywords Makefile