Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
304N/A#
304N/A# CDDL HEADER START
1276N/A#
304N/A# The contents of this file are subject to the terms of the
1356N/A# Common Development and Distribution License (the "License").
304N/A# You may not use this file except in compliance with the License.
304N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
919N/A#
304N/A
304N/AFSTYP_VERS=1
304N/AFSTYPE= udfs
304N/ALIBPROG= fstyp.so.${FSTYP_VERS}
493N/A
304N/Ainclude ../../../../lib/Makefile.lib
970N/Ainclude ../../Makefile.fstype
970N/A
970N/A# There should be a mapfile here
1356N/AMAPFILES =
970N/A
304N/ACFLAGS += $(C_PICFLAGS)
1408N/ADYNLIB= $(LIBPROG)
304N/A
911N/ACERRWARN += -_gcc=-Wno-unused-function
1408N/ACERRWARN += -_gcc=-Wno-uninitialized
1408N/A
1408N/ALDLIBS += -lnvpair -ladm -lc
911N/A
304N/ALINTFLAGS += -erroff=E_STATIC_UNUSED -erroff=E_NAME_DEF_NOT_USED2
304N/ALINTFLAGS64 += -erroff=E_STATIC_UNUSED -erroff=E_NAME_DEF_NOT_USED2
304N/A
304N/A#
1276N/A# Override PMAP dependency
493N/A#
304N/APMAP=
970N/A
970N/A# No msg catalog here.
970N/APOFILE=
304N/A
OBJS= fstyp.o ud_lib.o
SRCS= $(OBJS:%.o=%.c)
CPPFLAGS += -DFSTYP_VERS=${FSTYP_VERS} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
$(LIBPROG): $(OBJS)
$(LINK.c) $(CPPFLAGS) $(CFLAGS) $(DYNFLAGS) $(GSHARED) -o $@ $(OBJS) \
$(LDLIBS)
$(POST_PROCESS_SO)
%.o: %.c
$(COMPILE.c) -o $@ $<
$(POST_PROCESS_O)
.KEEP_STATE:
all: $(LIBPROG)
install: all
$(RM) $(ROOTLIBFSTYPE)/fstyp
$(LN) $(ROOTUSRSBIN)/fstyp $(ROOTLIBFSTYPE)/fstyp
lint: lint_SRCS
cstyle:
$(CSTYLE) $(SRCS)
clean:
$(RM) $(OBJS)