source: git/src/Makefile.am @ c40ca88

stereo-2025
Last change on this file since c40ca88 was c40ca88, checked in by Olly Betts <olly@…>, 7 months ago

macOS: Stop explicitly passing -framework OpenGL

This was apparently needed back in 2006, but at least now it is
output by wx-config --libs.

  • Property mode set to 100644
File size: 4.3 KB
RevLine 
[076cb4e]1## Process this file with automake to produce Makefile.in
2
[71aa081]3# Allow easy overriding via: make WERROR=
4AM_CFLAGS += $(WERROR)
5AM_CXXFLAGS += $(WERROR)
6
[1ee204e]7noinst_HEADERS = cavern.h commands.h cmdline.h date.h datain.h debug.h\
[a72ed95]8 filelist.h filename.h getopt.h hash.h img.c img.h img_hosted.h kml.h\
[381ae6e]9 labelinfo.h listpos.h matrix.h message.h namecmp.h namecompare.h netartic.h\
10 netbits.h netskel.h network.h osalloc.h\
[3a5d967]11 out.h readval.h str.h useful.h validate.h whichos.h gdalexport.h\
[3d7085b]12 glbitmapfont.h gllogerror.h guicontrol.h gla.h gpx.h moviemaker.h\
[355df41]13 export3d.h exportfilter.h hpgl.h cavernlog.h aboutdlg.h aven.h avenpal.h\
14 gfxcore.h json.h log.h mainfrm.h pos.h vector3.h wx.h aventypes.h\
[028716d]15 aventreectrl.h export.h model.h printing.h avenprcore.h img2aven.h\
[355df41]16 thgeomag.h thgeomagdata.h moviemaker-legacy.cc
[076cb4e]17
[f665d6e]18LDADD = $(LIBOBJS)
[1c59cbb]19
[e33b694]20# FIXME: mingw_progs in top level Makefile.am needs keeping in step with this
[79b32a95]21bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven
[c1a9449]22
[167626d]23install-exec-hook:
24        ln $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
25           $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) || \
26            cp -p $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
27                  $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
28
[1ce8aba]29uninstall-hook:
30        rm -f $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
31
[57cecaa]32check_PROGRAMS = imgtest
[076cb4e]33
[c606770]34COMMONSRC = cmdline.c message.c str.c filename.c z_getopt.c getopt1.c
[608e8b1]35
[725d3b1]36cavern_SOURCES = cavern.c date.c commands.c datain.c hash.c listpos.c \
37 netskel.c network.c readval.c matrix.c img_hosted.c netbits.c useful.c \
[4b34f80]38 validate.c netartic.c thgeomag.c \
[a4ae909]39 $(COMMONSRC)
[8c87227]40cavern_LDADD = $(PROJ_LIBS)
[076cb4e]41
[bec42b2]42aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \
[85f7905]43 namecompare.cc aventreectrl.cc export.cc export3d.cc \
44 gdalexport.cc gla-gl.cc glbitmapfont.cc gpx.cc guicontrol.cc  \
45 json.cc kml.cc log.cc moviemaker.cc hpgl.cc \
[f31090c]46 cavernlog.cc avenprcore.cc printing.cc pos.cc \
[75dea56]47 date.c img_hosted.c useful.c hash.c \
[41adebb]48 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
[7098518]49 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
[aa49d2b]50 rotatezoom.xbm rotatezoommask.xbm \
[75dea56]51 $(COMMONSRC)
[5809313]52
[a405bc1]53dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
54 $(COMMONSRC)
[7011db8]55
[51eab3b]56aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(GDAL_LIBS) $(PROJ_LIBS) $(FFMPEG_LIBS)
[9701cae]57
[af1b2c0]58if WIN32
[9701cae]59aven_LDADD += avenrc.o
[416d6ef]60
[98b97c6]61avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
[e4ba2b7]62        cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir '$(abs_top_builddir)/lib/icons' -o '$(abs_builddir)/avenrc.o' aven.rc
[af1b2c0]63endif
64
[f678705]65AM_CFLAGS += $(PROJ_CFLAGS)
66
67aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
[78dac2e]68aven_CXXFLAGS = $(AM_CXXFLAGS) $(GDAL_CFLAGS) $(PROJ_CFLAGS) $(FFMPEG_CFLAGS) $(WX_CXXFLAGS)
[1deb6b5]69aven_LDFLAGS =
[1a5c545]70
[85f7905]71survexport_CXXFLAGS = $(AM_CXXFLAGS) $(GDAL_CFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS)
72survexport_LDFLAGS =
73survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(GDAL_LIBS) $(PROJ_LIBS)
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 \
[85f7905]82                gdalexport.cc 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
[c606770]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 = \
[028716d]104 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
[9687520]105 igrf14coeffs.txt igrf2c.py
[a580dc1]106
[028716d]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
[028716d]115img2aven.h: $(srcdir)/gen_img2aven
116        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
117
[08246df]118PYTHON = python3
[b5a6aff]119
[9687520]120thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf14coeffs.txt
121        $(PYTHON) $(srcdir)/igrf2c.py $(srcdir)/igrf14coeffs.txt
[4b34f80]122        mv ../thgeomagdata.h .
123
[223f1ad]124MAINTAINERCLEANFILES =\
125 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.