-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
44 lines (30 loc) · 1019 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
KRB5_CONFIG=krb5-config
UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
ARCHS=i386 x86_64
SDKPATH=$(shell xcrun --show-sdk-path)
CFLAGS = -Wc,-g $(foreach arch,$(ARCHS),"-Wc,-arch $(arch)")
LDFLAGS = -Wl,-g $(foreach arch,$(ARCHS),"-Wl,-arch $(arch)") -Wl,-framework,GSS
KRB5=-DHAVE_GSS_FRAMEWORK -DHAVE_HEIMDAL
CFLAGS += -I$(SDKPATH)/usr/include/apr-1
CFLAGS += -I$(SDKPATH)/usr/include/apache2
CFLAGS += "-Wc,-isystem $(SDKPATH)/usr/include"
CFLAGS += "-Wc,-F$(SDKPATH)/System/Library/Frameworks"
LDFLAGS += "-Wl,-F$(SDKPATH)/System/Library/Frameworks"
else
CFLAGS = -Wc,-g
LDFLAGS = -Wl,-g
CPPFLAGS= `krb5-config --cflags gssapi krb5`
LIBS= `krb5-config --libs gssapi krb5`
KRB5=-DHAVE_KRB5
endif
APXS = apxs
SRCS = mod_spnego.c
all: mod_spnego.la
mod_spnego.la: $(SRCS)
$(APXS) -o $@ -c $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(KRB5) $(SRCS) $(LIBS)
install: mod_spnego.la
$(APXS) -i mod_spnego.la
clean:
rm -f mod_spnego.so *.o *~ core *.core *.slo *.lo *.la
rm -rf .libs