1# $Id: Makefile.am,v 1.26 2001/09/06 12:18:34 assar Exp $ 2 3include $(top_srcdir)/Makefile.am.common 4 5INCLUDES += -I$(srcdir)/../common $(INCLUDE_krb4) -DFTP_SERVER 6 7libexec_PROGRAMS = ftpd 8 9CHECK_LOCAL = 10 11if KRB4 12krb4_sources = krb4.c kauth.c 13endif 14if KRB5 15krb5_sources = gssapi.c gss_userok.c 16endif 17 18ftpd_SOURCES = \ 19 extern.h \ 20 ftpcmd.y \ 21 ftpd.c \ 22 ftpd_locl.h \ 23 logwtmp.c \ 24 ls.c \ 25 pathnames.h \ 26 popen.c \ 27 security.c \ 28 $(krb4_sources) \ 29 $(krb5_sources) 30 31EXTRA_ftpd_SOURCES = krb4.c kauth.c gssapi.c gss_userok.c 32 33$(ftpd_OBJECTS): security.h 34 35security.c: 36 @test -f security.c || $(LN_S) $(srcdir)/../ftp/security.c . 37security.h: 38 @test -f security.h || $(LN_S) $(srcdir)/../ftp/security.h . 39krb4.c: 40 @test -f krb4.c || $(LN_S) $(srcdir)/../ftp/krb4.c . 41gssapi.c: 42 @test -f gssapi.c || $(LN_S) $(srcdir)/../ftp/gssapi.c . 43 44CLEANFILES = security.c security.h krb4.c gssapi.c ftpcmd.c 45 46man_MANS = ftpd.8 ftpusers.5 47 48LDADD = ../common/libcommon.a \ 49 $(LIB_otp) \ 50 $(LIB_gssapi) \ 51 $(LIB_krb5) \ 52 $(LIB_kafs) \ 53 $(LIB_krb4) \ 54 $(LIB_des) \ 55 $(LIB_roken) 56