]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/simpleUrlAccess/Makefile
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / simpleUrlAccess / Makefile
1 EXECUTABLE=simpleUrlAccess
2 SOURCE= simpleUrlAccess.c
3 OFILES = $(SOURCE:%.c=%.o)
4
5 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
6
7 ifeq "" "$(LOCAL_BUILD)"
8 LOCAL_BUILD = .
9 endif
10
11
12 #
13 # This assumes final load with cc, not ld
14 #
15 LIBS=
16 LIBPATH=
17 LDFLAGS= $(LIBS) $(LIBPATH)
18
19 CC= /usr/bin/cc
20
21 FRAMEWORKS= -framework Carbon
22 FINCLUDES=
23 PINCLUDES=
24 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
25
26 #
27 # -Werror impossible when including Carbon.h per Radar 2731547
28 #
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__
32
33 BUILT_TARGET= $(LOCAL_BUILD)/$(EXECUTABLE)
34
35 first: $(BUILT_TARGET)
36
37 $(BUILT_TARGET): $(OFILES)
38 cc -o $(BUILT_TARGET) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
39
40 clean:
41 rm -f *.o $(BUILT_TARGET)
42
43 .c.o:
44 $(CC) $(CFLAGS) -c -o $*.o $<