1 EXECUTABLE=genErrorStrings
2 # C++ source (with .cpp extension)
3 CPSOURCE= genErrorStrings.cpp
4 # C source (.c extension)
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
12 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
13 WFLAGS= -Wno-four-char-constants -Wno-deprecated-declarations
14 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(FRAME_SEARCH)
17 # This assumes final load with cc, not ld
21 LDFLAGS= $(LIBS) $(LIBPATH) $(FRAME_SEARCH)
25 $(EXECUTABLE): $(OFILES)
26 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
29 rm -f *.o $(EXECUTABLE)
32 $(CC) $(CFLAGS) -c -o $*.o $<
35 $(CC) $(CFLAGS) -c -o $*.o $<