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 -Werror \
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
18 INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
19 ifneq "" "$(wildcard /bin/mkdirs)"
22 MKDIRS = /bin/mkdir -p
29 VPATH = $(OBJROOT):$(SYMROOT)
31 SAIO_OBJS = table.o asm.o bios.o biosfn.o \
32 disk.o sys.o cache.o bootstruct.o \
33 ufs.o ufs_byteorder.o \
34 stringTable.o load.o memory.o misc.o \
35 vbe.o nbp.o hfs.o hfs_compare.o \
38 SAIO_EXTERN_OBJS = console.o
46 ALLSRC = $(SFILES) $(CFILES) \
47 $(HFILES) $(OTHERFILES)
49 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
50 #GENFILES = $(SYMROOT)/saio_internal.h \
51 # $(SYMROOT)/saio_external.h \
52 # $(SYMROOT)/saio_defs.h \
53 # $(SYMROOT)/saio_table.c
57 all: $(DIRS_NEEDED) libsaio.h $(LIBS)
59 #libsaio_static.a: $(SAIO_OBJS)
61 # ar q $(SYMROOT)/$@ $(SAIO_OBJS)
62 # ranlib $(SYMROOT)/$@
64 libsaio.a: $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
65 rm -f $(SYMROOT)/$(@F)
66 ar q $(SYMROOT)/$(@F) $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
67 ranlib $(SYMROOT)/$(@F)
69 #saio_internal.h: saio_external.h
70 #saio_table.c: saio_external.h
71 #saio_defs.h: saio_external.h
72 #saio_external.h: saio.def
73 # $(SIG) -d $(SYMROOT) -n saio saio.def
76 rm -rf $(SYMROOT)/libsaio.a
78 #installhdrs:: $(INSTALLDIR)
79 # cp $(INSTALLED_HFILES) $(INSTALLDIR)
81 include ../MakeInc.dir
84 -include $(OBJROOT)/Makedep