3 include ../MakePaths.dir
7 INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
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
19 INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
20 ifneq "" "$(wildcard /bin/mkdirs)"
23 MKDIRS = /bin/mkdir -p
30 VPATH = $(OBJROOT):$(SYMROOT)
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
40 SAIO_EXTERN_OBJS = console.o
48 ALLSRC = $(SFILES) $(CFILES) \
49 $(HFILES) $(OTHERFILES)
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
59 all: $(DIRS_NEEDED) libsaio.h $(LIBS)
61 #libsaio_static.a: $(SAIO_OBJS)
63 # ar q $(SYMROOT)/$@ $(SAIO_OBJS)
64 # ranlib $(SYMROOT)/$@
66 libsaio.a: $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
67 rm -f $(SYMROOT)/$(@F)
68 ar q $(SYMROOT)/$(@F) $^
69 ranlib $(SYMROOT)/$(@F)
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
78 rm -rf $(SYMROOT)/libsaio.a
80 #installhdrs:: $(INSTALLDIR)
81 # cp $(INSTALLED_HFILES) $(INSTALLDIR)
83 include ../MakeInc.dir
86 -include $(OBJROOT)/Makedep