]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
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 | # | |
12 | LIB=syscall | |
13 | SHLIB_MAJOR= 1 | |
14 | SHLIB_MINOR= 0 | |
15 | .if (${MACHINE_ARCH} == unknown) | |
16 | MACHINE_ARCH != /usr/bin/arch | |
17 | .endif | |
18 | .if !empty $(MACHINE_ARCH:M*64) | |
19 | LP64 = 1 | |
20 | .endif | |
21 | CC = gcc | |
22 | .ifdef ALTFRAMEWORKSPATH | |
23 | PRIVINC = -F${ALTFRAMEWORKSPATH} -I${ALTFRAMEWORKSPATH}/System.framework/PrivateHeaders | |
24 | .else | |
25 | PRIVINC = -I${NEXT_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders | |
26 | .endif | |
27 | CFLAGS += ${PRIVINC} | |
28 | CFLAGS += -no-cpp-precomp -force_cpusubtype_ALL | |
29 | CFLAGS += -fno-common -pipe -Wmost -g | |
30 | AINC= -no-cpp-precomp -force_cpusubtype_ALL | |
31 | AINC+= -arch ${MACHINE_ARCH} -g | |
32 | CLEANFILES+=tags | |
33 | INSTALL_PIC_ARCHIVE= yes | |
34 | PRECIOUSLIB= yes | |
35 | ||
36 | # workaround for 3649783 | |
37 | AINC += -fdollars-in-identifiers | |
38 | ||
39 | # If these aren't set give it expected defaults | |
40 | DESTDIR ?= ${DSTROOT} | |
41 | MAKEOBJDIR ?= ${OBJROOT} | |
42 | ||
43 | # add version string | |
44 | SRCS += libsyscall_version.c | |
45 | libsyscall_version.c: | |
46 | /Developer/Makefiles/bin/version.pl Libsyscall > $@ | |
47 | ||
48 | CFLAGS += -I${SYMROOT} | |
49 | .include "${.CURDIR}/Makefile.inc" | |
50 | .PATH: ${SYMROOT} | |
51 | .include "Makefile.xbs" | |
52 | .if exists(/usr/share/mk/bsd.init.mk) | |
53 | .include <bsd.init.mk> | |
54 | .endif | |
55 | .include <bsd.man.mk> |