]>
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 | |
8 | SYMROOT= | |
9 | ||
10 | OPTIM = -Os | |
75b89a82 | 11 | CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \ |
f083c6c3 A |
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 | |
14c7c974 A |
16 | DEFINES= |
17 | CONFIG = hd | |
f083c6c3 | 18 | INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR) |
14c7c974 A |
19 | ifneq "" "$(wildcard /bin/mkdirs)" |
20 | MKDIRS = /bin/mkdirs | |
21 | else | |
22 | MKDIRS = /bin/mkdir -p | |
23 | endif | |
24 | AS = as | |
25 | LD = ld | |
26 | # LIBS= -lc_static | |
27 | LIBS= | |
28 | ||
29 | VPATH = $(OBJROOT):$(SYMROOT) | |
30 | ||
75b89a82 A |
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 \ | |
f083c6c3 A |
34 | stringTable.o load.o memory.o misc.o \ |
35 | vbe.o nbp.o hfs.o hfs_compare.o \ | |
36 | xml.o | |
14c7c974 A |
37 | |
38 | SAIO_EXTERN_OBJS = console.o | |
39 | ||
40 | SFILES = | |
41 | CFILES = | |
42 | HFILES = | |
43 | EXPORTED_HFILES = | |
44 | INSTALLED_HFILES = | |
45 | OTHERFILES = Makefile | |
46 | ALLSRC = $(SFILES) $(CFILES) \ | |
47 | $(HFILES) $(OTHERFILES) | |
48 | LIBS = libsaio.a | |
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 | |
54 | ||
55 | #SIG = $(SYMROOT)/sig | |
56 | ||
57 | all: $(DIRS_NEEDED) libsaio.h $(LIBS) | |
58 | ||
59 | #libsaio_static.a: $(SAIO_OBJS) | |
60 | # rm -f $(SYMROOT)/$@ | |
61 | # ar q $(SYMROOT)/$@ $(SAIO_OBJS) | |
62 | # ranlib $(SYMROOT)/$@ | |
63 | ||
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) | |
68 | ||
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 | |
74 | ||
75 | clean:: | |
76 | rm -rf $(SYMROOT)/libsaio.a | |
77 | ||
78 | #installhdrs:: $(INSTALLDIR) | |
79 | # cp $(INSTALLED_HFILES) $(INSTALLDIR) | |
80 | ||
81 | include ../MakeInc.dir | |
82 | ||
83 | # dependencies | |
84 | -include $(OBJROOT)/Makedep |