]>
Commit | Line | Data |
---|---|---|
14c7c974 A |
1 | |
2 | DIR = rcz | |
3 | include ../MakePaths.dir | |
4 | ||
5 | UTILDIR = ../util | |
6 | LIBSADIR = ../libsa | |
7 | INSTALLDIR = $(DSTROOT)/System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders/standalone | |
8 | ||
bba600dd | 9 | OPTIM = -Os -Oz |
75b89a82 A |
10 | CFLAGS = $(RC_CFLAGS) $(OPTIM) $(MORECPP) -arch i386 -g -Wmost -Werror \ |
11 | -fno-builtin -static | |
14c7c974 A |
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 | RCZ_OBJS =rcz_compress_mem.o \ | |
28 | rcz_decompress_file.o \ | |
29 | rcz_decompress_mem.o | |
30 | ||
31 | SFILES = | |
32 | CFILES = | |
33 | HFILES = | |
34 | EXPORTED_HFILES = | |
35 | INSTALLED_HFILES = | |
36 | OTHERFILES = Makefile | |
37 | ALLSRC = $(SFILES) $(CFILES) \ | |
38 | $(HFILES) $(OTHERFILES) | |
39 | LIBS = librcz.a | |
40 | DIRS_NEEDED = $(OBJROOT) $(SYMROOT) | |
41 | ||
42 | all: $(DIRS_NEEDED) $(LIBS) | |
43 | ||
44 | librcz.a: $(RCZ_OBJS) | |
45 | rm -f $(SYMROOT)/$(@F) | |
46 | libtool -o $(SYMROOT)/$(@F) $(RCZ_OBJS) | |
47 | ranlib $(SYMROOT)/$(@F) | |
48 | ||
49 | clean:: | |
50 | rm -rf $(SYMROOT)/librcz.a | |
51 | ||
52 | include ../MakeInc.dir | |
53 | ||
54 | # dependencies | |
55 | -include $(OBJROOT)/Makedep |