Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 243 lines (231 sloc) 5.072 kb
b016948 @orebokech Import upstream snapshot from SVN r2608
orebokech authored
1 # $Id: Makefile.am 2592 2011-09-21 16:32:31Z tcunha $
7216c39 @kfebert Imported Upstream version 1.5
kfebert authored
2
3 # Obvious program stuff.
4 bin_PROGRAMS = tmux
5 dist_man1_MANS = tmux.1
6
7 # Distribution tarball options.
8 EXTRA_DIST = \
9 CHANGES FAQ NOTES TODO examples compat \
10 array.h compat.h tmux.h osdep-*.c
11 dist-hook:
12 grep "^#found_debug=" configure
13 find $(distdir) -name .svn -type d|xargs rm -Rf
14
15 # Preprocessor flags.
16 CPPFLAGS += @XOPEN_DEFINES@
17
18 # glibc as usual does things ass-backwards and hides useful things by default,
19 # so everyone has to add this.
20 if IS_GLIBC
21 CFLAGS += -D_GNU_SOURCE
22 endif
23
24 # Set flags for gcc. gcc4 whines abouts silly stuff so it needs slightly
25 # different flags.
26 if IS_GCC
27 CFLAGS += -std=c99
28 if IS_DEBUG
29 CFLAGS += -g -ggdb -O0
30 CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2
31 CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations
32 CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare
33 CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align
34 CPPFLAGS += -DDEBUG
35 endif
36 if IS_GCC4
37 CPPFLAGS += -iquote. -I/usr/local/include
38 if IS_DEBUG
39 CFLAGS += -Wno-pointer-sign
40 endif
41 else
42 CPPFLAGS += -I. -I- -I/usr/local/include
43 endif
44 endif
45
46 # Set flags for Solaris.
47 if IS_SUNOS
48 CPPFLAGS += -D_XPG4_2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
49 endif
50
51 # Set flags for Sun CC.
52 if IS_SUNCC
53 CFLAGS += -erroff=E_EMPTY_DECLARATION
54 endif
55
56 # List of sources.
57 dist_tmux_SOURCES = \
58 arguments.c \
59 attributes.c \
60 cfg.c \
61 client.c \
62 clock.c \
63 cmd-attach-session.c \
64 cmd-bind-key.c \
65 cmd-break-pane.c \
66 cmd-capture-pane.c \
67 cmd-choose-buffer.c \
68 cmd-choose-client.c \
69 cmd-choose-session.c \
70 cmd-choose-window.c \
71 cmd-clear-history.c \
72 cmd-clock-mode.c \
73 cmd-command-prompt.c \
74 cmd-confirm-before.c \
75 cmd-copy-mode.c \
76 cmd-delete-buffer.c \
77 cmd-detach-client.c \
78 cmd-display-message.c \
79 cmd-display-panes.c \
80 cmd-find-window.c \
81 cmd-has-session.c \
82 cmd-if-shell.c \
83 cmd-join-pane.c \
84 cmd-kill-pane.c \
85 cmd-kill-server.c \
86 cmd-kill-session.c \
87 cmd-kill-window.c \
88 cmd-link-window.c \
89 cmd-list-buffers.c \
90 cmd-list-clients.c \
91 cmd-list-commands.c \
92 cmd-list-keys.c \
93 cmd-list-panes.c \
94 cmd-list-sessions.c \
95 cmd-list-windows.c \
96 cmd-list.c \
97 cmd-load-buffer.c \
98 cmd-lock-server.c \
99 cmd-move-window.c \
100 cmd-new-session.c \
101 cmd-new-window.c \
102 cmd-paste-buffer.c \
103 cmd-pipe-pane.c \
104 cmd-refresh-client.c \
105 cmd-rename-session.c \
106 cmd-rename-window.c \
107 cmd-resize-pane.c \
108 cmd-respawn-pane.c \
109 cmd-respawn-window.c \
110 cmd-rotate-window.c \
111 cmd-run-shell.c \
112 cmd-save-buffer.c \
113 cmd-select-layout.c \
114 cmd-select-pane.c \
115 cmd-select-window.c \
116 cmd-send-keys.c \
117 cmd-send-prefix.c \
118 cmd-server-info.c \
119 cmd-set-buffer.c \
120 cmd-set-environment.c \
121 cmd-set-option.c \
122 cmd-show-buffer.c \
123 cmd-show-environment.c \
124 cmd-show-messages.c \
125 cmd-show-options.c \
126 cmd-source-file.c \
127 cmd-split-window.c \
128 cmd-start-server.c \
129 cmd-string.c \
130 cmd-suspend-client.c \
131 cmd-swap-pane.c \
132 cmd-swap-window.c \
133 cmd-switch-client.c \
134 cmd-unbind-key.c \
135 cmd-unlink-window.c \
136 cmd.c \
137 colour.c \
138 environ.c \
b016948 @orebokech Import upstream snapshot from SVN r2608
orebokech authored
139 format.c \
7216c39 @kfebert Imported Upstream version 1.5
kfebert authored
140 grid-utf8.c \
141 grid-view.c \
142 grid.c \
143 input-keys.c \
144 input.c \
145 job.c \
146 key-bindings.c \
147 key-string.c \
148 layout-custom.c \
149 layout-set.c \
150 layout.c \
151 log.c \
152 mode-key.c \
153 names.c \
154 options-table.c \
155 options.c \
156 paste.c \
157 resize.c \
158 screen-redraw.c \
159 screen-write.c \
160 screen.c \
161 server-client.c \
162 server-fn.c \
163 server-window.c \
164 server.c \
165 session.c \
166 signal.c \
167 status.c \
168 tmux.c \
169 tty-acs.c \
170 tty-keys.c \
171 tty-term.c \
172 tty.c \
173 utf8.c \
174 window-choose.c \
175 window-clock.c \
176 window-copy.c \
177 window.c \
178 xmalloc.c \
179 xterm-keys.c
180 nodist_tmux_SOURCES = osdep-@PLATFORM@.c
181
182 # Pile in all the compat/ stuff that is needed.
183 if NO_FORKPTY
184 nodist_tmux_SOURCES += compat/forkpty-@PLATFORM@.c
185 endif
186 if NO_IMSG
187 nodist_tmux_SOURCES += compat/imsg.c compat/imsg-buffer.c
188 endif
189 if NO_CLOSEFROM
190 nodist_tmux_SOURCES += compat/closefrom.c
191 endif
192 if NO_DAEMON
193 nodist_tmux_SOURCES += compat/daemon.c
194 endif
195 if NO_SETENV
196 nodist_tmux_SOURCES += compat/setenv.c
197 endif
198 if NO_STRLCAT
199 nodist_tmux_SOURCES += compat/strlcat.c
200 endif
201 if NO_STRLCPY
202 nodist_tmux_SOURCES += compat/strlcpy.c
203 endif
204 if NO_ASPRINTF
205 nodist_tmux_SOURCES += compat/asprintf.c
206 endif
207 if NO_FGETLN
208 nodist_tmux_SOURCES += compat/fgetln.c
209 endif
210 if NO_GETOPT
211 nodist_tmux_SOURCES += compat/getopt.c
212 endif
213 if NO_STRCASESTR
214 nodist_tmux_SOURCES += compat/strcasestr.c
215 endif
216 if NO_STRSEP
217 nodist_tmux_SOURCES += compat/strsep.c
218 endif
219 if NO_VIS
220 nodist_tmux_SOURCES += compat/vis.c compat/unvis.c
221 endif
222 if NO_STRTONUM
223 nodist_tmux_SOURCES += compat/strtonum.c
224 endif
b016948 @orebokech Import upstream snapshot from SVN r2608
orebokech authored
225 if NO_B64_NTOP
226 nodist_tmux_SOURCES += compat/b64_ntop.c
227 endif
7216c39 @kfebert Imported Upstream version 1.5
kfebert authored
228
229 # Update SF web site.
230 upload-index.html: update-index.html
231 scp www/index.html www/main.css www/images/*.png \
232 ${USER},tmux@web.sf.net:/home/groups/t/tm/tmux/htdocs
233 rm -f www/index.html www/images/small-*
234
235 update-index.html:
236 (cd www/images && \
237 rm -f small-* && \
238 for i in *.png; do \
239 convert "$$i" -resize 200x150 "small-$$i"; \
240 done \
241 )
242 sed "s/%%VERSION%%/${VERSION}/g" www/index.html.in >www/index.html
Something went wrong with that request. Please try again.