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

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

Update img documentation

  • 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_for_survex.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 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
20bin_PROGRAMS = cavern diffpos dump3d extend sorterr survexport aven
21
22install-exec-hook:
23        ln $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
24           $(DESTDIR)$(bindir)/3dtopos$(EXEEXT) || \
25            cp -p $(DESTDIR)$(bindir)/survexport$(EXEEXT) \
26                  $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
27
28uninstall-hook:
29        rm -f $(DESTDIR)$(bindir)/3dtopos$(EXEEXT)
30
31check_PROGRAMS = imgtest
32
33COMMONSRC = cmdline.c message.c str.c filename.c z_getopt.c getopt1.c
34
35cavern_SOURCES = cavern.c date.c commands.c datain.c hash.c listpos.c \
36 netskel.c network.c readval.c matrix.c img_for_survex.c netbits.c \
37 validate.c netartic.c thgeomag.c \
38 $(COMMONSRC)
39cavern_LDADD = $(PROJ_LIBS)
40
41aven_SOURCES = aven.cc gfxcore.cc mainfrm.cc model.cc vector3.cc aboutdlg.cc \
42 namecompare.cc aventreectrl.cc export.cc export3d.cc \
43 gdalexport.cc gla-gl.cc glbitmapfont.cc gpx.cc guicontrol.cc  \
44 json.cc kml.cc log.cc moviemaker.cc hpgl.cc \
45 cavernlog.cc avenprcore.cc printing.cc pos.cc \
46 date.c img_for_survex.c hash.c \
47 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
48 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
49 rotatezoom.xbm rotatezoommask.xbm \
50 $(COMMONSRC)
51
52dump3d_SOURCES = dump3d.c date.c img_for_survex.c \
53 $(COMMONSRC)
54
55aven_LDADD = $(LIBOBJS) $(WX_LIBS) $(GDAL_LIBS) $(PROJ_LIBS) $(FFMPEG_LIBS)
56
57if WIN32
58aven_LDADD += avenrc.o
59
60avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
61        cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir '$(abs_top_builddir)/lib/icons' -o '$(abs_builddir)/avenrc.o' aven.rc
62
63bin_PROGRAMS += wrapaven wrapsurvexport
64
65wrapaven_SOURCES = wrapaven.c
66wrapaven_LDFLAGS = -mwindows -municode
67
68wrapsurvexport_SOURCES = wrapsurvexport.c
69endif
70
71AM_CFLAGS += $(PROJ_CFLAGS)
72
73aven_CFLAGS = $(AM_CFLAGS) $(WX_CFLAGS) -DAVEN
74aven_CXXFLAGS = $(AM_CXXFLAGS) $(GDAL_CFLAGS) $(PROJ_CFLAGS) $(FFMPEG_CFLAGS) $(WX_CXXFLAGS)
75aven_LDFLAGS =
76
77survexport_CXXFLAGS = $(AM_CXXFLAGS) $(GDAL_CFLAGS) $(PROJ_CFLAGS) $(WX_CXXFLAGS)
78survexport_LDFLAGS =
79survexport_LDADD = $(LIBOBJS) $(WX_LIBS) $(GDAL_LIBS) $(PROJ_LIBS)
80
81diffpos_SOURCES = diffpos.c namecmp.c img_for_survex.c hash.c \
82 $(COMMONSRC)
83sorterr_SOURCES = sorterr.c $(COMMONSRC)
84extend_SOURCES = extend.c img_for_survex.c hash.c \
85 $(COMMONSRC)
86
87survexport_SOURCES = survexport.cc model.cc export.cc export3d.cc \
88                gdalexport.cc namecompare.cc hash.c img_for_survex.c \
89                gpx.cc hpgl.cc json.cc kml.cc pos.cc vector3.cc $(COMMONSRC)
90
91#testerr_SOURCES = testerr.c message.c filename.c
92
93imgtest_SOURCES = imgtest.c img.c
94
95all_sources = \
96        $(noinst_HEADERS) \
97        $(COMMONSRC) \
98        $(cavern_SOURCES) \
99        $(aven_SOURCES) \
100        $(dump3d_SOURCES) \
101        $(diffpos_SOURCES) \
102        $(sorterr_SOURCES) \
103        $(extend_SOURCES) \
104        $(survexport_SOURCES)
105
106../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
107        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
108
109EXTRA_DIST = \
110 aven.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven \
111 igrf14coeffs.txt igrf2c.py
112
113BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h thgeomagdata.h
114
115z_getopt.c: getopt.c gettexttomsg.pl
116        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
117
118avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
119        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
120
121img2aven.h: $(srcdir)/gen_img2aven
122        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
123
124PYTHON = python3
125
126# When updating to a new IGRF version, update table in doc/datafile.rst too.
127thgeomagdata.h: $(srcdir)/igrf2c.py $(srcdir)/igrf14coeffs.txt
128        $(PYTHON) $(srcdir)/igrf2c.py $(srcdir)/igrf14coeffs.txt
129        mv ../thgeomagdata.h .
130
131MAINTAINERCLEANFILES =\
132 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.