source: git/src/Makefile.am @ 23f9d06

debug-ci-sanitisersfaster-cavernloglog-selectstereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 23f9d06 was 40d1db36, checked in by Olly Betts <olly@…>, 16 months ago

Eliminate references to libav

The libav project seems to be defunct so we can now just refer to
FFmpeg, which it was a fork of and which we've always supported as
well.

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[076cb4e]1## Process this file with automake to produce Makefile.in
2
[1ee204e]3noinst_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\
[ed04c553]7 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\
[355df41]9 export3d.h exportfilter.h hpgl.h cavernlog.h aboutdlg.h aven.h avenpal.h\
10 gfxcore.h json.h log.h mainfrm.h pos.h vector3.h wx.h aventypes.h\
11 aventreectrl.h export.h model.h printing.h avenprcore.h img2aven.h\
12 thgeomag.h thgeomagdata.h moviemaker-legacy.cc
[076cb4e]13
[f665d6e]14LDADD = $(LIBOBJS)
[1c59cbb]15
[e33b694]16# FIXME: mingw_progs in top level Makefile.am needs keeping in step with this
[79b32a95]17bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven
[c1a9449]18
[167626d]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
[1ce8aba]25uninstall-hook:
26        rm -f $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
27
[57cecaa]28check_PROGRAMS = imgtest
[076cb4e]29
[ed04c553]30COMMONSRC = cmdline.c message.c str.c filename.c z_getopt.c getopt1.c
[608e8b1]31
[1ee204e]32cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
[706ddcfd]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]36cavern_LDADD = $(PROJ_LIBS)
[076cb4e]37
[bec42b2]38aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \
[355df41]39 namecompare.cc aventreectrl.cc export.cc export3d.cc guicontrol.cc gla-gl.cc \
[75dea56]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]48dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
49 $(COMMONSRC)
[7011db8]50
[40d1db36]51aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS) $(FFMPEG_LIBS)
[9701cae]52
[af1b2c0]53if WIN32
[9701cae]54aven_LDADD += avenrc.o
[416d6ef]55
[98b97c6]56avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
[e4ba2b7]57        cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir '$(abs_top_builddir)/lib/icons' -o '$(abs_builddir)/avenrc.o' aven.rc
[af1b2c0]58endif
59
[f678705]60AM_CFLAGS += $(PROJ_CFLAGS)
61
62aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
[40d1db36]63aven_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(FFMPEG_CFLAGS) $(WX_CXXFLAGS)
[1deb6b5]64aven_LDFLAGS =
[f678705]65
[79b32a95]66survexport_CXXFLAGS = $(AM_CXXFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS)
67survexport_LDFLAGS =
68survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(PROJ_LIBS)
[bd30612]69
[559cd60]70if MACOS
[de963e4]71# FIXME: It looks like modern wx-config should give us this...
[f678705]72aven_LDFLAGS += -framework OpenGL
[b72f4b5]73endif
[1a5c545]74
[a405bc1]75diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
76 $(COMMONSRC)
[d06141c]77sorterr_SOURCES = sorterr.c $(COMMONSRC)
[a405bc1]78extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
79 $(COMMONSRC)
[076cb4e]80
[355df41]81survexport_SOURCES = survexport.cc model.cc export.cc export3d.cc \
82                namecompare.cc useful.c hash.c img_hosted.c \
[bd30612]83                gpx.cc hpgl.cc json.cc kml.cc pos.cc vector3.cc $(COMMONSRC)
[076cb4e]84
[ed04c553]85#testerr_SOURCES = testerr.c message.c filename.c useful.c
[57cecaa]86
87imgtest_SOURCES = imgtest.c img.c
[076cb4e]88
[f63bd56]89all_sources = \
90        $(noinst_HEADERS) \
91        $(COMMONSRC) \
92        $(cavern_SOURCES) \
93        $(aven_SOURCES) \
94        $(dump3d_SOURCES) \
95        $(diffpos_SOURCES) \
96        $(sorterr_SOURCES) \
97        $(extend_SOURCES) \
[79b32a95]98        $(survexport_SOURCES)
[f63bd56]99
[0dc5829]100../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
101        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
[f63bd56]102
[223f1ad]103EXTRA_DIST = \
[b45fcf9]104 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
[9ac4ad5]105 igrf13coeffs.txt igrf2c.py
[a580dc1]106
[4b34f80]107BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h
[a580dc1]108
[c40038a]109z_getopt.c: getopt.c gettexttomsg.pl
[a580dc1]110        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
[f533b37]111
[f9044d0]112avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
[1fb581f]113        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
[3a1524d]114
[dcbcae0]115img2aven.h: $(srcdir)/gen_img2aven
116        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
117
[08246df]118PYTHON = python3
[b5a6aff]119
[9ac4ad5]120thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf13coeffs.txt
[b5a6aff]121        $(PYTHON) $(srcdir)/igrf2c.py $(srcdir)/igrf13coeffs.txt
[4b34f80]122        mv ../thgeomagdata.h .
123
[223f1ad]124MAINTAINERCLEANFILES =\
125 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.