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