]> git.saurik.com Git - apple/security.git/blame - SecurityTests/clxutils/vfyCacCert/Makefile
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / vfyCacCert / Makefile
CommitLineData
d8f41ccd
A
1EXECUTABLE=vfyCacCert
2# C++ source (with .cpp extension)
3CPSOURCE= vfyCacCert.cpp
4# C source (.c extension)
5CSOURCE=
6OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
7
8LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
9
10CC=c++
11
12FRAMEWORKS= -framework Security -framework CoreFoundation -framework security_cdsa_utils
13FRAME_SEARCH= -F$(LOCAL_BUILD)
14FINCLUDES=
15PINCLUDES=
16CINCLUDES= $(FINCLUDES) $(PINCLUDES)
17WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
18CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH)
19
20#
21# This assumes final load with cc, not ld
22#
23LIBS=
24LIBPATH= -L$(LOCAL_BUILD)
25LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
26
27first: $(EXECUTABLE)
28
29$(EXECUTABLE): $(OFILES)
30 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
31
32clean:
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 $<