]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/appl/ftp/ftpd/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / appl / ftp / ftpd / Makefile.am
1 # $Id: Makefile.am 21031 2007-06-09 05:00:27Z lha $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 AM_CPPFLAGS += -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
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         kauth.c         \
29         klist.c         \
30         $(krb4_sources) \
31         $(krb5_sources)
32
33 EXTRA_ftpd_SOURCES = krb4.c kauth.c gssapi.c gss_userok.c
34
35 $(ftpd_OBJECTS): security.h
36
37 security.c:
38         @test -f security.c || $(LN_S) $(srcdir)/../ftp/security.c .
39 security.h:
40         @test -f security.h || $(LN_S) $(srcdir)/../ftp/security.h .
41 krb4.c:
42         @test -f krb4.c || $(LN_S) $(srcdir)/../ftp/krb4.c .
43 gssapi.c:
44         @test -f gssapi.c || $(LN_S) $(srcdir)/../ftp/gssapi.c .
45
46 CLEANFILES = security.c security.h krb4.c gssapi.c
47
48 man_MANS = ftpd.8 ftpusers.5
49
50 LDADD = ../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
59 EXTRA_DIST = $(man_MANS)