]> git.saurik.com Git - apple/boot.git/blame - i386/libsaio/Makefile
boot-83.2.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
11CFLAGS = $(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
14DEFINES=
15CONFIG = hd
16INC = -I../rcz -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR) -I/System/Library/Frameworks/System.framework/PrivateHeaders
17ifneq "" "$(wildcard /bin/mkdirs)"
18 MKDIRS = /bin/mkdirs
19else
20 MKDIRS = /bin/mkdir -p
21endif
22AS = as
23LD = ld
24# LIBS= -lc_static
25LIBS=
26
27VPATH = $(OBJROOT):$(SYMROOT)
28
29SAIO_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
35SAIO_EXTERN_OBJS = console.o
36
37SFILES =
38CFILES =
39HFILES =
40EXPORTED_HFILES =
41INSTALLED_HFILES =
42OTHERFILES = Makefile
43ALLSRC = $(SFILES) $(CFILES) \
44 $(HFILES) $(OTHERFILES)
45LIBS = libsaio.a
46DIRS_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
54all: $(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
61libsaio.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
72clean::
73 rm -rf $(SYMROOT)/libsaio.a
74
75#installhdrs:: $(INSTALLDIR)
76# cp $(INSTALLED_HFILES) $(INSTALLDIR)
77
78include ../MakeInc.dir
79
80# dependencies
81-include $(OBJROOT)/Makedep