1 EXECUTABLE=simpleUrlAccess
2 SOURCE= simpleUrlAccess.c
3 OFILES = $(SOURCE:%.c=%.o)
5 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
7 ifeq "" "$(LOCAL_BUILD)"
13 # This assumes final load with cc, not ld
17 LDFLAGS= $(LIBS) $(LIBPATH)
21 FRAMEWORKS= -framework Carbon
24 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
27 # -Werror impossible when including Carbon.h per Radar 2731547
29 WFLAGS= -Wno-four-char-constants -Wmost -Wno-deprecated-declarations
30 #WFLAGS= -Wno-four-char-constants -Wmost -Werror
31 CFLAGS= -g $(CINCLUDES) $(WFLAGS) -D__STDC__
33 BUILT_TARGET= $(LOCAL_BUILD)/$(EXECUTABLE)
35 first: $(BUILT_TARGET)
37 $(BUILT_TARGET): $(OFILES)
38 cc -o $(BUILT_TARGET) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
41 rm -f *.o $(BUILT_TARGET)
44 $(CC) $(CFLAGS) -c -o $*.o $<