1EXECUTABLE=simpleUrlAccess 2SOURCE= simpleUrlAccess.c 3OFILES = $(SOURCE:%.c=%.o) 4 5LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR)) 6 7ifeq "" "$(LOCAL_BUILD)" 8 LOCAL_BUILD = . 9endif 10 11 12# 13# This assumes final load with cc, not ld 14# 15LIBS= 16LIBPATH= 17LDFLAGS= $(LIBS) $(LIBPATH) 18 19CC= /usr/bin/cc 20 21FRAMEWORKS= -framework Carbon 22FINCLUDES= 23PINCLUDES= 24CINCLUDES= $(FINCLUDES) $(PINCLUDES) 25 26# 27# -Werror impossible when including Carbon.h per Radar 2731547 28# 29WFLAGS= -Wno-four-char-constants -Wmost -Wno-deprecated-declarations 30#WFLAGS= -Wno-four-char-constants -Wmost -Werror 31CFLAGS= -g $(CINCLUDES) $(WFLAGS) -D__STDC__ 32 33BUILT_TARGET= $(LOCAL_BUILD)/$(EXECUTABLE) 34 35first: $(BUILT_TARGET) 36 37$(BUILT_TARGET): $(OFILES) 38 cc -o $(BUILT_TARGET) $(FRAMEWORKS) $(OFILES) $(LDFLAGS) 39 40clean: 41 rm -f *.o $(BUILT_TARGET) 42 43.c.o: 44 $(CC) $(CFLAGS) -c -o $*.o $< 45