remove also files in the src directory
[mod_auth_kerb.cvs/.git] / Makefile
1 include makefile.include
2
3 KRB5_CPPFLAGS = `$(KRB5_ROOT)/bin/krb5-config --cflags gssapi`
4 KRB5_LDFLAGS = `$(KRB5_ROOT)/bin/krb5-config --libs gssapi`
5
6 KRB4_CPPFLAGS = -I$(KRB4_ROOT)/include -I$(KRB4_ROOT)/include/kerberosIV \
7         -I$(KRB5_ROOT)/include/kerberosIV
8
9 CPPFLAGS = $(KRB5_CPPFLAGS) $(KRB4_CPPFLAGS) $(DEFS)
10 LDFLAGS = -Lspnegokrb5 -lspnegokrb5 $(KRB5_LDFLAGS) -lresolv
11
12 ifndef APXS
13    APXS = apxs
14 endif
15
16 all: modauthkerb
17
18 libspnegokrb5:
19         (cd spnegokrb5 && make)
20
21 modauthkerb: libspnegokrb5
22         $(APXS) -c -i $(CPPFLAGS) $(LDFLAGS) src/mod_auth_kerb.c
23
24 clean:
25         (cd spnegokrb5 && make clean)
26         $(RM) *.o *.so *.a *.la *.lo *.slo core
27         $(RM) src/*.{o,so,a,la,lo,slo}