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