]> git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/genErrorStrings/Makefile
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / cspxutils / genErrorStrings / Makefile
1 EXECUTABLE=genErrorStrings
2 # C++ source (with .cpp extension)
3 CPSOURCE= genErrorStrings.cpp
4 # C source (.c extension)
5 CSOURCE=fileIo.c
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
7
8 FRAMEWORKS=
9 FRAME_SEARCH=
10 FINCLUDES=
11 PINCLUDES=
12 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
13 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
14 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH)
15
16 #
17 # This assumes final load with cc, not ld
18 #
19 LIBS= -lstdc++
20 LIBPATH=
21 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
22
23 first: $(EXECUTABLE)
24
25 $(EXECUTABLE): $(OFILES)
26 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
27
28 clean:
29 rm -f *.o $(EXECUTABLE)
30
31 .c.o:
32 $(CC) $(CFLAGS) -c -o $*.o $<
33
34 .cpp.o:
35 $(CC) $(CFLAGS) -c -o $*.o $<