]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/certChain/Makefile
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / certChain / Makefile
1 EXECUTABLE=certChain
2 # C++ source (with .cpp extension)
3 CPSOURCE= certChain.cpp
4 # C source (.c extension)
5 CSOURCE=
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
7
8 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
9
10 CC=c++
11
12 FRAMEWORKS= -framework Security -framework CoreFoundation
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
14 FINCLUDES=
15 PINCLUDES=
16 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
17 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
18 DEBUG_CFLAGS?=
19 CMDLINE_LDFLAGS?=
20
21 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH) $(DEBUG_CFLAGS)
22
23 #
24 # This assumes final load with cc, not ld
25 #
26 LIBS=
27 LIBPATH=
28 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH) $(CMDLINE_LDFLAGS) -lsecurity_cdsa_utils
29
30 first: $(EXECUTABLE)
31
32 install:
33
34 installhdrs:
35
36 64bit:
37 make "DEBUG_CFLAGS=-arch ppc64" "CMDLINE_LDFLAGS=-arch ppc64"
38
39 64bitFat:
40 make "DEBUG_CFLAGS=-arch ppc64" "CMDLINE_LDFLAGS=-arch ppc64"
41
42
43 $(EXECUTABLE): $(OFILES)
44 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
45
46 clean:
47 rm -f *.o $(EXECUTABLE)
48
49 %.o: %.c
50 $(CC) $(CFLAGS) -c -o $*.o $<
51
52 %.o: %.cpp
53 $(CC) $(CFLAGS) -c -o $*.o $<