forked from ericmandel/js9
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
executable file
·668 lines (542 loc) · 18.7 KB
/
Makefile.in
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
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
#
# This file is a Makefile for HOSTIP. If it has the name "Makefile.in"
# then it is a template for a Makefile; to generate the actual Makefile,
# run "./configure", which is a configuration script generated by the
# "autoconf" program (constructs like "@foo@" will get replaced in the
# actual Makefile.
#
PACKAGE = @PACKAGE_NAME@
VERSION = @PACKAGE_VERSION@
DISTNAME = ${PACKAGE}-${VERSION}
DDISTNAME = ${PACKAGE}-data
DISTDIR = ../export
FTPDIR = ../ftp
EM = astroem
JSFITSIO= $(EM)/jsfitsio
ALLIN1 = js9-allinone
#----------------------------------------------------------------
# Things you can change to personalize the Makefile for your own
# site (you can make these changes in either Makefile.in or
# Makefile, but changes to Makefile will get lost if you re-run
# the configuration script).
#----------------------------------------------------------------
# Default top-level directories in which to install architecture-
# specific files (exec_prefix) and machine-independent files such
# as scripts (prefix). The values specified here may be overridden
# at configure-time with the --exec-prefix and --prefix options
# to the "configure" script.
prefix = @prefix@
exec_prefix = @exec_prefix@
# The following definition can be set to non-null for special systems
# like AFS with replication. It allows the pathnames used for installation
# to be different than those used for actually reference files at
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
# when installing files.
INSTALL_ROOT =
# Directory in which to install the .a or .so binary for the TPOS library:
LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib
# Directory in which to install the program wish:
BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin
# Directory in which to install the include file tpos.h:
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include
# Top-level directory for manual entries:
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man
# Directory in which to install manual entry for TPOS programs:
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
# Directory in which to install manual entries for TPOS's C library
# procedures:
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
# extra Libs required to link (e.g. socket libraries)
LIBS = @CFITSIOLIB@ @FUNLIB@ @PNGLIB@ @EXTRA_LIBS@ -lm
# includes
INCS = -I. @CFITSIOINC@ @FUNINC@ @PNGINC@ \
-I./util -I./$(JSFITSIO)
# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = @CFLAGS@
# To add ld switches, change the following line:
LDFLAGS = @LDFLAGS@
# Some versions of make, like SGI's, use the following variable to
# determine which shell to use for executing commands:
SHELL = /bin/sh
# There are just too many different versions of "install" around;
# better to use the install-sh script that comes with the distribution,
# which is slower but guaranteed to work.
INSTALL = @srcdir@/install-sh -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
#----------------------------------------------------------------
# The information below is modified by the configure script when
# Makefile is generated from Makefile.in. You shouldn't normally
# modify any of this stuff by hand.
#----------------------------------------------------------------
AC_FLAGS = @DEFS@
RANLIB = @RANLIB@
#----------------------------------------------------------------
# The information below should be usable as is. The configure
# script won't modify it and you shouldn't need to modify it
# either.
#----------------------------------------------------------------
RM = rm -rf
CP = cp -p
CC = @CC@
CC_SW = -DFITS2PNG=$(FITS2PNG) ${CFLAGS} ${AC_FLAGS} ${INCS}
DEPEND_SW = ${CFLAGS} -I. ${AC_FLAGS}
# type of backend server (or none)
HELPER = @HELPER@
USEHELPER = @USEHELPER@
# do we build and use tpos?
USEFITS2PNG = @USEFITS2PNG@
# which library
FITSLIB = @FITSLIB@
# where the web files go on your site
WEBDIR = @WEBDIR@
CGIDIR = @CGIDIR@
CGIURL = @CGIURL@
CGIXPATH = @CGIXPATH@
# this is for SAO install only ... I think!
SAODIR = @SAODIR@
WEBDIRS = plugins params js css font images
BEDIRS = node_modules analysis-plugins analysis-wrappers
WEBFILES = js9.js js9.min.js js9worker.js \
js9support.js js9support.min.js js9support.css js9plugins.js \
js9support.txt js9.css fitsy.js fitsy.min.js \
$(ALLIN1).js $(ALLIN1).css \
js9Msg.js js9PostMessage.js js9Helper.js \
js9Electron.js js9ElectronPreload.js js9Regions.js \
js9Prefs-default.json js9prefs-default.js \
astroem.js astroemw.js astroemw.wasm \
favicon.ico index.html
RMFILES = analysis-plugins/imageSection.json
GZFILES = js9.js js9.min.js js9support.js js9support.min.js \
js9plugins.js js9-allinone.js \
astroem.js astroemw.js astroemw.wasm
SAOFILES = index.html
CSSFILES = css/jquery.contextMenu.css css/dhtmlwindow.css \
css/tabcontent.css
PLCSSFILES = plugins/core/blend.css plugins/core/blink.css \
plugins/core/colorbar.css plugins/core/cube.css \
plugins/core/divs.css \
plugins/core/imarith.css plugins/core/keyboard.css \
plugins/core/layers.css plugins/core/mef.css \
plugins/core/mousetouch.css
JSFILES = js/winmod.js js/jquery.min.js js/jquery-ui.min.js js/jquery.contextMenu.min.js js/jquery.flot.min.js js/jquery.flot.errorbars.min.js js/jquery.flot.navigate.min.js js/jquery.flot.resize.min.js js/jquery.flot.selection.min.js js/flot-zoom.min.js js/sprintf.min.js js/dhtmlwindow.min.js js/dhtmlwindow_blurb.js js/fabric.min.js js/pako_inflate.min.js js/FileSaver.min.js js/canvas-toBlob.js js/tabcontent.js js/arrive.min.js js/jquery.doubletap.min.js js/jquery.flot.axislabels.js js/spin.js js/ElementQueries.js js/ResizeSensor.js js/gaussblur.js js/imagefilters.js js/jquery.ui.touch-punch.js
JSLINT = js9.js js9worker.js js9Helper.js js9Electron.js js9Msg.js \
js9PostMessage.js js9Regions.js js9Test.js astroem/post.js
PLUGINFILES = plugins/archive/archive.js \
plugins/fitsy/binning.js \
plugins/core/blend.js \
plugins/core/blink.js \
plugins/core/colorbar.js \
plugins/core/console.js \
plugins/core/cube.js \
plugins/core/divs.js \
plugins/core/imarith.js \
plugins/core/info.js \
plugins/core/keyboard.js \
plugins/core/layers.js \
plugins/core/magnifier.js \
plugins/core/mef.js \
plugins/core/menubar.js \
plugins/core/panner.js \
plugins/core/prefs.js \
plugins/imexam/imexam.js \
plugins/imexam/encircled.js \
plugins/imexam/pixtable.js \
plugins/imexam/radproj.js \
plugins/imexam/reghist.js \
plugins/imexam/regstat.js \
plugins/imexam/xyproj.js \
plugins/imexam/3dplot.js \
plugins/imexam/contour.js
PREFFILES = js9Prefs.json js9prefs.js
CGIFILES = js9Helper.cgi
WEBHELP = help
WEBDATA = fits png kes75 m13
# public web site
WEBSITE = http://js9.si.edu
# local test web site
LWEBSITE= http://localhost/~eric/
SRCS = tpos.c js9helper.c
PROGS = js9helper
ALLPROGS = $(PROGS) tpos
JS9TESTS = js9Test.js js9Test.html js9Tests
TESTPROGS = pngdisp cimtest
INCLUDES = js9helper.h
SCRIPTS = funhist2flot funcnts2flot fits2png
SCRIPTS2 = js9
MFILES = Makefile Makefile.in config.guess config.sub \
configure configure.ac install-sh js9helper.pc.in js9.in \
saoconfig saoprefs.sed nnode mkallinone mkhelper mkjs9 \
util astroem js9Helper-default.cgi js9load README.md \
js9.scpt js9.app
UTILLIB = libutil.a
TPOSOBJS = tpos.o @CFITSIOOBJS@
CIMTESTOBJS = cimtest.o @CFITSIOOBJS@
ifeq ($(FITSLIB), cfitsio)
HELPEROBJS = js9helper.o jsfitsio.o listhdu.o healpix.o
else
HELPEROBJS = js9helper.o
endif
UTILOBJS = $(wildcard util/*.o)
all: progs helper
ifeq ($(USEHELPER), yes)
ifeq ($(USEFITS2PNG), yes)
FITS2PNG=1
progs: $(ALLPROGS)
else
FITS2PNG=0
progs: $(PROGS)
endif
else
FITS2PNG=0
progs:
endif
testall: $(TESTPROGS)
All: all testall
tpos: $(UTILLIB) $(TPOSOBJS)
$(CC) $(LDFLAGS) $(TPOSOBJS) $(UTILLIB) -o $@ $(LIBS)
js9helper: $(UTILLIB) $(HELPEROBJS)
$(CC) $(LDFLAGS) $(HELPEROBJS) -o $@ $(UTILLIB) $(LIBS)
pngdisp: pngdisp.o
$(CC) $(LDFLAGS) pngdisp.o -o $@ $(LIBS)
cimtest: $(CIMTESTOBJS)
$(CC) $(LDFLAGS) $(CIMTESTOBJS) -o $@ $(LIBS)
prefs: FORCE
@(echo "copying default preferences to js9Prefs.json"; \
cp -p js9Prefs-default.json js9Prefs.json; \
cp -p js9prefs-default.js js9prefs.js;)
saoprefs: FORCE
@(echo "editing js9Prefs for SAO installations ..."; \
sed -f saoprefs.sed < js9Prefs.json > js9Prefs-sao.json; \
sed -f saoprefs.sed < js9prefs.js > js9prefs-sao.js; \
echo "editing helper file for SAO installations ..."; \
./mkhelper "$(HELPER)" \
"$(CGIDIR)" "$(CGIURL)" "$(CGIXPATH)" js9Prefs-sao.json;)
helper: FORCE
@(./mkhelper "$(HELPER)" \
"$(CGIDIR)" "$(CGIURL)" "$(CGIXPATH)"; \
if [ x"$(USEHELPER)" = x"yes" ]; then \
./mkjs9 "$(WEBDIR)"; \
fi;)
nohelper: FORCE
@(./mkhelper none; \
./mkjs9 "$(WEBDIR)")
nodejshelper: FORCE
@(./mkhelper nodejs; \
./mkjs9 "$(WEBDIR)")
cgihelper: FORCE prefs
@(./mkhelper get "$(CGIDIR)" "$(CGIURL)" "$(CGIXPATH)"; \
./mkjs9 "$(WEBDIR)")
js9: FORCE
@(if [ x"$(USEHELPER)" = x"yes" ]; then \
./mkjs9 "$(WEBDIR)"; \
fi;)
js9support: FORCE
@(echo "remaking js9support ..."; \
echo "css files in js9support.css: " > js9support.txt; \
echo $(CSSFILES) >> js9support.txt; \
cat $(CSSFILES) > js9support.css; \
echo $(PLCSSFILES) >> js9support.txt; \
cat $(PLCSSFILES) >> js9support.css; \
echo "js files in js9support.js: " >> js9support.txt; \
echo $(JSFILES) >> js9support.txt; \
cat $(JSFILES) > js9support.min.js; \
X=`echo "$(JSFILES)" | sed 's/\.min//g'`; \
cat $$X > js9support.js; \
echo "plugin files in js9plugins.js: " >> js9support.txt; \
echo $(PLUGINFILES) >> js9support.txt; \
cat $(PLUGINFILES) > js9plugins.js;)
js9min: FORCE
@(echo "remaking js9.min.js ..."; \
touch js9.js; minify js9.js; \
echo "remaking all in one ..."; \
mkallinone $(ALLIN1) $(VERSION))
fitsymin: FORCE
@(echo "remaking fitsy.min.js ..."; touch fitsy.js; minify fitsy.js)
refresh: js9support fitsymin js9min
jslint: FORCE
@(jslint $(JSLINT))
eslint: FORCE
@(for file in $(JSLINT); do \
echo $$file; \
eslint $$file; \
done)
eslint2: FORCE
@(for file in `ls plugins/core/*.js plugins/fitsy/binning.js`; do \
echo $$file; \
eslint $$file; \
done)
tar: FORCE
($(RM) config.cache; \
cd ..; \
tar cf - $(DISTNAME) | gzip -9 -c > $(DISTNAME).tar.gz)
install: install-binaries install-scripts install-web
install-binaries: FORCE
@(if [ x$(USEHELPER) = xyes ]; then \
echo "Installing programs ..."; \
for i in $(LIB_INSTALL_DIR) $(INCLUDE_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
do \
if [ ! -d $$i ] ; then \
echo "making directory $$i"; \
mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
done; \
for i in $(ALLPROGS) ; \
do \
if [ -f $$i.exe ] ; then \
echo "installing $$i.exe" ; \
$(INSTALL_PROGRAM) $$i.exe $(BIN_INSTALL_DIR)/$$i.exe ; \
elif [ -f $$i ] ; then \
echo "installing $$i" ; \
$(INSTALL_PROGRAM) $$i $(BIN_INSTALL_DIR)/$$i ; \
fi; \
done; \
else \
echo "nothing to install for 'binaries' (no helper configured)"; \
fi;)
install-scripts: $(SCRIPTS) $(SCRIPTS2)
@(if [ x$(USEHELPER) = xyes ]; then \
echo "Installing scripts ..."; \
for i in $(BIN_INSTALL_DIR) ; \
do \
if [ ! -d $$i ] ; then \
echo "making directory $$i"; \
mkdir -p $$i; \
chmod 755 $$i; \
else true; \
fi; \
done; \
for i in $(SCRIPTS) $(SCRIPTS2) ; \
do \
if [ -f $$i ] ; then \
echo "installing $$i" ; \
$(INSTALL_PROGRAM) $$i $(BIN_INSTALL_DIR)/$$i ; \
fi; \
done; \
else \
echo "nothing to install for 'scripts' (no helper configured)"; \
fi;)
install-web: install-webdirs install-webfiles install-webcgi
install-webdirs: FORCE
@(if [ x$(WEBDIR) != x ]; then \
echo "Installing web directories ..."; \
for i in $(WEBDIRS) $(WEBHELP); do \
if [ x$(WEBDIR) != x ]; then \
mkdir -p $(WEBDIR); \
if [ -d $$i ] ; then \
echo "installing web dir: $$i" ; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
fi; \
fi; \
done; \
if [ x$(USEHELPER) = xyes ]; then \
echo "Installing backend helper dirs ..."; \
for i in $(BEDIRS); do \
if [ -d $$i ] ; then \
echo "installing backend dir: $$i" ; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
fi; \
done; \
fi; \
else \
echo "nothing to install for web directories ..." ; \
fi;)
install-webfiles: FORCE
@(if [ x$(WEBDIR) != x ]; then \
echo "Installing web files ..."; \
mkdir -p $(WEBDIR); \
for i in $(WEBFILES) js9*.html ; do\
if [ -d $$i ] ; then \
echo "installing web directory: $$i" ; \
elif [ -f $$i ] ; then \
echo "installing web file: $$i" ; \
fi; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
done; \
for i in $(PREFFILES); do\
if [ ! -f $(WEBDIR)/$$i ] ; then \
echo "installing web file: $$i" ; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
else \
if ! diff -q $$i $(WEBDIR)/$$i &>/dev/null; then \
echo "not installing $$i to avoid overwriting existing (and different) file"; echo " override with 'make install-prefs'" ; \
fi; \
fi; \
done; \
for i in $(RMFILES); do\
if [ -r $(WEBDIR)/$$i ]; then \
echo "removing $$i file ..."; \
rm -f $(WEBDIR)/$$i; \
fi; \
done; \
else \
echo "nothing to install for web files ..." ; \
fi;)
install-webcgi: FORCE
@(if [ -d "$(CGIDIR)" ]; then \
echo "Installing web CGI files ..."; \
for i in $(CGIFILES) ; do\
if [ -f $$i ]; then \
if [ -d $$i ] ; then \
echo "installing cgi directory: $$i" ; \
elif [ -f $$i ] ; then \
echo "installing cgi file: $$i" ; \
fi; \
tar cf - $$i | (cd $(CGIDIR); tar xf -); \
else \
echo "skipping cgi install: $$i"; \
fi; \
done; \
else \
echo "nothing to install in cgi"; \
fi;)
install-webdata: FORCE
@(for i in $(WEBDATA) ; do\
if [ x$(WEBDIR) != x ]; then \
mkdir -p $(WEBDIR); \
if [ -d $$i ] ; then \
echo "installing $$i" ; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
fi; \
fi; \
done;)
install-prefs: FORCE
@(for i in $(PREFFILES) ; do\
if [ x$(WEBDIR) != x ]; then \
mkdir -p $(WEBDIR); \
if [ -f $$i ] ; then \
echo "installing $$i" ; \
tar cf - $$i | (cd $(WEBDIR); tar xf -); \
fi; \
fi; \
done;)
install-gzip: FORCE
@(for i in $(GZFILES) ; do\
if [ -f $(WEBDIR)/$$i ] ; then \
echo "gzip'ing $$i" ; \
gzip -c $(WEBDIR)/$$i > $(WEBDIR)/$$i.gz; \
fi; \
done;)
install-sao: install-gzip saoprefs install-webcgi install-js9tests
@(if [ -d "$(SAODIR)" ]; then \
for i in $(SAOFILES) ; \
do \
if [ -f $$i ] ; then \
echo "installing file: $$i" ; \
$(CP) $$i $(SAODIR)/.; \
fi; \
done; \
fi; \
echo "installing SAO prefs"; \
$(CP) js9Prefs-sao.json $(WEBDIR)/js9Prefs.json; \
$(CP) js9prefs-sao.js $(WEBDIR)/js9prefs.js; \
if [ -d js9debugextras ]; then \
echo "installing js9debugextras"; \
tar cf - js9debugextras | (cd $(WEBDIR); tar xf -); \
fi)
install-js9tests:FORCE
@(echo "installing js9tests ..."; \
tar cf - $(JS9TESTS) | (cd $(WEBDIR) && tar xf -))
install-smartx: FORCE
@(echo "installing smartx"; cd smartx; make install);
allinone: FORCE
@(mkallinone $(ALLIN1) $(VERSION))
gitprefs: FORCE
@(if [ -d .git ]; then \
git checkout -- js9Prefs-sao.json; \
git checkout -- js9Prefs.json; \
git checkout -- js9prefs-sao.js; \
git checkout -- js9prefs.js; \
fi;)
release: clean gitprefs
(mkdir -p $(DISTDIR)/$(DISTNAME); \
touch $(DISTDIR)/foo; \
tar cf - \
--exclude='node_modules/selenium-webdriver' \
--exclude='node_modules/socket.io_v[0-9]*' \
$(WEBFILES) $(WEBDIRS) $(BEDIRS) $(WEBHELP) \
$(PREFFILES) $(JS9TESTS) js9*.html \
$(SRCS) $(INCLUDES) $(SCRIPTS) $(MFILES) |\
(cd $(DISTDIR)/$(DISTNAME) && tar xf -); \
cd $(DISTDIR) ; \
tar cf - $(DISTNAME) | gzip -c > $(DISTNAME).tar.gz; \
rm -rf foo $(DISTNAME))
release-data: FORCE
tar cf - $(WEBDATA) | gzip -c > $(DISTDIR)/$(DDISTNAME).tar.gz;
spell: FORCE
@(for f in index.html $(WEBHELP)/*.html; do \
echo "spellcheck $$f ..."; \
aspell -c $$f; \
done)
js9tests: FORCE
@(node js9Test.js --all)
js9tests-chrome:FORCE
@(node js9Test.js --webpage $(LWEBSITE)/js9/js9Test.html --all --browser=chrome)
js9tests-firefox:FORCE
@(node js9Test.js --webpage $(LWEBSITE)/js9/js9Test.html --all --browser=firefox)
ckwebsite: FORCE
@(got=`node js9Test.js --webpage $(WEBSITE)/js9/js9Test.html counts`; \
if [ x"$$got" != x"countsTest.js [counts in regions]: success" ]; then \
echo "ERROR: there is a problem with js9.si.edu ..."; \
echo "return: $$got"; \
else \
echo "OK"; \
fi;)
view-readme: FORCE
@(grip)
clean: FORCE
@($(RM) *.a *.so *.dylib *.o *.exe core core.* errs *pure* \
foo* *~ \#* TAGS *.E a.out errors \
$(UTILLIB) $(ALLPROGS) $(TESTPROGS) $(CGIFILES) \
gmon.out *.pg *.bak \
*js9Prefs.json-orig *js9prefs.js-orig \
config.info config.log ltest \
js/*~ params/*~ \
doc/*~ notes/*~ test/*~ help/*~ help/*.bak \
analysis-wrappers/*~ analysis-plugins/*~ \
plugins/*~ plugins/*/*~ \
util/*.o util/*~ js9Tests/*~ \
autom4te.cache a.out.dSYM tmp/*; \
cd astroem && $(MAKE) clean;)
distclean: clean
$(RM) Makefile config.status config.cache config.log \
$(PREFFILES)
maintainer-clean:: clean
$(RM) config.status config.cache config.log \
$(PREFFILES)
Makefile: Makefile.in
$(SHELL) config.status
make: Makefile.in
$(SHELL) config.status
depend: FORCE
makedepend -- $(DEPEND_SW) -- $(SRCS)
$(UTILLIB): $(UTILOBJS)
@(cd util; \
env CC="$(CC)" CFLAGS="$(CC_SW)" make; \
mv libutil.a ..)
tpos.o: tpos.c
$(CC) -c $(CC_SW) -o $@ $+
jsfitsio.o: $(JSFITSIO)/jsfitsio.c
$(CC) -c $(CC_SW) -o $@ $+
listhdu.o: $(JSFITSIO)/listhdu.c
$(CC) -c $(CC_SW) -o $@ $+
healpix.o: $(JSFITSIO)/healpix.c
$(CC) -c $(CC_SW) -o $@ $+
js9helper.o: js9helper.c
$(CC) -c $(CC_SW) -o $@ $+
pngdisp.o: pngdisp.c
$(CC) -c $(CC_SW) -o $@ $+
cimtest.o: cimtest.c
$(CC) -I ./astroem/jsfitsio -c $(CC_SW) -o $@ $+
configure: configure.ac
autoconf
errcheck: FORCE
@(egrep '[^x]error|warning|ld:|collect2:|make:' foo | \
egrep -v "^lex.*but not used"; true)
valgrind: FORCE
@(echo "see: https://developer.mozilla.org/en-US/docs/Mozilla/Testing/Valgrind"; echo "for Macs: valgrind --dsymutil=yes --show-mismatched-frees=no --leak-check=yes --track-origins=yes [prog] [args]";)
FORCE:
# DO NOT DELETE THIS LINE -- make depend depends on it.