1 ## Process this file with automake to produce Makefile.in
3 noinst_HEADERS = cavern.h commands.h cmdline.h date.h datain.h debug.h\
4 filelist.h filename.h getopt.h hash.h img.c img.h img_hosted.h kml.h\
5 labelinfo.h listpos.h matrix.h message.h namecmp.h namecompare.h netartic.h\
6 netbits.h netskel.h network.h osalloc.h\
7 osdepend.h ostypes.h out.h readval.h str.h useful.h validate.h whichos.h\
8 glbitmapfont.h guicontrol.h gla.h gpx.h moviemaker.h exportfilter.h hpgl.h\
9 cavernlog.h aboutdlg.h aven.h avenpal.h gfxcore.h json.h log.h mainfrm.h\
10 pos.h vector3.h wx.h aventypes.h aventreectrl.h export.h printing.h\
11 avenprcore.h img2aven.h thgeomag.h thgeomagdata.h\
16 # dump3d is a test program
18 # findentrances is mostly superceded by aven's GPX export, so is disabled
19 # by default, and will be removed entirely at some point. To build and
20 # install it, pass "FINDENTRANCES=findentrances" as an argument to make
22 # make FINDENTRANCES=findentrances
23 # sudo make install FINDENTRANCES=findentrances
26 aven dump3d findentrances
27 # FIXME: base_progs in top level Makefile.am needs updating if this is
28 bin_PROGRAMS = cad3d cavern diffpos extend sorterr 3dtopos dump3d \
29 aven $(OSPROGS) $(FINDENTRANCES)
31 check_PROGRAMS = imgtest
33 COMMONSRC = cmdline.c message.c str.c filename.c osdepend.c z_getopt.c getopt1.c
35 cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
36 network.c readval.c matrix.c img_hosted.c netbits.c useful.c \
37 validate.c netartic.c thgeomag.c \
39 cavern_LDADD = $(PROJ_LIBS)
41 aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc vector3.cc aboutdlg.cc \
42 namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \
43 glbitmapfont.cc gpx.cc json.cc kml.cc log.cc moviemaker.cc hpgl.cc \
44 cavernlog.cc avenprcore.cc printing.cc buttontaghandler.cc pos.cc \
45 date.c img_hosted.c useful.c hash.c \
46 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
47 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
48 rotatezoom.xbm rotatezoommask.xbm \
51 dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
54 findentrances_SOURCES = findentrances.cc img_hosted.c useful.c \
56 findentrances_LDADD = $(PROJ_LIBS)
59 aven_LDADD = avenrc.o $(LIBOBJS) $(LIBAV_LIBS) $(WX_LIBS) $(PROJ_LIBS)
61 avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
62 pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/avenrc.o" aven.rc
65 aven_LDADD = $(LIBOBJS) $(AVEN_LIBS) $(WX_LIBS) $(PROJ_LIBS) $(LIBAV_LIBS)
68 AM_CFLAGS += $(PROJ_CFLAGS)
70 aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
71 aven_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(LIBAV_CFLAGS) $(WX_CXXFLAGS)
75 # FIXME: It looks like modern wx-config should give us this...
76 aven_LDFLAGS += -framework OpenGL
79 diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
81 sorterr_SOURCES = sorterr.c $(COMMONSRC)
82 3dtopos_SOURCES = 3dtopos.c namecmp.c img_hosted.c useful.c \
84 extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
87 cad3d_SOURCES = cad3d.c useful.c img_hosted.c hash.c \
90 #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
92 imgtest_SOURCES = imgtest.c img.c
105 $(findentrances_SOURCES)
107 ../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
108 cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
111 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
112 igrf12coeffs.txt igrf2c.py
114 BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h
116 z_getopt.c: getopt.c gettexttomsg.pl
117 ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
119 avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
120 $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
122 img2aven.h: $(srcdir)/gen_img2aven
123 $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
125 thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
126 python $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
127 mv ../thgeomagdata.h .
129 MAINTAINERCLEANFILES =\