]> git.saurik.com Git - apple/boot.git/blame - i386/rcz/Makefile
boot-93.tar.gz
[apple/boot.git] / i386 / rcz / Makefile
CommitLineData
14c7c974
A
1
2DIR = rcz
3include ../MakePaths.dir
4
5UTILDIR = ../util
6LIBSADIR = ../libsa
7INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
8
9OPTIM = -Os
75b89a82
A
10CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \
11 -fno-builtin -static
14c7c974
A
12DEFINES=
13CONFIG = hd
14INC = -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
15ifneq "" "$(wildcard /bin/mkdirs)"
16 MKDIRS = /bin/mkdirs
17else
18 MKDIRS = /bin/mkdir -p
19endif
20AS = as
21LD = ld
22# LIBS= -lc_static
23LIBS=
24
25VPATH = $(OBJROOT):$(SYMROOT)
26
27RCZ_OBJS =rcz_compress_mem.o \
28 rcz_decompress_file.o \
29 rcz_decompress_mem.o
30
31SFILES =
32CFILES =
33HFILES =
34EXPORTED_HFILES =
35INSTALLED_HFILES =
36OTHERFILES = Makefile
37ALLSRC = $(SFILES) $(CFILES) \
38 $(HFILES) $(OTHERFILES)
39LIBS = librcz.a
40DIRS_NEEDED = $(OBJROOT) $(SYMROOT)
41
42all: $(DIRS_NEEDED) $(LIBS)
43
44librcz.a: $(RCZ_OBJS)
45 rm -f $(SYMROOT)/$(@F)
46 libtool -o $(SYMROOT)/$(@F) $(RCZ_OBJS)
47 ranlib $(SYMROOT)/$(@F)
48
49clean::
50 rm -rf $(SYMROOT)/librcz.a
51
52include ../MakeInc.dir
53
54# dependencies
55-include $(OBJROOT)/Makedep