]> git.saurik.com Git - apple/boot.git/blob - gen/rcz/Makefile
boot-132.tar.gz
[apple/boot.git] / gen / rcz / Makefile
1
2 DIR = rcz
3 include ../MakePaths.dir
4
5 UTILDIR = ../util
6 LIBSADIR = ../libsa
7 USRBIN = $(DSTROOT)/usr/bin
8 INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone
9
10 DEBUG = -O
11 CFLAGS = $(DEBUG) $(MORECPP) $(RC_CFLAGS) -g -Wmost -Werror
12 DEFINES=
13 CONFIG = hd
14 INC = -I. -I$(SYMROOT) -I$(UTILDIR) -I$(LIBSADIR)
15 ifneq "" "$(wildcard /bin/mkdirs)"
16 MKDIRS = /bin/mkdirs
17 else
18 MKDIRS = /bin/mkdir -p
19 endif
20 AS = as
21 LD = ld
22 # LIBS= -lc_static
23 LIBS=
24
25 VPATH = $(OBJROOT):$(SYMROOT)
26
27 SFILES =
28 CFILES =
29 HFILES =
30 EXPORTED_HFILES =
31 INSTALLED_HFILES =
32 OTHERFILES = Makefile
33 ALLSRC = $(SFILES) $(CFILES) \
34 $(HFILES) $(OTHERFILES)
35 DIRS_NEEDED = $(OBJROOT) $(SYMROOT) $(USRBIN)
36
37 RCZ_OBJS = rcz.o rcz_compress_mem.o rcz_decompress_mem.o
38
39 all: $(DIRS_NEEDED) rcz
40
41 rcz: $(USRBIN) $(RCZ_OBJS)
42 $(CC) $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $(USRBIN)/$@ $(RCZ_OBJS)
43 strip -x -u $(USRBIN)/$@
44
45 clean::
46 rm -rf $(USRBIN)/rcz
47
48 include ../MakeInc.dir
49
50 # dependencies
51 -include $(OBJROOT)/Makedep