]> git.saurik.com Git - apple/boot.git/blob - i386/libsaio/Makefile
boot-132.tar.gz
[apple/boot.git] / i386 / libsaio / Makefile
1
2 DIR = libsaio
3 include ../MakePaths.dir
4
5 UTILDIR = ../util
6 LIBSADIR = ../libsa
7 INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
8 #SYMROOT=
9
10 OPTIM = -Os -Oz
11 CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost \
12 -D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \
13 -DRCZ_COMPRESSED_FILE_SUPPORT \
14 -fno-builtin -static -fomit-frame-pointer \
15 -mpreferred-stack-boundary=2 -fno-align-functions \
16 -mno-sse2 -mfpmath=387
17 DEFINES=
18 CONFIG = hd
19 INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
20 ifneq "" "$(wildcard /bin/mkdirs)"
21 MKDIRS = /bin/mkdirs
22 else
23 MKDIRS = /bin/mkdir -p
24 endif
25 AS = as
26 LD = ld
27 # LIBS= -lc_static
28 LIBS=
29
30 VPATH = $(OBJROOT):$(SYMROOT)
31
32 SAIO_OBJS = table.o asm.o bios.o biosfn.o \
33 disk.o sys.o cache.o bootstruct.o \
34 stringTable.o load.o memory.o misc.o \
35 ufs.o ufs_byteorder.o \
36 vbe.o nbp.o hfs.o hfs_compare.o \
37 xml.o ntfs.o msdos.o md5c.o device_tree.o
38
39
40 SAIO_EXTERN_OBJS = console.o
41
42 SFILES =
43 CFILES =
44 HFILES =
45 EXPORTED_HFILES =
46 INSTALLED_HFILES =
47 OTHERFILES = Makefile
48 ALLSRC = $(SFILES) $(CFILES) \
49 $(HFILES) $(OTHERFILES)
50 LIBS = libsaio.a
51 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
52 #GENFILES = $(SYMROOT)/saio_internal.h \
53 # $(SYMROOT)/saio_external.h \
54 # $(SYMROOT)/saio_defs.h \
55 # $(SYMROOT)/saio_table.c
56
57 #SIG = $(SYMROOT)/sig
58
59 all: $(DIRS_NEEDED) libsaio.h $(LIBS)
60
61 #libsaio_static.a: $(SAIO_OBJS)
62 # rm -f $(SYMROOT)/$@
63 # ar q $(SYMROOT)/$@ $(SAIO_OBJS)
64 # ranlib $(SYMROOT)/$@
65
66 libsaio.a: $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
67 rm -f $(SYMROOT)/$(@F)
68 ar q $(SYMROOT)/$(@F) $^
69 ranlib $(SYMROOT)/$(@F)
70
71 #saio_internal.h: saio_external.h
72 #saio_table.c: saio_external.h
73 #saio_defs.h: saio_external.h
74 #saio_external.h: saio.def
75 # $(SIG) -d $(SYMROOT) -n saio saio.def
76
77 clean::
78 rm -rf $(SYMROOT)/libsaio.a
79
80 #installhdrs:: $(INSTALLDIR)
81 # cp $(INSTALLED_HFILES) $(INSTALLDIR)
82
83 include ../MakeInc.dir
84
85 # dependencies
86 -include $(OBJROOT)/Makedep