Initial import from FreeBSD RELENG_4:
[dragonfly.git] / crypto / heimdal / appl / ftp / ftpd / Makefile.am
1 # $Id: Makefile.am,v 1.26 2001/09/06 12:18:34 assar Exp $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 INCLUDES += -I$(srcdir)/../common $(INCLUDE_krb4) -DFTP_SERVER
6
7 libexec_PROGRAMS = ftpd
8
9 CHECK_LOCAL = 
10
11 if KRB4
12 krb4_sources = krb4.c kauth.c
13 endif
14 if KRB5
15 krb5_sources = gssapi.c gss_userok.c
16 endif
17
18 ftpd_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
31 EXTRA_ftpd_SOURCES = krb4.c kauth.c gssapi.c gss_userok.c
32
33 $(ftpd_OBJECTS): security.h
34
35 security.c:
36         @test -f security.c || $(LN_S) $(srcdir)/../ftp/security.c .
37 security.h:
38         @test -f security.h || $(LN_S) $(srcdir)/../ftp/security.h .
39 krb4.c:
40         @test -f krb4.c || $(LN_S) $(srcdir)/../ftp/krb4.c .
41 gssapi.c:
42         @test -f gssapi.c || $(LN_S) $(srcdir)/../ftp/gssapi.c .
43
44 CLEANFILES = security.c security.h krb4.c gssapi.c ftpcmd.c
45
46 man_MANS = ftpd.8 ftpusers.5
47
48 LDADD = ../common/libcommon.a \
49         $(LIB_otp) \
50         $(LIB_gssapi) \
51         $(LIB_krb5) \
52         $(LIB_kafs) \
53         $(LIB_krb4) \
54         $(LIB_des) \
55         $(LIB_roken)