]> git.saurik.com Git - apple/boot.git/blame - i386/libsa/Makefile
boot-111.tar.gz
[apple/boot.git] / i386 / libsa / Makefile
CommitLineData
14c7c974
A
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
75b89a82 10CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \
f083c6c3
A
11 -fno-builtin -static -fomit-frame-pointer \
12 -mpreferred-stack-boundary=2 -fno-align-functions
14c7c974
A
13
14INC = -I. -I$(SYMROOT) -I$(UTILDIR)
15ifneq "" "$(wildcard /bin/mkdirs)"
16 MKDIRS = /bin/mkdirs
17else
18 MKDIRS = /bin/mkdir -p
19endif
20AS = as
21LD = ld
22# LIBS= -lc_static
23LIBS=
24
25VPATH = $(OBJROOT):$(SYMROOT)
26
27SA_OBJS = prf.o printf.o zalloc.o \
28 string.o strtol.o error.o \
75b89a82 29 setjmp.o qsort.o
14c7c974
A
30
31SFILES = setjmp.s
32CFILES = prf.c printf.c zalloc.c \
33 string.c strtol.c error.c \
75b89a82 34 qsort.c
14c7c974 35HFILES = memory.h
f083c6c3 36EXPORTED_HFILES = libsa.h memory.h
14c7c974 37INSTALLED_SA_HFILES = libsa.h
14c7c974
A
38OTHERFILES = Makefile
39ALLSRC = $(SFILES) $(CFILES) $(HFILES) $(OTHERFILES)
40LIBS = libsa.a
41DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
42
43all: $(DIRS_NEEDED) $(LIBS)
44
45libsa.a: $(SA_OBJS)
46 rm -f $(SYMROOT)/libsa.a
47 ar q $(SYMROOT)/libsa.a $(SA_OBJS)
48 ranlib $(SYMROOT)/libsa.a
49
50clean::
51 rm -rf $(SYMROOT)/libsa.a $(SYMROOT)/libsaio.a
52
53$(INSTALL_SA_DIR) $(INSTALL_MD_DIR):
54 $(MKDIRS) $@
55
56installhdrs:: $(INSTALL_SA_DIR) $(INSTALL_MD_DIR)
57 cp $(INSTALLED_SA_HFILES) $(INSTALL_SA_DIR)
14c7c974
A
58
59include ../MakeInc.dir
60
61# dependencies
62-include $(OBJROOT)/Makedep