]> git.saurik.com Git - apple/boot.git/blame_incremental - i386/libsa/Makefile
boot-83.2.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
10CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Wno-precomp \
11 -munaligned-text -static -traditional-cpp
12
13INC = -I. -I$(SYMROOT) -I$(UTILDIR)
14ifneq "" "$(wildcard /bin/mkdirs)"
15 MKDIRS = /bin/mkdirs
16else
17 MKDIRS = /bin/mkdir -p
18endif
19AS = as
20LD = ld
21# LIBS= -lc_static
22LIBS=
23
24VPATH = $(OBJROOT):$(SYMROOT)
25
26SA_OBJS = prf.o printf.o zalloc.o \
27 string.o strtol.o error.o \
28 setjmp.o qsort.o bswap.o
29
30SFILES = setjmp.s
31CFILES = prf.c printf.c zalloc.c \
32 string.c strtol.c error.c \
33 qsort.c bswap.c
34HFILES = memory.h
35EXPORTED_HFILES = libsa.h kernBootStruct.h memory.h
36INSTALLED_SA_HFILES = libsa.h
37INSTALLED_MD_HFILES = kernBootStruct.h
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)
58 cp $(INSTALLED_MD_HFILES) $(INSTALL_MD_DIR)
59
60include ../MakeInc.dir
61
62# dependencies
63-include $(OBJROOT)/Makedep