]> git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/sha2Vectors/Makefile
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / cspxutils / sha2Vectors / Makefile
1 EXECUTABLE=sha2Vectors
2 # C++ source (with .cpp extension)
3 CPSOURCE= sha2Vectors.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 VARIANT_SUFFIX=
11
12 FRAMEWORKS=
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
14 FINCLUDES=
15 PINCLUDES= -I$(LOCAL_BUILD)/include
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= -lstdc++ -lcommonCrypto$(VARIANT_SUFFIX)
24 LIBS= -lstdc++
25
26 # this is temporary
27 LIBPATH= -L$(LOCAL_BUILD) -L/usr/local/lib/system
28 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
29
30 first: $(EXECUTABLE)
31
32 $(EXECUTABLE): $(OFILES)
33 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
34
35 debug:
36 make "VARIANT_SUFFIX=_debug"
37
38 clean:
39 rm -f *.o $(EXECUTABLE)
40
41 installhdrs:
42
43 install:
44
45 %.o: %.c
46 $(CC) $(CFLAGS) -c -o $*.o $<
47
48 %.o: %.cpp
49 $(CC) $(CFLAGS) -c -o $*.o $<