source: git/src/Makefile.am @ 0482978

RELEASE/1.2debug-cidebug-ci-sanitiserswalls-data
Last change on this file since 0482978 was 167626d, checked in by Olly Betts <olly@…>, 6 years ago

Install survexport as 3dtopos too

Hardlink if possible, else just copy.

For compatibility with current releases of Tunnel.

  • Property mode set to 100644
File size: 4.3 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3noinst_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 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
13
14LDADD = $(LIBOBJS)
15
16# FIXME: mingw_progs in top level Makefile.am needs keeping in step with this
17bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven
18
19install-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
25check_PROGRAMS = imgtest
26
27COMMONSRC = cmdline.c message.c str.c filename.c osdepend.c z_getopt.c getopt1.c
28
29cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
30 network.c readval.c matrix.c img_hosted.c netbits.c useful.c \
31 validate.c netartic.c thgeomag.c \
32 $(COMMONSRC)
33cavern_LDADD = $(PROJ_LIBS)
34
35aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \
36 namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \
37 glbitmapfont.cc gpx.cc json.cc kml.cc log.cc moviemaker.cc hpgl.cc \
38 cavernlog.cc avenprcore.cc printing.cc buttontaghandler.cc pos.cc \
39 date.c img_hosted.c useful.c hash.c \
40 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
41 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
42 rotatezoom.xbm rotatezoommask.xbm \
43 $(COMMONSRC)
44
45dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
46 $(COMMONSRC)
47
48if WIN32
49aven_LDADD = avenrc.o $(LIBOBJS) $(LIBAV_LIBS) $(WX_LIBS) $(PROJ_LIBS)
50
51avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
52        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/avenrc.o" aven.rc
53
54else
55aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS) $(LIBAV_LIBS)
56endif
57
58AM_CFLAGS += $(PROJ_CFLAGS)
59
60aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
61aven_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(LIBAV_CFLAGS) $(WX_CXXFLAGS)
62aven_LDFLAGS =
63
64survexport_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS)
65survexport_LDFLAGS =
66survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS)
67
68if MACOSX
69# FIXME: It looks like modern wx-config should give us this...
70aven_LDFLAGS += -framework OpenGL
71endif
72
73diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
74 $(COMMONSRC)
75sorterr_SOURCES = sorterr.c $(COMMONSRC)
76extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
77 $(COMMONSRC)
78
79survexport_SOURCES = survexport.cc model.cc export.cc namecompare.cc \
80                useful.c hash.c img_hosted.c \
81                gpx.cc hpgl.cc json.cc kml.cc pos.cc vector3.cc $(COMMONSRC)
82
83#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
84
85imgtest_SOURCES = imgtest.c img.c
86
87all_sources = \
88        $(noinst_HEADERS) \
89        $(COMMONSRC) \
90        $(cavern_SOURCES) \
91        $(aven_SOURCES) \
92        $(dump3d_SOURCES) \
93        $(diffpos_SOURCES) \
94        $(sorterr_SOURCES) \
95        $(extend_SOURCES) \
96        $(survexport_SOURCES)
97
98../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
99        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
100
101EXTRA_DIST = \
102 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
103 igrf12coeffs.txt igrf2c.py
104
105BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h
106
107z_getopt.c: getopt.c gettexttomsg.pl
108        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
109
110avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
111        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
112
113img2aven.h: $(srcdir)/gen_img2aven
114        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
115
116thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
117        python $(srcdir)/igrf2c.py $(srcdir)/igrf12coeffs.txt
118        mv ../thgeomagdata.h .
119
120MAINTAINERCLEANFILES =\
121 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.