2 KRB5_CONFIG
=krb5-config
4 UNAME
:= $(shell uname
)
6 ifeq ($(UNAME
), Darwin
)
9 SDKPATH
=$(shell xcrun
--show-sdk-path
)
11 CFLAGS
= -Wc
,-g
$(foreach arch
,$(ARCHS
),"-Wc,-arch $(arch)")
12 LDFLAGS
= -Wl
,-g
$(foreach arch
,$(ARCHS
),"-Wl,-arch $(arch)") -Wl
,-framework
,GSS
13 KRB5
=-DHAVE_GSS_FRAMEWORK
-DHAVE_HEIMDAL
15 CFLAGS
+= -I
$(SDKPATH
)/usr
/include/apr-1
16 CFLAGS
+= -I
$(SDKPATH
)/usr
/include/apache2
17 CFLAGS
+= "-Wc,-isystem $(SDKPATH)/usr/include"
18 CFLAGS
+= "-Wc,-F$(SDKPATH)/System/Library/Frameworks"
20 LDFLAGS
+= "-Wl,-F$(SDKPATH)/System/Library/Frameworks"
25 CPPFLAGS
= `krb5-config --cflags gssapi krb5`
26 LIBS
= `krb5-config --libs gssapi krb5`
36 mod_spnego.la
: $(SRCS
)
37 $(APXS
) -o
$@
-c
$(CPPFLAGS
) $(CFLAGS
) $(LDFLAGS
) $(KRB5
) $(SRCS
) $(LIBS
)
39 install: mod_spnego.la
40 $(APXS
) -i mod_spnego.la
43 rm -f mod_spnego.so
*.o
*~ core
*.core
*.slo
*.lo
*.la