source: git/src/Makefile.am @ 3a5d967

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

Ship gdalexport.h

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