]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/vfyCacCert/Makefile
Security-57336.1.9.tar.gz
[apple/security.git] / SecurityTests / clxutils / vfyCacCert / Makefile
1 EXECUTABLE=vfyCacCert
2 # C++ source (with .cpp extension)
3 CPSOURCE= vfyCacCert.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 -framework security_cdsa_utils
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
14 FINCLUDES=
15 PINCLUDES=
16 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
17 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
18 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH)
19
20 #
21 # This assumes final load with cc, not ld
22 #
23 LIBS=
24 LIBPATH= -L$(LOCAL_BUILD)
25 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
26
27 first: $(EXECUTABLE)
28
29 $(EXECUTABLE): $(OFILES)
30 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
31
32 clean:
33 rm -f *.o $(EXECUTABLE)
34
35 .c.o:
36 $(CC) $(CFLAGS) -c -o $*.o $<
37
38 .cpp.o:
39 $(CC) $(CFLAGS) -c -o $*.o $<