Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
1516N/A#
57N/A# CDDL HEADER START
57N/A#
57N/A# The contents of this file are subject to the terms of the
57N/A# Common Development and Distribution License (the "License").
57N/A# You may not use this file except in compliance with the License.
57N/A#
57N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
57N/A# or http://www.opensolaris.org/os/licensing.
57N/A# See the License for the specific language governing permissions
57N/A# and limitations under the License.
57N/A#
57N/A# When distributing Covered Code, include this CDDL HEADER in each
57N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
57N/A# If applicable, add the following below this CDDL HEADER, with the
57N/A# fields enclosed by brackets "[]" replaced with your own identifying
57N/A# information: Portions Copyright [yyyy] [name of copyright owner]
57N/A#
57N/A# CDDL HEADER END
57N/A#
57N/A#
57N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
57N/A# Use is subject to license terms.
941N/A#
57N/A
57N/AFSTYPE= udfs
57N/ALIBPROG= fsdb
57N/A
57N/Ainclude ../../Makefile.fstype
57N/A
57N/A# fsdb has a name clash with main() and libl.so.1. However, fsdb must
57N/A# still export a number of "yy*" (libl) interfaces. Reduce all other symbols
57N/A# to local scope.
57N/AMAPFILES += $(MAPFILE.INT) $(MAPFILE.LEX) $(MAPFILE.NGB)
590N/AMAPOPTS = $(MAPFILES:%=-M%)
57N/A
57N/ACPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
691N/ALDLIBS += -lmalloc -ll -ladm
57N/ALDFLAGS += $(MAPOPTS)
57N/AYFLAGS = "-d"
57N/A
57N/ALINTFLAGS += -erroff=E_STATIC_UNUSED
57N/ALINTFLAGS64 += -erroff=E_STATIC_UNUSED
72N/A
57N/ACERRWARN += -_gcc=-Wno-implicit-function-declaration
57N/ACERRWARN += -_gcc=-Wno-unused-label
57N/ACERRWARN += -_gcc=-Wno-unused-variable
57N/ACERRWARN += -_gcc=-Wno-uninitialized
57N/ACERRWARN += -_gcc=-Wno-unused-value
57N/ACERRWARN += -_gcc=-Wno-unused-function
57N/A
57N/ASRCS= fsdb.c ud_lib.c
57N/A
57N/Afsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES)
57N/A $(LINK.c) -o $@ fsdb.o fsdb_yacc.o fsdb_lex.o \
57N/A ud_lib.o $(LDLIBS)
57N/A $(POST_PROCESS)
57N/A
57N/Afsdb.o : fsdb.c
57N/A $(COMPILE.c) -o $@ fsdb.c
57N/A $(POST_PROCESS_O)
656N/A
656N/Aud_lib.o : ud_lib.c ud_lib.h
656N/A $(COMPILE.c) -o $@ ud_lib.c
656N/A $(POST_PROCESS_O)
656N/A
656N/Aud_lib.c : ../fstyp/ud_lib.c
656N/A $(RM) $@
656N/A $(CP) ../fstyp/ud_lib.c $@
656N/A
656N/Aud_lib.h : ../fstyp/ud_lib.h
656N/A $(RM) $@
656N/A $(CP) ../fstyp/ud_lib.h $@
656N/A
656N/Ay.tab.c : fsdb_yacc.y
656N/A $(YACC.y) fsdb_yacc.y
656N/A
656N/Afsdb_yacc.o : y.tab.c
656N/A $(COMPILE.c) -o $@ y.tab.c
656N/A $(POST_PROCESS_O)
656N/A
656N/Alex.yy.c : fsdb_lex.l
656N/A $(LEX) -e fsdb_lex.l
656N/A
656N/Afsdb_lex.o : lex.yy.c
656N/A $(COMPILE.c) -o $@ lex.yy.c
656N/A $(POST_PROCESS_O)
656N/A
656N/Aclean :
656N/A $(RM) ud_lib.c ud_lib.h fsdb.o ud_lib.o fsdb_yacc.o fsdb_lex.o
656N/A $(RM) fsdb_yacc.c fsdb_lex.c y.tab.c y.tab.h lex.yy.c
656N/A
317N/A# for messaging catalog
317N/A#
317N/APOFILE= fsdb.po
317N/A
317N/A# for messaging catalog
317N/A#
317N/Acatalog: $(POFILE)
317N/A
317N/ACATSRCS= $(SRCS) lex.yy.c y.tab.c
317N/A
317N/A$(POFILE): $(CATSRCS)
317N/A $(RM) $@
317N/A $(COMPILE.cpp) $(CATSRCS) > $(POFILE).i
317N/A $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
317N/A $(SED) "/^domain/d" messages.po > $@
317N/A $(RM) $(POFILE).i messages.po
317N/A
317N/Alint: y.tab.c lex.yy.c ud_lib.c ud_lib.h
317N/A $(LINT.c) -mu $(SRCS)
136N/A
136N/Aputback :
344N/A -cstyle -p fsdb.c
1340N/A -keywords fsdb.c
1340N/A -keywords Makefile
344N/A
656N/A