-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile.am
155 lines (142 loc) · 3.5 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = foreign dist-xz no-dist-gzip
EXTRA_DIST = BUGS THANKS COPYRIGHT README.md \
samples/yafcrc \
samples/inputrc \
contrib/yafc-import_ncftp.pl \
completion/yafc \
src/ftp/ssh_cmd.c \
lib/base64.c
if USE_NLS
SUBDIRS = doc po
else
SUBDIRS = doc
endif
ACLOCAL_AMFLAGS = -I m4
CLEANFILES=*~ \#*\#
DISTCLEANFILES=build yafcrc.h .deps/*
if USE_BASH_COMPLETION
bash_completion_DATA = completion/yafc
else
bash_completion_DATA =
endif
if HAVE_LIBSSH
SSHSRCS = src/ftp/ssh_cmd.c
else
SSHSRCS =
endif
bin_PROGRAMS = yafc
yafc_SOURCES = src/main.c \
src/alias.c \
src/cmd.c \
src/commands.c \
src/completion.c \
src/get.c \
src/fxp.c \
src/gvars.c \
src/lglob.c \
src/help.c \
src/input.c \
src/local.c \
src/login.c \
src/list.c \
src/put.c \
src/rm.c \
src/tag.c \
src/redir.c \
src/prompt.c \
src/transfer.c \
src/rc.c \
src/set.c \
src/stats.c \
src/ltag.c \
src/bookmark.c \
src/utils.c \
src/libmhe/linklist.c \
src/libmhe/strq.c \
src/libmhe/shortpath.c \
src/libmhe/args.c \
src/libmhe/xmalloc.c \
src/ftp/ftp.c \
src/ftp/socket.c \
src/ftp/plain-socket.c \
src/ftp/host.c \
src/ftp/rglob.c \
src/ftp/rfile.c \
src/ftp/rdirectory.c \
src/ftp/lscolors.c \
src/ftp/url.c \
src/ftp/cache.c \
src/ftp/ftpsend.c \
src/ftp/ftpsigs.c \
src/utils/modechange.c \
$(SSHSRCS) \
src/utils/makepath.c \
lib/base64.c
noinst_HEADERS = src/alias.h \
src/cmd.h \
src/completion.h \
src/commands.h \
src/transfer.h \
src/gvars.h \
src/help.h \
src/input.h \
src/lglob.h \
src/set.h \
src/stats.h \
src/syshdr.h \
src/redir.h \
src/login.h \
src/utils.h \
src/bookmark.h \
src/tag.h \
src/ltag.h \
src/prompt.h \
src/redir.h \
src/rc.h \
src/ftp/ftp.h \
src/ftp/socket.h \
src/ftp/socket-impl.h \
src/ftp/host.h \
src/ftp/rglob.h \
src/ftp/rfile.h \
src/ftp/rdirectory.h \
src/ftp/url.h \
src/ftp/ftpsigs.h \
src/ftp/ssh_cmd.h \
src/ftp/lscolors.h \
src/libmhe/linklist.h \
src/libmhe/strq.h \
src/libmhe/shortpath.h \
src/libmhe/args.h \
src/libmhe/xmalloc.h \
src/utils/modechange.h \
lib/getopt.h \
lib/base64.h \
lib/security.h \
lib/collsyms.h \
lib/fnmatch_.h
yafc_LDADD = $(SSH_LIBS) \
@LIBOBJS@ \
$(INTLLIBS) \
$(EDITLINE_LIBS) \
$(BSD_LIBS)
DEFS = -DLOCALEDIR=\"${YAFC_LOCALEDIR}\" \
-DSYSCONFDIR=\"@sysconfdir@\" \
@DEFS@
BUILT_SOURCES = src/yafcrc.h
AM_CPPFLAGS = $(BSD_CFLAGS) \
$(SSH_CFLAGS) \
$(EDITLINE_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/ftp \
-I$(top_srcdir)/src/libmhe
src/yafcrc.h: $(top_srcdir)/samples/yafcrc
echo "const char *default_yafcrc = \"\"" > src/yafcrc.h
sed \
-e 's/\\/\\\\/g' \
-e 's/"/\\\"/g' \
-e 's/^\(.*\)$$/\"\1\\n\"/' \
< $(top_srcdir)/samples/yafcrc \
>> src/yafcrc.h
echo ";" >> src/yafcrc.h