Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
463N/A#
463N/A# CDDL HEADER START
463N/A#
463N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License, Version 1.0 only
851N/A# (the "License"). You may not use this file except in compliance
463N/A# with the License.
463N/A#
463N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
463N/A# or http://www.opensolaris.org/os/licensing.
463N/A# See the License for the specific language governing permissions
463N/A# and limitations under the License.
463N/A#
463N/A# When distributing Covered Code, include this CDDL HEADER in each
463N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
463N/A# If applicable, add the following below this CDDL HEADER, with the
463N/A# fields enclosed by brackets "[]" replaced with your own identifying
463N/A# information: Portions Copyright [yyyy] [name of copyright owner]
463N/A#
463N/A# CDDL HEADER END
463N/A#
463N/A#
463N/A#ident "%Z%%M% %I% %E% SMI"
463N/A#
463N/A# Copyright (c) 1998 by Sun Microsystems, Inc.
463N/A#
463N/A# cmd/sgs/size/sparc/Makefile
463N/A#
463N/A
463N/APROG= size
463N/A
463N/Ainclude ../../../Makefile.cmd
463N/Ainclude ../../Makefile.com
463N/A
463N/AOBJS= main.o process.o fcns.o
493N/A
463N/ASRCS= $(OBJS:%.o=../common/%.c)
463N/A
851N/ALDFLAGS += '-R$$ORIGIN/../../lib'
463N/AINCLIST= -I../common -I../../include -I../../include/sparc \
911N/A -I$(SRCBASE)/uts/$(ARCH)/sys
911N/ADEFLIST= -DSPARC -DELF
911N/ACPPFLAGS= $(INCLIST) $(DEFLIST) $(CPPFLAGS.master)
911N/ALDLIBS += -L../../libconv/sparc -lconv -lelf
463N/ALINTFLAGS= -mx $(LDLIBS)
463N/A
463N/ACLEANFILES += $(LINTOUT)
463N/A
463N/A
493N/A# Building SUNWonld results in a call to the `package' target. Requirements
493N/A# needed to run this application on older releases are established:
463N/A# i18n support requires libintl.so.1 prior to 2.6
463N/A
package := LDLIBS += /usr/lib/libintl.so.1
%.o: ../common/%.c
$(COMPILE.c) $<
.KEEP_STATE:
all: $(PROG)
$(PROG): $(OBJS)
$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
$(POST_PROCESS)
package \
install: all $(ROOTCCSBINPROG)
clean:
$(RM) $(OBJS) $(CLEANFILES)
lint: $(LINTOUT)
$(LINTOUT): $(SRCS)
$(LINT.c) $(SRCS) > $(LINTOUT) 2>&1
include ../../../Makefile.targ