]> git.saurik.com Git - apple/boot.git/blame - gen/rcz/Makefile
boot-132.tar.gz
[apple/boot.git] / gen / rcz / Makefile
CommitLineData
14c7c974
A
1
2DIR = rcz
3include ../MakePaths.dir
4
5UTILDIR = ../util
6LIBSADIR = ../libsa
7USRBIN = $(DSTROOT)/usr/bin
8INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
9
10DEBUG = -O
75b89a82 11CFLAGS = $(DEBUG) $(MORECPP) $(RC_CFLAGS) -g -Wmost -Werror
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
27SFILES =
28CFILES =
29HFILES =
30EXPORTED_HFILES =
31INSTALLED_HFILES =
32OTHERFILES = Makefile
33ALLSRC = $(SFILES) $(CFILES) \
34 $(HFILES) $(OTHERFILES)
35DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(USRBIN)
36
37RCZ_OBJS = rcz.o rcz_compress_mem.o rcz_decompress_mem.o
38
39all: $(DIRS_NEEDED) rcz
40
41rcz: $(USRBIN) $(RCZ_OBJS)
42 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(USRBIN)/$@ $(RCZ_OBJS)
43 strip -x -u $(USRBIN)/$@
44
45clean::
46 rm -rf $(USRBIN)/rcz
47
48include ../MakeInc.dir
49
50# dependencies
51-include $(OBJROOT)/Makedep