source: git/src/Makefile.am @ 1fe107a

line_contentsstereotravis-osx
Last change on this file since 1fe107a was 1fe107a, checked in by Olly Betts <olly@…>, 5 years ago

src/: Add JSON export.

  • Property mode set to 100644
File size: 4.7 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 ini.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 guicontrol.h gla.h gpx.h moviemaker.h exportfilter.h hpgl.h\
9 cavernlog.h aboutdlg.h aven.h avenpal.h gfxcore.h json.h log.h mainfrm.h\
10 vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h\
11 img2aven.h
12
13LDADD = $(LIBOBJS)
14
15# dump3d is a test program
16#
17# findentrances is mostly superceded by aven's GPX export, so is disabled
18# by default, and will be removed entirely at some point.  To build and
19# install it, pass "FINDENTRANCES=findentrances" as an argument to make
20# like so:
21#     make FINDENTRANCES=findentrances
22#     sudo make install FINDENTRANCES=findentrances
23FINDENTRANCES =
24EXTRA_PROGRAMS =\
25        aven dump3d editwrap findentrances svxedit_wrap
26# FIXME: base_progs in top level Makefile.am needs updating if this is
27bin_PROGRAMS = cad3d cavern diffpos extend sorterr 3dtopos dump3d \
28 aven $(OSPROGS) $(FINDENTRANCES)
29
30bin_SCRIPTS = svxedit
31check_PROGRAMS = imgtest
32
33COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
34
35cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
36 network.c readval.c str.c matrix.c img_hosted.c netbits.c useful.c \
37 validate.c netartic.c \
38 $(COMMONSRC)
39cavern_LDADD = $(PROJ_LIBS)
40
41aven_SOURCES = aven.cc date.c img_hosted.c message.c filename.c osdepend.c \
42 gfxcore.cc mainfrm.cc vector3.cc aboutdlg.cc useful.c cmdline.c z_getopt.c \
43 getopt1.c namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \
44 glbitmapfont.cc gpx.cc json.cc kml.cc log.cc moviemaker.cc hpgl.cc cavernlog.cc \
45 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
46 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
47 rotatezoom.xbm rotatezoommask.xbm \
48 avenprcore.cc printwx.cc ini.c hash.c \
49 buttontaghandler.cc
50
51dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
52 $(COMMONSRC)
53
54findentrances_SOURCES = findentrances.cc img_hosted.c useful.c \
55 $(COMMONSRC)
56findentrances_LDADD = $(PROJ_LIBS)
57
58svxedit_wrap_SOURCES = editwrap_osx.c
59
60editwrap_SOURCES = editwrap.c
61editwrap_LDFLAGS = -mwindows
62
63if WIN32
64aven_LDADD = avenrc.o $(LIBOBJS) $(AVEN_LIBS) $(WX_LIBS) $(PROJ_LIBS)
65
66svxeditrc.o: $(srcdir)/svxedit.rc ../lib/icons/svxedit.ico
67        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/svxeditrc.o" svxedit.rc
68
69editwrap_LDADD = svxeditrc.o
70
71avenrc.o: $(srcdir)/aven.rc ../lib/icons/aven.ico
72        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` --include-dir "$$pwd/../lib/icons" -o "$$pwd/avenrc.o" aven.rc
73
74else
75aven_LDADD = $(LIBOBJS) $(AVEN_LIBS) $(WX_LIBS) $(PROJ_LIBS)
76endif
77
78if MACOSX
79# Aven must always be built into an application bundle to work correctly.
80aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN -DMACOSX_BUNDLE
81aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) -DMACOSX_BUNDLE
82aven_LDFLAGS = $(WX_LDFLAGS) -framework OpenGL
83else
84aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN
85aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS)
86aven_LDFLAGS = $(WX_LDFLAGS)
87endif
88
89diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
90 $(COMMONSRC)
91sorterr_SOURCES = sorterr.c $(COMMONSRC)
923dtopos_SOURCES = 3dtopos.c namecmp.c img_hosted.c useful.c \
93 $(COMMONSRC)
94extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
95 $(COMMONSRC)
96
97cad3d_SOURCES = cad3d.c useful.c img_hosted.c hash.c str.c \
98 $(COMMONSRC)
99
100#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
101
102imgtest_SOURCES = imgtest.c img.c
103
104all_sources = \
105        $(noinst_HEADERS) \
106        $(COMMONSRC) \
107        $(cavern_SOURCES) \
108        $(aven_SOURCES) \
109        $(dump3d_SOURCES) \
110        $(editwrap_SOURCES) \
111        $(diffpos_SOURCES) \
112        $(sorterr_SOURCES) \
113        $(3dtopos_SOURCES) \
114        $(extend_SOURCES) \
115        $(cad3d_SOURCES) \
116        $(findentrances_SOURCES)
117
118../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
119        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
120
121EXTRA_DIST = \
122 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven
123
124BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h
125
126z_getopt.c: getopt.c gettexttomsg.pl
127        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
128
129avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
130        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
131
132img2aven.h: $(srcdir)/gen_img2aven
133        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
134
135MAINTAINERCLEANFILES =\
136 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.