]> git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/hashTimeSA/Makefile
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / cspxutils / hashTimeSA / Makefile
1 EXECUTABLE=hashTimeSA
2 # C++ source (with .cpp extension)
3 CPSOURCE= hashTimeSA.cpp
4 # C source (.c extension)
5 CSOURCE= SHA1_priv.c MD5.c SHA1.c
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
7
8 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
9
10 FRAMEWORKS= -framework CoreFoundation
11 FRAME_SEARCH=
12 FINCLUDES=
13 PINCLUDES= -I$(LOCAL_BUILD)/include
14 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
15 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
16 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH) -Os
17
18 #
19 # This assumes final load with cc, not ld
20 #
21 ###LIBS= -lstdc++ -lcommonCrypto
22 LIBS= -lstdc++
23 LIBPATH= -L$(LOCAL_BUILD) -L/usr/local/lib/system
24 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
25
26 first: $(EXECUTABLE)
27
28 $(EXECUTABLE): $(OFILES)
29 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
30
31 clean:
32 rm -f *.o $(EXECUTABLE)
33
34 installhdrs:
35
36 install:
37
38 %.o: %.c
39 $(CC) $(CFLAGS) -c -o $*.o $<
40
41 %.o: %.cpp
42 $(CC) $(CFLAGS) -c -o $*.o $<