1# $Id: Makefile.am 21031 2007-06-09 05:00:27Z lha $ 2 3include $(top_srcdir)/Makefile.am.common 4 5AM_CPPFLAGS += -I$(srcdir)/../common $(INCLUDE_krb4) -DFTP_SERVER 6 7libexec_PROGRAMS = ftpd 8 9CHECK_LOCAL = 10 11if KRB4 12krb4_sources = krb4.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 kauth.c \ 29 klist.c \ 30 $(krb4_sources) \ 31 $(krb5_sources) 32 33EXTRA_ftpd_SOURCES = krb4.c kauth.c gssapi.c gss_userok.c 34 35$(ftpd_OBJECTS): security.h 36 37security.c: 38 @test -f security.c || $(LN_S) $(srcdir)/../ftp/security.c . 39security.h: 40 @test -f security.h || $(LN_S) $(srcdir)/../ftp/security.h . 41krb4.c: 42 @test -f krb4.c || $(LN_S) $(srcdir)/../ftp/krb4.c . 43gssapi.c: 44 @test -f gssapi.c || $(LN_S) $(srcdir)/../ftp/gssapi.c . 45 46CLEANFILES = security.c security.h krb4.c gssapi.c 47 48man_MANS = ftpd.8 ftpusers.5 49 50LDADD = ../common/libcommon.a \ 51 $(LIB_otp) \ 52 $(LIB_gssapi) \ 53 $(LIB_krb5) \ 54 $(LIB_kafs) \ 55 $(LIB_krb4) \ 56 $(LIB_hcrypto) \ 57 $(LIB_roken) 58 59EXTRA_DIST = $(man_MANS) 60