2 # C++ source (with .cpp extension)
3 CPSOURCE= sha2Vectors.cpp
4 # C source (.c extension)
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
8 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
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)
21 # This assumes final load with cc, not ld
23 #LIBS= -lstdc++ -lcommonCrypto$(VARIANT_SUFFIX)
27 LIBPATH= -L$(LOCAL_BUILD) -L/usr/local/lib/system
28 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
32 $(EXECUTABLE): $(OFILES)
33 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
36 make "VARIANT_SUFFIX=_debug"
39 rm -f *.o $(EXECUTABLE)
46 $(CC) $(CFLAGS) -c -o $*.o $<
49 $(CC) $(CFLAGS) -c -o $*.o $<