[076cb4e] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[1ee204e] | 3 | noinst_HEADERS = cavern.h commands.h cmdline.h date.h datain.h debug.h\ |
---|
[a72ed95] | 4 | filelist.h filename.h getopt.h hash.h img.c img.h img_hosted.h kml.h\ |
---|
[381ae6e] | 5 | labelinfo.h listpos.h matrix.h message.h namecmp.h namecompare.h netartic.h\ |
---|
| 6 | netbits.h netskel.h network.h osalloc.h\ |
---|
[1ee204e] | 7 | osdepend.h ostypes.h out.h readval.h str.h useful.h validate.h whichos.h\ |
---|
[3d7085b] | 8 | glbitmapfont.h gllogerror.h guicontrol.h gla.h gpx.h moviemaker.h\ |
---|
| 9 | exportfilter.h hpgl.h cavernlog.h aboutdlg.h aven.h avenpal.h gfxcore.h\ |
---|
| 10 | json.h log.h mainfrm.h pos.h vector3.h wx.h aventypes.h aventreectrl.h\ |
---|
| 11 | export.h model.h printing.h avenprcore.h img2aven.h thgeomag.h\ |
---|
| 12 | thgeomagdata.h moviemaker-legacy.cc |
---|
[076cb4e] | 13 | |
---|
[f665d6e] | 14 | LDADD = $(LIBOBJS) |
---|
[1c59cbb] | 15 | |
---|
[e33b694] | 16 | # FIXME: mingw_progs in top level Makefile.am needs keeping in step with this |
---|
[79b32a95] | 17 | bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven |
---|
[c1a9449] | 18 | |
---|
[167626d] | 19 | install-exec-hook: |
---|
| 20 | ln $(DESTDIR)$(bindir)/survexport$(EXEEXT) \ |
---|
| 21 | $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) || \ |
---|
| 22 | cp -p $(DESTDIR)$(bindir)/survexport$(EXEEXT) \ |
---|
| 23 | $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) |
---|
| 24 | |
---|
[1ce8aba] | 25 | uninstall-hook: |
---|
| 26 | rm -f $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) |
---|
| 27 | |
---|
[57cecaa] | 28 | check_PROGRAMS = imgtest |
---|
[076cb4e] | 29 | |
---|
[706ddcf] | 30 | COMMONSRC = cmdline.c message.c str.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
[608e8b1] | 31 | |
---|
[1ee204e] | 32 | cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \ |
---|
[706ddcf] | 33 | network.c readval.c matrix.c img_hosted.c netbits.c useful.c \ |
---|
[4b34f80] | 34 | validate.c netartic.c thgeomag.c \ |
---|
[a4ae909] | 35 | $(COMMONSRC) |
---|
[8c87227] | 36 | cavern_LDADD = $(PROJ_LIBS) |
---|
[076cb4e] | 37 | |
---|
[bec42b2] | 38 | aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \ |
---|
[75dea56] | 39 | namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \ |
---|
| 40 | glbitmapfont.cc gpx.cc json.cc kml.cc log.cc moviemaker.cc hpgl.cc \ |
---|
[775752c6] | 41 | cavernlog.cc avenprcore.cc printing.cc buttontaghandler.cc pos.cc \ |
---|
[75dea56] | 42 | date.c img_hosted.c useful.c hash.c \ |
---|
[41adebb] | 43 | brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \ |
---|
[7098518] | 44 | rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \ |
---|
[aa49d2b] | 45 | rotatezoom.xbm rotatezoommask.xbm \ |
---|
[75dea56] | 46 | $(COMMONSRC) |
---|
[5809313] | 47 | |
---|
[a405bc1] | 48 | dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \ |
---|
| 49 | $(COMMONSRC) |
---|
[7011db8] | 50 | |
---|
[af1b2c0] | 51 | if WIN32 |
---|
[f678705] | 52 | aven_LDADD = avenrc.o $(LIBOBJS) $(LIBAV_LIBS) $(WX_LIBS) $(PROJ_LIBS) |
---|
[416d6ef] | 53 | |
---|
[98b97c6] | 54 | avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico |
---|
| 55 | pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/avenrc.o" aven.rc |
---|
[4680c7c] | 56 | |
---|
[af1b2c0] | 57 | else |
---|
[12c51c5] | 58 | aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS) $(LIBAV_LIBS) |
---|
[af1b2c0] | 59 | endif |
---|
| 60 | |
---|
[f678705] | 61 | AM_CFLAGS += $(PROJ_CFLAGS) |
---|
| 62 | |
---|
| 63 | aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN |
---|
| 64 | aven_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(LIBAV_CFLAGS) $(WX_CXXFLAGS) |
---|
[1deb6b5] | 65 | aven_LDFLAGS = |
---|
[f678705] | 66 | |
---|
[79b32a95] | 67 | survexport_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS) |
---|
| 68 | survexport_LDFLAGS = |
---|
| 69 | survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS) |
---|
[bd30612] | 70 | |
---|
[559cd60] | 71 | if MACOS |
---|
[de963e4] | 72 | # FIXME: It looks like modern wx-config should give us this... |
---|
[f678705] | 73 | aven_LDFLAGS += -framework OpenGL |
---|
[b72f4b5] | 74 | endif |
---|
[1a5c545] | 75 | |
---|
[a405bc1] | 76 | diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \ |
---|
| 77 | $(COMMONSRC) |
---|
[d06141c] | 78 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
[a405bc1] | 79 | extend_SOURCES = extend.c img_hosted.c useful.c hash.c \ |
---|
| 80 | $(COMMONSRC) |
---|
[076cb4e] | 81 | |
---|
[79b32a95] | 82 | survexport_SOURCES = survexport.cc model.cc export.cc namecompare.cc \ |
---|
[bd30612] | 83 | useful.c hash.c img_hosted.c \ |
---|
| 84 | gpx.cc hpgl.cc json.cc kml.cc pos.cc vector3.cc $(COMMONSRC) |
---|
[076cb4e] | 85 | |
---|
[b5782dc] | 86 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
---|
[57cecaa] | 87 | |
---|
| 88 | imgtest_SOURCES = imgtest.c img.c |
---|
[076cb4e] | 89 | |
---|
[f63bd56] | 90 | all_sources = \ |
---|
| 91 | $(noinst_HEADERS) \ |
---|
| 92 | $(COMMONSRC) \ |
---|
| 93 | $(cavern_SOURCES) \ |
---|
| 94 | $(aven_SOURCES) \ |
---|
| 95 | $(dump3d_SOURCES) \ |
---|
| 96 | $(diffpos_SOURCES) \ |
---|
| 97 | $(sorterr_SOURCES) \ |
---|
| 98 | $(extend_SOURCES) \ |
---|
[79b32a95] | 99 | $(survexport_SOURCES) |
---|
[f63bd56] | 100 | |
---|
[0dc5829] | 101 | ../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl |
---|
| 102 | cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox |
---|
[f63bd56] | 103 | |
---|
[223f1ad] | 104 | EXTRA_DIST = \ |
---|
[b45fcf9] | 105 | aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \ |
---|
| 106 | igrf12coeffs.txt igrf2c.py |
---|
[a580dc1] | 107 | |
---|
[4b34f80] | 108 | BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h |
---|
[a580dc1] | 109 | |
---|
[c40038a] | 110 | z_getopt.c: getopt.c gettexttomsg.pl |
---|
[a580dc1] | 111 | ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
---|
[f533b37] | 112 | |
---|
[f9044d0] | 113 | avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov |
---|
[1fb581f] | 114 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
[3a1524d] | 115 | |
---|
[dcbcae0] | 116 | img2aven.h: $(srcdir)/gen_img2aven |
---|
| 117 | $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h |
---|
| 118 | |
---|
[4b34f80] | 119 | thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt |
---|
| 120 | python $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt |
---|
| 121 | mv ../thgeomagdata.h . |
---|
| 122 | |
---|
[223f1ad] | 123 | MAINTAINERCLEANFILES =\ |
---|
| 124 | $(BUILT_SOURCES) |
---|