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