2 # C++ source (with .cpp extension)
3 CPSOURCE= vfyCacCert.cpp
4 # C source (.c extension)
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
8 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
12 FRAMEWORKS= -framework Security -framework CoreFoundation -framework security_cdsa_utils
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
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
24 LIBPATH= -L$(LOCAL_BUILD)
25 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
29 $(EXECUTABLE): $(OFILES)
30 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
33 rm -f *.o $(EXECUTABLE)
36 $(CC) $(CFLAGS) -c -o $*.o $<
39 $(CC) $(CFLAGS) -c -o $*.o $<