1 ## $Id: Makefile 7727 2008-04-06 07:59:46Z iulius $
3 include ../Makefile.global
8 ALL = auth_smb ckpasswd domain ident radius $(KRB5_AUTH)
10 LIBSMB = smbval/smbvalid.a
14 SOURCES = auth_krb5.c auth_smb.c ckpasswd.c domain.c ident.c libauth.c \
20 $(MAKE) COPT='$(WARNINGS)' all
23 if [ x"$(KRB5_AUTH)" != x ] ; then \
24 $(LI_XPUB) auth_krb5 $(D)$(PATHAUTHPASSWD)/auth_krb5 ; \
26 for F in auth_smb ckpasswd radius ; do \
27 $(LI_XPUB) $$F $D$(PATHAUTHPASSWD)/$$F ; \
29 for F in domain ident ; do \
30 $(LI_XPUB) $$F $D$(PATHAUTHRESOLV)/$$F ; \
33 clobber clean distclean:
36 cd smbval && $(MAKE) clean
38 tags ctags: $(SOURCES)
39 $(CTAGS) $(SOURCES) ../lib/*.c ../include/*.h
47 LINK = $(LIBLD) $(LDFLAGS) -o $@
48 CKLIBS = $(CRYPTLIB) $(SHADOWLIB) $(PAMLIB) $(DBMLIB)
50 auth_krb5: auth_krb5.o $(LIBAUTH) $(LIBINN)
51 $(LINK) auth_krb5.o $(LIBAUTH) $(KRB5LIB) $(LIBINN) $(LIBS)
53 auth_smb: auth_smb.o $(LIBSMB) $(LIBAUTH) $(LIBINN)
54 $(LINK) auth_smb.o $(LIBSMB) $(LIBAUTH) $(LIBINN) $(LIBS)
56 ckpasswd: ckpasswd.o $(LIBAUTH) $(LIBINN)
57 $(LINK) ckpasswd.o $(LIBAUTH) $(CKLIBS) $(LIBINN) $(LIBS)
59 domain: domain.o $(LIBAUTH) $(LIBINN)
60 $(LINK) domain.o $(LIBAUTH) $(LIBINN) $(LIBS)
62 ident: ident.o $(LIBAUTH) $(LIBINN)
63 $(LINK) ident.o $(LIBAUTH) $(LIBINN) $(LIBS)
65 radius: radius.o $(LIBAUTH) $(LIBINN)
66 $(LINK) radius.o $(LIBAUTH) $(LIBINN) $(LIBS)
68 auth_krb5.o: auth_krb5.c
69 $(CC) $(CFLAGS) $(KRB5INC) -c auth_krb5.c
71 ckpasswd.o: ckpasswd.c
72 $(CC) $(CFLAGS) $(DBMINC) -c ckpasswd.c
74 $(LIBINN): ; (cd ../lib ; $(MAKE))
75 $(LIBSMB): ; (cd smbval ; $(MAKE))
76 $(LIBAUTH): libauth.h libauth.c
79 ## Dependencies. Default list, below, is probably good enough.
81 depend: Makefile $(SOURCES)
82 $(MAKEDEPEND) '$(CFLAGS)' $(SOURCES)
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