chiark / gitweb /
use libinn logging where applicable - compiles
[inn-innduct.git] / authprogs / Makefile
1 ##  $Id: Makefile 7727 2008-04-06 07:59:46Z iulius $
2
3 include ../Makefile.global
4
5 top           = ..
6 CFLAGS        = $(GCFLAGS)
7
8 ALL           = auth_smb ckpasswd domain ident radius $(KRB5_AUTH)
9
10 LIBSMB        = smbval/smbvalid.a
11
12 LIBAUTH       = libauth.o
13
14 SOURCES       = auth_krb5.c auth_smb.c ckpasswd.c domain.c ident.c libauth.c \
15                 radius.c
16
17 all: $(ALL)
18
19 warnings:
20         $(MAKE) COPT='$(WARNINGS)' all
21
22 install: all
23         if [ x"$(KRB5_AUTH)" != x ] ; then \
24             $(LI_XPUB) auth_krb5 $(D)$(PATHAUTHPASSWD)/auth_krb5 ; \
25         fi
26         for F in auth_smb ckpasswd radius ; do \
27             $(LI_XPUB) $$F $D$(PATHAUTHPASSWD)/$$F ; \
28         done
29         for F in domain ident ; do \
30             $(LI_XPUB) $$F $D$(PATHAUTHRESOLV)/$$F ; \
31         done
32
33 clobber clean distclean:
34         rm -f *.o $(ALL)
35         rm -rf .libs
36         cd smbval && $(MAKE) clean
37
38 tags ctags: $(SOURCES)
39         $(CTAGS) $(SOURCES) ../lib/*.c ../include/*.h
40
41 profiled:
42         $(MAKEPROFILING) all
43
44
45 ##  Compilation rules.
46
47 LINK            = $(LIBLD) $(LDFLAGS) -o $@
48 CKLIBS          = $(CRYPTLIB) $(SHADOWLIB) $(PAMLIB) $(DBMLIB)
49
50 auth_krb5: auth_krb5.o $(LIBAUTH) $(LIBINN)
51         $(LINK) auth_krb5.o $(LIBAUTH) $(KRB5LIB) $(LIBINN) $(LIBS)
52
53 auth_smb: auth_smb.o $(LIBSMB) $(LIBAUTH) $(LIBINN)
54         $(LINK) auth_smb.o $(LIBSMB) $(LIBAUTH) $(LIBINN) $(LIBS)
55
56 ckpasswd: ckpasswd.o $(LIBAUTH) $(LIBINN)
57         $(LINK) ckpasswd.o $(LIBAUTH) $(CKLIBS) $(LIBINN) $(LIBS)
58
59 domain: domain.o $(LIBAUTH) $(LIBINN)
60         $(LINK) domain.o $(LIBAUTH) $(LIBINN) $(LIBS)
61
62 ident: ident.o $(LIBAUTH) $(LIBINN)
63         $(LINK) ident.o $(LIBAUTH) $(LIBINN) $(LIBS)
64
65 radius: radius.o $(LIBAUTH) $(LIBINN)
66         $(LINK) radius.o $(LIBAUTH) $(LIBINN) $(LIBS)
67
68 auth_krb5.o: auth_krb5.c
69         $(CC) $(CFLAGS) $(KRB5INC) -c auth_krb5.c
70
71 ckpasswd.o: ckpasswd.c
72         $(CC) $(CFLAGS) $(DBMINC) -c ckpasswd.c
73
74 $(LIBINN):      ; (cd ../lib ; $(MAKE))
75 $(LIBSMB):      ; (cd smbval ; $(MAKE))
76 $(LIBAUTH):     libauth.h libauth.c
77
78
79 ##  Dependencies.  Default list, below, is probably good enough.
80
81 depend: Makefile $(SOURCES)
82         $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
83
84 # DO NOT DELETE THIS LINE -- make depend depends on it.
85 auth_krb5.o: auth_krb5.c ../include/config.h ../include/inn/defines.h \
86   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
87   libauth.h ../include/portable/socket.h ../include/config.h \
88   ../include/inn/messages.h ../include/inn/defines.h ../include/libinn.h
89 auth_smb.o: auth_smb.c ../include/config.h ../include/inn/defines.h \
90   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
91   ../include/inn/messages.h ../include/inn/defines.h libauth.h \
92   ../include/portable/socket.h ../include/config.h smbval/valid.h
93 ckpasswd.o: ckpasswd.c ../include/config.h ../include/inn/defines.h \
94   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
95   ../include/inn/messages.h ../include/inn/defines.h ../include/inn/qio.h \
96   ../include/inn/vector.h ../include/libinn.h libauth.h \
97   ../include/portable/socket.h ../include/config.h
98 domain.o: domain.c ../include/config.h ../include/inn/defines.h \
99   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
100   ../include/inn/messages.h ../include/inn/defines.h ../include/libinn.h \
101   libauth.h ../include/portable/socket.h ../include/config.h
102 ident.o: ident.c ../include/config.h ../include/inn/defines.h \
103   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
104   ../include/inn/messages.h ../include/inn/defines.h ../include/libinn.h \
105   libauth.h ../include/portable/socket.h ../include/config.h
106 libauth.o: libauth.c ../include/config.h ../include/inn/defines.h \
107   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
108   ../include/libinn.h libauth.h ../include/portable/socket.h \
109   ../include/config.h ../include/inn/messages.h ../include/inn/defines.h
110 radius.o: radius.c ../include/config.h ../include/inn/defines.h \
111   ../include/inn/system.h ../include/clibrary.h ../include/config.h \
112   ../include/portable/time.h ../include/config.h ../include/inn/innconf.h \
113   ../include/inn/defines.h ../include/inn/md5.h ../include/inn/messages.h \
114   ../include/libinn.h ../include/nntp.h ../include/paths.h \
115   ../include/conffile.h libauth.h ../include/portable/socket.h