-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
446 lines (369 loc) · 9.64 KB
/
Copy pathMakefile.am
File metadata and controls
446 lines (369 loc) · 9.64 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# Quickplot - an interactive 2D plotter
#
# Copyright (C) 1998-2011 Lance Arsenault
# This file is part of Quickplot.
#
# Quickplot is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License,
# or (at your option) any later version.
#
# Quickplot is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Quickplot. If not, see <http://www.gnu.org/licenses/>.
#
####################################################################
# The .xpm files are built but come in a tarball .xpm files are
# not checked into the repository. Distributing the .xpm file in
# the tarball removes the ImageMagick 'convert' program dependency.
XPM_FILES =\
imgCopyWindow.xpm\
imgDeleteWindow.xpm\
imgGrabCursor.xpm\
imgHoldCursor.xpm\
imgNewWindow.xpm\
imgSaveImage.xpm\
quickplot.xpm
EXTRA_DIST =\
house.png\
imgGrabCursor.png\
imgHoldCursor.png\
imgNewWindow.png\
imgDeleteWindow.png\
imgCopyWindow.png\
imgSaveImage.png\
quickplot.png\
sample_plot.png\
screenshot_small.png\
favicon.ico\
background_ft.png\
background_h1.png\
background_h2.png\
style.css\
footer.htm.in\
about.htm.in\
help_head.htm.in\
help_tail.htm.in\
index.htm.in\
about.txt\
help.txt\
bootstrap\
quickplot.ebuild\
quickplot.1.head.in\
quickplot.1.tail.in\
Repo_clean\
release_date.bash\
repo_version.bash\
ax_lib_readline.m4\
$(XPM_FILES)
BUILT_SOURCES =\
paths.h\
parse_args.h\
app_op_declare.h\
app_op_init.h
if USE_CONVERT
BUILT_SOURCES +=\
$(XPM_FILES)
endif
if USE_LYNX
BUILT_SOURCES +=\
about.txt\
help.txt
endif
man_MANS = quickplot.1 quickplot_shell.1
html_DATA =\
about.html\
help.html\
house.png\
index.html\
quickplot.png\
sample_plot.png\
screenshot_small.png\
background_ft.png\
background_h1.png\
background_h2.png\
favicon.ico\
about.txt\
help.txt
DISTCLEANFILES =\
about.html\
app_op_declare.h\
app_op_init.h\
help.html\
index.html\
parse_args.h\
paths.h\
quickplot.1
if HAVE_LOCAL_SCREENSHOTS
html_DATA +=\
screenshots.html
DISTCLEANFILES +=\
screenshots.html
endif
noinst_PROGRAMS = mk_options
mk_options_SOURCES = mk_options.c
lib_LTLIBRARIES = libquickplot.la
libquickplot_la_SOURCES =\
app_op_declare.h\
app_op_init.h\
callbacks.c\
callbacks.h\
channel.c\
channel_double.c\
channel_double.h\
channel.h\
color_gen.c\
color_gen.h\
config.h\
debug.h\
get_opt.c\
get_opt.h\
graph.c\
graph_detail.c\
graph_draw.c\
graph_grid.c\
launch_browser.c\
list.c\
list.h\
parse_1st_pass_funcs.h\
parse_2nd_pass_funcs.h\
parse_args.h\
parse_args_utils.h\
parse_argument_options.c\
paths.h\
plot.c\
plot.h\
process_gtk_options.c\
qp.c\
qp.h\
quickplot.h\
shell.c\
shell_get_set_values.h\
shell.h\
source.c\
source_double.c\
shell_common.c\
shell_common.h\
shell_server_commands.c\
spew.c\
spew.h\
term_color.c\
term_color.h\
utils.h\
win.c\
$(XPM_FILES)\
zoom.h
libquickplot_la_SHORTNAME = lib
libquickplot_la_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS)
libquickplot_la_LDFLAGS = -version-info $(LIB_VERSION)
# For making libquickplot.so executable if we are using GCC
# and glibc which we tested in configure by compiling with the
# gnu/lib-names.h file.
if HAVE_GNU_LIB_NAMES_H
libquickplot_la_SOURCES += exec_lib.c
libquickplot_la_LDFLAGS += -shared -Wl,-e -Wl,qp_exec_lib
libquickplot_la_CFLAGS += -fPIC
else
EXTRA_DIST += exec_lib.c
endif
# We look at a sndfile symbol when libquickplot runs
libquickplot_la_LIBADD = $(sndfile_LIBS)
if QP_DEBUG
libquickplot_la_SOURCES += debug_spew.c
else
EXTRA_DIST += debug_spew.c
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = quickplot.pc
quickplotinclude_HEADERS = quickplot.h
quickplotincludedir = $(includedir)
bin_PROGRAMS = quickplot quickplot_shell
quickplot_SOURCES =\
config.h\
qp_main.c\
quickplot.h
quickplot_SHORTNAME = qp
quickplot_CFLAGS = $(gtk_3_CFLAGS) $(sndfile_CFLAGS)
quickplot_LDADD = libquickplot.la $(gtk_3_LIBS) $(sndfile_LIBS) -lX11 -ldl
#if USE_READLINE
quickplot_LDADD += $(readline_LIBS)
#endif
quickplot_shell_SOURCES =\
list.c\
debug.h\
list.h\
qp_shell.c\
shell_common.c\
shell_common.h\
spew.c\
spew.h\
term_color.c\
term_color.h
if QP_DEBUG
quickplot_shell_SOURCES += debug_spew.c
endif
quickplot_shell_SHORTNAME = sh
#if USE_READLINE
quickplot_shell_LDADD = $(readline_LIBS)
#endif
gzfile = $(distdir).tar.gz
bz2file = $(distdir).tar.bz2
xzfile = $(distdir).tar.xz
SUFFIXES = .html .bz2 .xz .gz \
.gz.md5 .gz.sha1 .gz.sha256 .gz.sha512 \
.bz2.md5 .bz2.sha1 .bz2.sha256 .bz2.sha512 \
.xz.md5 .xz.sha1 .xz.sha256 .xz.sha512
if USE_CONVERT
SUFFIXES += .png .xpm
endif
if USE_LYNX
SUFFIXES += .txt
endif
if HAVE_LOCAL_SCREENSHOTS
SCREENSHOT_URL = screenshots.html
else
SCREENSHOT_URL = @[email protected]
endif
.PHONY: hash md5 sha1 sha256 sha512
# TODO: There should be a better way to find installed
# from the running quickplot program.
paths.h:
echo "/* This file was generated using $(MAKE) */" > $@
echo >> $@
echo "#define HTMLDIR \"$(htmldir)\"" >> $@
echo "#define DOCDIR \"$(docdir)\"" >> $@
parse_args.h: mk_options
./mk_options -a > $@
app_op_declare.h: mk_options
./mk_options -I > $@
app_op_init.h: mk_options
./mk_options -i > $@
quickplot.1: quickplot.1.head quickplot.1.tail mk_options
echo ".\\\" Do not edit this file" > $@
echo ".\\\" This file was generated using $(MAKE)" >> $@
cat quickplot.1.head >> $@
./mk_options -m >> $@
cat quickplot.1.tail >> $@
echo ".\\\" Do not edit this file" >> $@
echo ".\\\" This file was generated using $(MAKE)" >> $@
index.html: index.htm
sed $<\
-e "s!@SCREENSHOT_URL@!$(SCREENSHOT_URL)!g"\
-e 's!@Top@!<span class=nav>\ Top\ </span>!'\
-e 's!@About@!<a class=nav href="about.html">\ About\ </a>!'\
-e 's!@Help@!<a class=nav href="help.html">\ Help\ </a>!'\
> $@
# We cannot have configure replace @release_date@ and @repo_version@
# because we need to generate about.html for two cases, one for
# dist and one for installing, and the values for
# @release_date@ and @repo_version@ differ for those two cases
about.html: about.htm
repo_version="`${top_srcdir}/repo_version.bash ${top_srcdir}/REPO_VERSION ${top_srcdir}`";\
rel_date="`${top_srcdir}/release_date.bash ${top_srcdir}/RELEASE_DATE`"; sed $<\
-e "s/@release_date@/$$rel_date/g"\
-e "s/@repo_version@/$$repo_version/g"\
-e 's!@Top@!<a class=nav href="index.html">\ Top\ </a>!'\
-e 's!@About@!<span class=nav>\ About\ </span>!'\
-e 's!@Help@!<a class=nav href="help.html">\ Help\ </a>!'\
> $@
help.html: help_head.htm mk_options help_tail.htm
cat help_head.htm > $@
./mk_options -t >> $@
cat help_tail.htm | sed\
-e 's!@Top@!<a class=nav href="index.html">\ Top\ </a>!'\
-e 's!@About@!<a class=nav href="about.html">\ About\ </a>!'\
-e 's!@Help@!<span class=nav>\ Help\ </span>!'\
>> $@
if HAVE_LOCAL_SCREENSHOTS
install-exec-hook:
mkdir -p $(htmldir)
cp ScreenShot_* _ScreenShot_* $(htmldir)
thumbs.htm: mk_thumbs.htm.bash
./mk_thumbs.htm.bash > $@
screenshots.html: screenshots.html.in style.css thumbs.htm footer.htm
./mk_screenshots.html.bash < $< > $@
screenshots:
rm -f screenshots.html thumbs.htm
$(MAKE) screenshots.html
endif
help_head.htm: style.css
help_tail.htm: footer.htm
index.htm: style.css footer.htm
about.htm: style.css footer.htm
if USE_CONVERT
.png.xpm:
convert $< $@
mv $@ [email protected]
sed -e 's/static.*\schar/static const char/g' [email protected] > $@
endif
if USE_LYNX
.html.txt:
echo > $@
dir=`pwd` && lynx -dump $< | \
sed -e "s!//localhost$$dir/!!g" >> $@
endif
# Add the repository revision number to the dist.
# Fix any dist files that have RELEASE_DATE in them, like help.txt
# Remove generated dist files that auto-tools is stupid about.
# Remove the out-of-date hash files.
dist-hook:
if test -f RELEASE_DATE ; then mv RELEASE_DATE RELEASE_DATE.save ; fi
if test -f REPO_VERSION ; then mv REPO_VERSION REPO_VERSION.save ; fi
${top_srcdir}/repo_version.bash ${top_srcdir}/REPO_VERSION ${top_srcdir} > REPO_VERSION.tmp
mv REPO_VERSION.tmp REPO_VERSION
date -u +"%d %b %G %H:%M:%S UTC" > RELEASE_DATE
echo $(VERSION) > last_release
cat RELEASE_DATE REPO_VERSION >> last_release
if USE_LYNX
rm -f about.html about.htm about.txt
$(MAKE) about.txt
mv REPO_VERSION RELEASE_DATE about.txt $(distdir)
rm -f about.html about.htm
$(MAKE) about.txt
else
mv REPO_VERSION RELEASE_DATE $(distdir)
endif
if test -f REPO_VERSION.save ; then mv REPO_VERSION.save REPO_VERSION ; fi
if test -f RELEASE_DATE.save ; then mv RELEASE_DATE.save RELEASE_DATE ; fi
cd $(distdir) && rm -f $(DISTCLEANFILES) config.h
rm -f $(gzfile).md5 $(gzfile).sha* $(bz2file).md5 $(bz2file).sha* $(xzfile).md5 $(xzfile).sha*
hash: md5 sha1 sha256 sha512
md5: $(gzfile).md5 $(bz2file).md5 $(xzfile).md5
sha1: $(gzfile).sha1 $(bz2file).sha1 $(xzfile).sha1
sha256: $(gzfile).sha256 $(bz2file).sha256 $(xzfile).sha256
sha512: $(gzfile).sha512 $(bz2file).sha512 $(xzfile).sha512
.gz.gz.md5:
md5sum $< > $@
.gz.gz.sha1:
sha1sum $< > $@
.gz.gz.sha256:
sha256sum $< > $@
.gz.gz.sha512:
sha512sum $< > $@
.bz2.bz2.md5:
md5sum $< > $@
.bz2.bz2.sha1:
sha1sum $< > $@
.bz2.bz2.sha256:
sha256sum $< > $@
.bz2.bz2.sha512:
sha512sum $< > $@
.xz.xz.md5:
md5sum $< > $@
.xz.xz.sha1:
sha1sum $< > $@
.xz.xz.sha256:
sha256sum $< > $@
.xz.xz.sha512:
sha512sum $< > $@
$(gzfile):
$(MAKE) dist-gzip
$(bz2file):
$(MAKE) dist-bzip2
$(xzfile):
$(MAKE) dist-xz