]> git.saurik.com Git - apple/libsystem.git/blame - Makefile.preamble
Libsystem-71.1.3.tar.gz
[apple/libsystem.git] / Makefile.preamble
CommitLineData
8594eb27
A
1ifeq ($(RC_ARCHS),ppc)
2GCCLIBS = -lgcc-ppc
3OTHER_PRODUCT_DEPENDS += $(OFILE_DIR)/libgcc.unexport
4else
5GCCLIBS = -lcc_noc++
6endif
7
e29534dc 8BEFORE_BUILD += comm-page-symbols
435227b9 9BEFORE_INSTALL += profile debug
4a9703e6 10AFTER_INSTALL += compat-next compat-bsd copy_plist
435227b9 11
8594eb27
A
12ifeq ($(RC_ARCHS),ppc)
13LIBSYSTEM_LIBS := -lldbl128 $(LIBSYSTEM_LIBS)
14endif
15PROFILE_BUILD_LIBS := $(foreach LIB, $(LIBSYSTEM_LIBS), $(LIB)_profile) $(GCCLIBS)
16DEBUG_BUILD_LIBS := $(foreach LIB, $(LIBSYSTEM_LIBS), $(LIB)_debug) $(GCCLIBS)
435227b9 17
e29534dc
A
18# the _stub.o files need to come first to ensure that they override the default stubs
19OTHER_LIBTOOL_FLAGS = $(OFILE_DIR)/spinlock_stub.o \
20 $(OFILE_DIR)/spinlocktry_stub.o \
21 $(OFILE_DIR)/spinunlock_stub.o \
22 -L/usr/lib/system -sub_library libmathCommon \
23 -lmathCommon -sectorder __TEXT __text System.order \
24 -segcreate __DATA __commpage $(OFILE_DIR)/CommPageSymbols.o
435227b9 25
8594eb27
A
26ifeq ($(RC_ARCHS),ppc)
27OTHER_LIBTOOL_FLAGS += -unexported_symbols_list $(OFILE_DIR)/libgcc.unexport
28endif
29
e29534dc 30BSD_LIBS = c info kvm m pthread dbm poll dl rpcsvc
435227b9
A
31
32include $(MAKEFILEPATH)/CoreOS/ProjectBuilder/Makefile.Preamble.Common