add NTMakefile and windows directories
[heimdal.git] / appl / ftp / ftpd / Makefile.am
blob355b8baae4e202d19974eace4db5e6ac615c705e
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += -I$(srcdir)/../common $(INCLUDE_krb4) -DFTP_SERVER
7 libexec_PROGRAMS = ftpd
9 CHECK_LOCAL = 
11 if KRB5
12 krb5_sources = gssapi.c gss_userok.c
13 endif
15 ftpd_SOURCES =          \
16         extern.h        \
17         ftpcmd.y        \
18         ftpd.c          \
19         ftpd_locl.h     \
20         logwtmp.c       \
21         ls.c            \
22         pathnames.h     \
23         popen.c         \
24         security.c      \
25         kauth.c         \
26         klist.c         \
27         $(krb4_sources) \
28         $(krb5_sources)
30 EXTRA_ftpd_SOURCES = kauth.c gssapi.c gss_userok.c
32 $(ftpd_OBJECTS): security.h
34 security.c:
35         @test -f security.c || $(LN_S) $(srcdir)/../ftp/security.c .
36 security.h:
37         @test -f security.h || $(LN_S) $(srcdir)/../ftp/security.h .
38 gssapi.c:
39         @test -f gssapi.c || $(LN_S) $(srcdir)/../ftp/gssapi.c .
41 CLEANFILES = security.c security.h gssapi.c
43 man_MANS = ftpd.8 ftpusers.5
45 LDADD = ../common/libcommon.a \
46         $(LIB_otp) \
47         $(LIB_gssapi) \
48         $(LIB_krb5) \
49         $(LIB_kafs) \
50         $(LIB_krb4) \
51         $(LIB_hcrypto) \
52         $(LIB_roken)
54 EXTRA_DIST = NTMakefile $(man_MANS)