Makefile revision 5aefb6555731130ca4fd295960123d71f2d21fe8
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
0N/A
0N/Ainclude $(SRC)/Makefile.master
0N/Ainclude $(SRC)/cmd/sgs/Makefile.var
0N/A
0N/ABUILDLOG= package_build.$(MACH).log
0N/A
0N/AMACHS:sh= if [ "$MACH" = "sparc" ]; \
0N/A then echo "sparc sparcv9"; \
0N/A elif [ "$MACH" = "i386" ]; \
0N/A then echo "i386 amd64"; \
0N/A else echo "unknown"; \
0N/A fi
0N/A
0N/ARDBDIRS= $(MACHS:%=../librtld_db/rdb_demo/%)
0N/ALDMAKEDIRS= $(MACHS:%=../libldmake/%)
0N/A
0N/A
0N/ASUBDIRS1= ../libconv \
0N/A .WAIT \
0N/A ../libdl \
0N/A .WAIT \
0N/A ../libelf \
0N/A .WAIT \
0N/A ../liblddbg \
0N/A ../librtld_db \
0N/A .WAIT \
0N/A ../librtld \
0N/A ../libcrle
0N/A
0N/ASUBDIRS2 = ../rtld \
0N/A ../rtld.4.x \
0N/A ../libldstab \
0N/A ../lari \
0N/A ../ldprof \
0N/A ../lddstub \
0N/A $(LDMAKEDIRS) \
0N/A ../0@0 \
0N/A ../tools \
0N/A $(RDBDIRS)
0N/A
0N/A#
0N/A# Package dirs are directories which specifically
0N/A# have a 'package' target. This target is used to key
0N/A# off of whether a system build is performed
0N/A# or a SUNWonld build.
0N/A#
0N/APKGDIRS= ../libcrle \
0N/A ../libld \
0N/A ../elfdump \
0N/A ../crle \
0N/A ../lari \
0N/A ../ld \
0N/A ../ldd \
0N/A ../ldprof \
0N/A ../mcs \
0N/A ../moe \
0N/A ../pvs
0N/A
0N/A$(SUBDIRS1) $(SUBDIRS2) := TARGET = install
0N/A$(PKGDIRS) := TARGET = package
0N/A
0N/A
0N/AM32:sh= if [ "$MACH" = "sparc" ]; \
0N/A then echo sparc; \
0N/A elif [ "$MACH" = "i386" ]; \
0N/A then echo "$(VAR_I386_ARCH)"; \
0N/A else \
0N/A echo "unknown"; \
0N/A fi
0N/A
0N/A../%: FRC
0N/A @ cd $@; pwd; $(MAKE) $(TARGET)
0N/A
0N/A.KEEP_STATE_FILE: .make.state.$(MACH)
0N/A.KEEP_STATE:
0N/A.PARALLEL: $(SUBDIRS1) $(PKGDIRS) $(SUBDIRS2)
0N/A
0N/Aall clean clobber install: FRC
0N/A @ cd $(MACH); pwd; $(MAKE) $@
0N/A
0N/A#
0N/A# invoke `package' to build this package from scratch. It will
0N/A# perform make install in the directories that contains components
0N/A# that this package is dependent upon
0N/A#
64N/Apackage: FRC
64N/A @/bin/time $(MAKE) package_build 2>&1 | tee $(BUILDLOG)
64N/A @ echo "===BUILD COMPLETED checking for warnings...==="
64N/A @ grep -i "warning:" $(BUILDLOG) | grep -v PSTAMP | cat
0N/A @ echo "==================done========================="
0N/A
0N/Apackage_build: package_dep .WAIT package_chkmsg .WAIT install
0N/A
0N/Apackage_chkmsg: FRC
0N/A @ cd ..; pwd; $(MAKE) chkmsg
0N/A
0N/Apackage_dep: package_dep_ .WAIT $(SUBDIRS1) .WAIT \
0N/A $(PKGDIRS) .WAIT $(SUBDIRS2)
0N/A
0N/Apackage_dep_: FRC
0N/A @ cd ../tools; pwd; $(MAKE) proto && ./proto
0N/A @ cd $(SRC)/head; pwd; $(MAKE) \
0N/A $(ROOT)/usr/include/dlfcn.h \
64N/A $(ROOT)/usr/include/gelf.h \
64N/A $(ROOT)/usr/include/libelf.h \
64N/A $(ROOT)/usr/include/proc_service.h \
64N/A $(ROOT)/usr/include/rtld_db.h \
64N/A $(ROOT)/usr/include/link.h
64N/A @ cd $(SRC)/lib/libproc; pwd; $(MAKE) install_h
64N/A @ cd $(SRC)/uts/common/sys; pwd; $(MAKE) \
64N/A $(ROOT)/usr/include/sys/elf.h \
64N/A $(ROOT)/usr/include/sys/elf_386.h \
64N/A $(ROOT)/usr/include/sys/elf_M32.h \
0N/A $(ROOT)/usr/include/sys/elf_SPARC.h \
0N/A $(ROOT)/usr/include/sys/elf_notes.h \
0N/A $(ROOT)/usr/include/sys/elf_amd64.h \
0N/A $(ROOT)/usr/include/sys/elftypes.h \
0N/A $(ROOT)/usr/include/sys/auxv.h \
0N/A $(ROOT)/usr/include/sys/auxv_SPARC.h \
0N/A $(ROOT)/usr/include/sys/auxv_386.h \
0N/A $(ROOT)/usr/include/sys/link.h \
0N/A $(ROOT)/usr/include/sys/note.h \
0N/A $(ROOT)/usr/include/sys/systeminfo.h
0N/A @ cd $(SRC)/uts/$(M32)/sys; pwd; $(MAKE) \
0N/A $(ROOT)/usr/include/sys/machelf.h
0N/A @ cd ../tools/$(MACH); pwd; $(MAKE) sgsmsg piglatin
0N/A @ cd ..; pwd; $(MAKE) _msg_sgsmsg
0N/A @ cd ..; pwd; $(MAKE) native-add
0N/A @ cd ../libconv; pwd; $(MAKE) all
0N/A @ cd ../link_audit; pwd; $(MAKE) package
0N/A @ cd ../messages/$(MACH); pwd; $(MAKE) test
0N/A @ cd ../sgsdemangler; pwd; $(MAKE) all
0N/A
0N/Alint: FRC
0N/A $(MAKE) -f Makefile.lint lint
0N/A
64N/AFRC:
64N/A