]> git.saurik.com Git - apple/boot.git/blame_incremental - i386/libsa/Makefile
boot-132.tar.gz
[apple/boot.git] / i386 / libsa / Makefile
... / ...
CommitLineData
1
2DIR = libsa
3include ../MakePaths.dir
4
5UTILDIR = ../util
6INSTALL_SA_DIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
7INSTALL_MD_DIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/machdep/i386
8
9OPTIM = -Os -Oz
10CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \
11 -fno-builtin -static -fomit-frame-pointer \
12 -mpreferred-stack-boundary=2 -fno-align-functions \
13 -mno-sse2 -mfpmath=387
14
15INC = -I. -I$(SYMROOT) -I$(UTILDIR)
16ifneq "" "$(wildcard /bin/mkdirs)"
17 MKDIRS = /bin/mkdirs
18else
19 MKDIRS = /bin/mkdir -p
20endif
21AS = as
22LD = ld
23# LIBS= -lc_static
24LIBS=
25
26VPATH = $(OBJROOT):$(SYMROOT)
27
28SA_OBJS = prf.o printf.o zalloc.o \
29 string.o strtol.o error.o \
30 setjmp.o qsort.o
31
32SFILES = setjmp.s
33CFILES = prf.c printf.c zalloc.c \
34 string.c strtol.c error.c \
35 qsort.c
36HFILES = memory.h
37EXPORTED_HFILES = libsa.h memory.h
38INSTALLED_SA_HFILES = libsa.h
39OTHERFILES = Makefile
40ALLSRC = $(SFILES) $(CFILES) $(HFILES) $(OTHERFILES)
41LIBS = libsa.a
42DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
43
44all: $(DIRS_NEEDED) $(LIBS)
45
46libsa.a: $(SA_OBJS)
47 rm -f $(SYMROOT)/$(@F)
48 ar q $(SYMROOT)/$(@F) $^
49 ranlib $(SYMROOT)/$(@F)
50
51clean::
52 rm -rf $(SYMROOT)/libsa.a $(SYMROOT)/libsaio.a
53
54$(INSTALL_SA_DIR) $(INSTALL_MD_DIR):
55 $(MKDIRS) $@
56
57installhdrs:: $(INSTALL_SA_DIR) $(INSTALL_MD_DIR)
58 cp $(INSTALLED_SA_HFILES) $(INSTALL_SA_DIR)
59
60include ../MakeInc.dir
61
62# dependencies
63-include $(OBJROOT)/Makedep