Makefile revision b6805bf78d2bbbeeaea8909a05623587b42d58b3
1516N/A#
50N/A# CDDL HEADER START
50N/A#
50N/A# The contents of this file are subject to the terms of the
50N/A# Common Development and Distribution License (the "License").
50N/A# You may not use this file except in compliance with the License.
50N/A#
50N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
50N/A# or http://www.opensolaris.org/os/licensing.
50N/A# See the License for the specific language governing permissions
50N/A# and limitations under the License.
50N/A#
50N/A# When distributing Covered Code, include this CDDL HEADER in each
50N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
50N/A# If applicable, add the following below this CDDL HEADER, with the
50N/A# fields enclosed by brackets "[]" replaced with your own identifying
50N/A# information: Portions Copyright [yyyy] [name of copyright owner]
50N/A#
50N/A# CDDL HEADER END
50N/A#
50N/A#
50N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
926N/A# Use is subject to license terms.
3294N/A#
926N/A
50N/APROG= find
3143N/AXPG4PROG= find
2212N/AFINDOBJS1= find.o
2623N/AFINDOBJS= $(FINDOBJS1) getresponse.o
1505N/AXPG4FINDOBJS= $(FINDOBJS:%.o=xpg4_%.o)
2851N/ASRCS= $(FINDOBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
3339N/A
2205N/Ainclude ../Makefile.cmd
2623N/A
1505N/A$(XPG4) := CFLAGS += -DXPG4
462N/ACPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
3336N/A
3234N/ACERRWARN += -_gcc=-Wno-switch
2851N/ACERRWARN += -_gcc=-Wno-parentheses
2339N/ACERRWARN += -_gcc=-Wno-uninitialized
2708N/A
3110N/ALINTFLAGS += -u
1286N/ALDLIBS += -lsec
2608N/A
956N/A.KEEP_STATE:
3245N/A
3194N/Aall: $(PROG) $(XPG4)
1431N/A
1431N/Ainstall: all $(ROOTPROG) $(ROOTXPG4PROG)
1431N/A
1306N/A$(PROG): $(FINDOBJS)
2654N/A $(LINK.c) -o $@ $(FINDOBJS) $(LDLIBS)
1505N/A $(POST_PROCESS)
2410N/A
3336N/A$(XPG4): $(XPG4FINDOBJS)
2089N/A $(LINK.c) -o $@ $(XPG4FINDOBJS) $(LDLIBS)
3046N/A $(POST_PROCESS)
2410N/A
2410N/A%.o: $(SRC)/common/util/%.c
2089N/A $(COMPILE.c) $(OUTPUT_OPTION) $<
2690N/A $(POST_PROCESS_O)
2962N/A
1505N/Axpg4_%.o: %.c
2089N/A $(COMPILE.c) -o $@ $<
2089N/A $(POST_PROCESS_O)
2453N/A
3458N/Axpg4_%.o: $(SRC)/common/util/%.c
2089N/A $(COMPILE.c) -o $@ $<
1505N/A $(POST_PROCESS_O)
584N/A
1505N/Aclean:
2690N/A $(RM) $(FINDOBJS) $(XPG4FINDOBJS)
2453N/A
3146N/Alint: lint_SRCS
3336N/A
1505N/Ainclude ../Makefile.targ
1505N/A