]> git.saurik.com Git - apple/boot.git/blob - i386/libsaio/Makefile
boot-80.1.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
11 CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Wno-precomp \
12 -D__ARCHITECTURE__=\"i386\" -DSAIO_INTERNAL_USER -munaligned-text -static \
13 -traditional-cpp -DRCZ_COMPRESSED_FILE_SUPPORT
14 DEFINES=
15 CONFIG = hd
16 INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR) -I/System/Library/Frameworks/System.framework/PrivateHeaders
17 ifneq "" "$(wildcard /bin/mkdirs)"
18 MKDIRS = /bin/mkdirs
19 else
20 MKDIRS = /bin/mkdir -p
21 endif
22 AS = as
23 LD = ld
24 # LIBS= -lc_static
25 LIBS=
26
27 VPATH = $(OBJROOT):$(SYMROOT)
28
29 SAIO_OBJS = table.o asm.o biosfn.o misc.o gets.o \
30 vga.o disk.o sys.o cache.o \
31 ufs_byteorder.o bootstruct.o \
32 stringTable.o load.o \
33 bios.o pci.o vbe.o nbp.o
34
35 SAIO_EXTERN_OBJS = console.o
36
37 SFILES =
38 CFILES =
39 HFILES =
40 EXPORTED_HFILES =
41 INSTALLED_HFILES =
42 OTHERFILES = Makefile
43 ALLSRC = $(SFILES) $(CFILES) \
44 $(HFILES) $(OTHERFILES)
45 LIBS = libsaio.a
46 DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
47 #GENFILES = $(SYMROOT)/saio_internal.h \
48 # $(SYMROOT)/saio_external.h \
49 # $(SYMROOT)/saio_defs.h \
50 # $(SYMROOT)/saio_table.c
51
52 #SIG = $(SYMROOT)/sig
53
54 all: $(DIRS_NEEDED) libsaio.h $(LIBS)
55
56 #libsaio_static.a: $(SAIO_OBJS)
57 # rm -f $(SYMROOT)/$@
58 # ar q $(SYMROOT)/$@ $(SAIO_OBJS)
59 # ranlib $(SYMROOT)/$@
60
61 libsaio.a: $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
62 rm -f $(SYMROOT)/$(@F)
63 ar q $(SYMROOT)/$(@F) $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
64 ranlib $(SYMROOT)/$(@F)
65
66 #saio_internal.h: saio_external.h
67 #saio_table.c: saio_external.h
68 #saio_defs.h: saio_external.h
69 #saio_external.h: saio.def
70 # $(SIG) -d $(SYMROOT) -n saio saio.def
71
72 clean::
73 rm -rf $(SYMROOT)/libsaio.a
74
75 #installhdrs:: $(INSTALLDIR)
76 # cp $(INSTALLED_HFILES) $(INSTALLDIR)
77
78 include ../MakeInc.dir
79
80 # dependencies
81 -include $(OBJROOT)/Makedep