]> git.saurik.com Git - apple/boot.git/blame_incremental - i386/libsaio/Makefile
boot-132.tar.gz
[apple/boot.git] / i386 / libsaio / Makefile
... / ...
CommitLineData
1
2DIR = libsaio
3include ../MakePaths.dir
4
5UTILDIR = ../util
6LIBSADIR = ../libsa
7INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
8#SYMROOT=
9
10OPTIM = -Os -Oz
11CFLAGS = $(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
17DEFINES=
18CONFIG = hd
19INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
20ifneq "" "$(wildcard /bin/mkdirs)"
21 MKDIRS = /bin/mkdirs
22else
23 MKDIRS = /bin/mkdir -p
24endif
25AS = as
26LD = ld
27# LIBS= -lc_static
28LIBS=
29
30VPATH = $(OBJROOT):$(SYMROOT)
31
32SAIO_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
38
39
40SAIO_EXTERN_OBJS = console.o
41
42SFILES =
43CFILES =
44HFILES =
45EXPORTED_HFILES =
46INSTALLED_HFILES =
47OTHERFILES = Makefile
48ALLSRC = $(SFILES) $(CFILES) \
49 $(HFILES) $(OTHERFILES)
50LIBS = libsaio.a
51DIRS_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
59all: $(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
66libsaio.a: $(SAIO_EXTERN_OBJS) $(SAIO_OBJS)
67 rm -f $(SYMROOT)/$(@F)
68 ar q $(SYMROOT)/$(@F) $^
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
77clean::
78 rm -rf $(SYMROOT)/libsaio.a
79
80#installhdrs:: $(INSTALLDIR)
81# cp $(INSTALLED_HFILES) $(INSTALLDIR)
82
83include ../MakeInc.dir
84
85# dependencies
86-include $(OBJROOT)/Makedep