]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/krbtool/Makefile
Security-57031.30.12.tar.gz
[apple/security.git] / SecurityTests / clxutils / krbtool / Makefile
1 EXECUTABLE=krbtool
2 # C++ source (with .cpp extension)
3 CPSOURCE= krbtool.cpp identPicker.cpp asnUtils.cpp
4 # C source (.c extension)
5 CSOURCE=
6 OFILES = $(CSOURCE:%.c=%.o) $(CPSOURCE:%.cpp=%.o)
7
8 LOCAL_BUILD= $(shell echo $(LOCAL_BUILD_DIR))
9
10 CC=c++
11
12 FRAMEWORKS= -framework Security -framework CoreFoundation -framework Kerberos
13 FRAME_SEARCH= -F$(LOCAL_BUILD)
14 FINCLUDES=
15 PINCLUDES=
16 OTHER_CFLAGS=
17 CINCLUDES= $(FINCLUDES) $(PINCLUDES)
18 ###WFLAGS= -Wno-four-char-constants -Wmost -Werror
19 WFLAGS= -Wno-four-char-constants -Wmost -Wno-deprecated-declarations
20 CFLAGS= -g $(CINCLUDES) $(WFLAGS) $(OTHER_CFLAGS) $(FRAME_SEARCH)
21
22 #
23 # This assumes final load with cc, not ld
24 #
25 LIBS= -lstdc++
26 LIBPATH=
27 OTHER_LDFLAGS=
28 LDFLAGS= $(LIBS) $(LIBPATH) $(OTHER_LDFLAGS) $(FRAME_SEARCH) -lsecurity_cdsa_utils
29
30 first: $(EXECUTABLE)
31
32 install:
33
34 64bit:
35 make "OTHER_CFLAGS=-arch ppc64" "OTHER_LDFLAGS=-arch ppc64"
36
37 64bitFat:
38 make "OTHER_CFLAGS=-arch ppc64" "OTHER_LDFLAGS=-arch ppc64"
39
40 $(EXECUTABLE): $(OFILES)
41 $(CC) -o $(EXECUTABLE) $(FRAMEWORKS) $(OFILES) $(LDFLAGS)
42
43 clean:
44 rm -f *.o $(EXECUTABLE)
45
46 .c.o:
47 $(CC) $(CFLAGS) -c -o $*.o $<
48
49 .cpp.o:
50 $(CC) $(CFLAGS) -c -o $*.o $<