]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
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 | |
57c72a9a | 8 | #SYMROOT= |
14c7c974 | 9 | |
bba600dd A |
10 | OPTIM = -Os -Oz |
11 | CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost \ | |
f083c6c3 A |
12 | -D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER \ |
13 | -DRCZ_COMPRESSED_FILE_SUPPORT \ | |
14 | -fno-builtin -static -fomit-frame-pointer \ | |
bba600dd A |
15 | -mpreferred-stack-boundary=2 -fno-align-functions \ |
16 | -mno-sse2 -mfpmath=387 | |
14c7c974 A |
17 | DEFINES= |
18 | CONFIG = hd | |
f083c6c3 | 19 | INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR) |
14c7c974 A |
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 | ||
75b89a82 A |
32 | SAIO_OBJS = table.o asm.o bios.o biosfn.o \ |
33 | disk.o sys.o cache.o bootstruct.o \ | |
f083c6c3 | 34 | stringTable.o load.o memory.o misc.o \ |
bba600dd | 35 | ufs.o ufs_byteorder.o \ |
f083c6c3 | 36 | vbe.o nbp.o hfs.o hfs_compare.o \ |
bba600dd A |
37 | xml.o ntfs.o msdos.o md5c.o device_tree.o |
38 | ||
14c7c974 A |
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) | |
57c72a9a | 68 | ar q $(SYMROOT)/$(@F) $^ |
14c7c974 A |
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 |