1 EXECUTABLE=dotMacArchive
2 # C++ source (with .cpp extension)
3 CPSOURCE= dotMacArchive.cpp dotMacTpAttach.cpp identSearch.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
13 #FRAME_SEARCH= -F$(LOCAL_BUILD)
14 FRAME_SEARCH= -F$(LOCAL_BUILD)
17 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
18 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
21 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH) $(DEBUG_CFLAGS)
24 # This assumes final load with cc, not ld
28 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH) $(CMDLINE_LDFLAGS) -lsecurity_cdsa_utils
34 $(EXECUTABLE): $(OFILES)
35 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
38 make "DEBUG_CFLAGS=-arch ppc64" "CMDLINE_LDFLAGS=-arch ppc64"
41 make "DEBUG_CFLAGS=-arch ppc64" "CMDLINE_LDFLAGS=-arch ppc64"
44 rm -f *.o $(EXECUTABLE)
47 $(CC) $(CFLAGS) -c -o $*.o $<
50 $(CC) $(CFLAGS) -c -o $*.o $<