1# @(#)Makefile 8.2 (Berkeley) 2/3/94 2# $FreeBSD: src/lib/libc/Makefile,v 1.31 2001/08/13 21:48:43 peter Exp $ 3# 4# All library objects contain rcsid strings by default; they may be 5# excluded as a space-saving measure. To produce a library that does 6# not contain these strings, delete -DLIBC_RCS and -DSYSLIBC_RCS 7# from CFLAGS below. To remove these strings from just the system call 8# stubs, remove just -DSYSLIBC_RCS from CFLAGS. 9# 10# Yes, we build everything with -g, and strip it out later... 11# 12LIB=syscall 13SHLIB_MAJOR= 1 14SHLIB_MINOR= 0 15.if (${MACHINE_ARCH} == unknown) 16MACHINE_ARCH != /usr/bin/arch 17.endif 18.if !empty $(MACHINE_ARCH:M*64) 19LP64 = 1 20.endif 21CC = gcc 22.ifdef ALTFRAMEWORKSPATH 23PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders 24.else 25PRIVINC = -I${SDKROOT}/System/Library/Frameworks/System.framework/PrivateHeaders 26.endif 27CFLAGS += ${PRIVINC} 28.if empty $(MACHINE_ARCH:Marm*) 29CFLAGS += -force_cpusubtype_ALL 30AINC= -force_cpusubtype_ALL 31.endif 32CFLAGS += -no-cpp-precomp 33CFLAGS += -fno-common -pipe -Wmost -g 34AINC+= -no-cpp-precomp 35AINC+= -arch ${MACHINE_ARCH} -g 36CLEANFILES+=tags 37INSTALL_PIC_ARCHIVE= yes 38PRECIOUSLIB= yes 39 40# workaround for 3649783 41AINC += -fdollars-in-identifiers 42 43# If these aren't set give it expected defaults 44DESTDIR ?= ${DSTROOT} 45MAKEOBJDIR ?= ${OBJROOT} 46 47# add version string 48SRCS += libsyscall_version.c 49libsyscall_version.c: 50 ${SDKROOT}/Developer/Makefiles/bin/version.pl Libsyscall > $@ 51 52CFLAGS += -I${SYMROOT} 53.include "${.CURDIR}/Makefile.inc" 54.PATH: ${SYMROOT} 55.include "Makefile.xbs" 56.if exists(/usr/share/mk/bsd.init.mk) 57.include <bsd.init.mk> 58.endif 59.include <bsd.man.mk> 60