source: git/src/Makefile.am @ 9fcb59d

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-datawalls-data-hanging-as-warning
Last change on this file since 9fcb59d was 56ac326, checked in by Olly Betts <olly@…>, 10 years ago

src/Makefile.am: Ship kml.h.

  • 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 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
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 $(WINPROGS) $(FINDENTRANCES)
29bin_SCRIPTS = svxedit
30check_PROGRAMS = imgtest
31
32COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
33
34cavern_SOURCES = cavern.c date.c listpos.c commands.c datain.c netskel.c \
35 network.c readval.c str.c matrix.c img_hosted.c netbits.c useful.c \
36 validate.c netartic.c \
37 $(COMMONSRC)
38cavern_LDADD = $(PROJ_LIBS)
39
40aven_SOURCES = aven.cc date.c img_hosted.c message.c filename.c osdepend.c \
41 gfxcore.cc mainfrm.cc vector3.cc aboutdlg.cc useful.c cmdline.c z_getopt.c \
42 getopt1.c namecompare.cc aventreectrl.cc export.cc guicontrol.cc gla-gl.cc \
43 glbitmapfont.cc gpx.cc kml.cc log.cc moviemaker.cc hpgl.cc cavernlog.cc \
44 brotatemask.xbm brotate.xbm handmask.xbm hand.xbm \
45 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
46 rotatezoom.xbm rotatezoommask.xbm \
47 avenprcore.cc printwx.cc ini.c hash.c \
48 buttontaghandler.cc
49
50dump3d_SOURCES = dump3d.c date.c img_hosted.c useful.c \
51 $(COMMONSRC)
52
53findentrances_SOURCES = findentrances.cc img_hosted.c useful.c \
54 $(COMMONSRC)
55findentrances_LDADD = $(PROJ_LIBS)
56
57editwrap_SOURCES = editwrap.c
58editwrap_LDFLAGS = -mwindows
59
60if WIN32
61aven_LDADD = avenrc.o $(LIBOBJS) $(AVEN_LIBS) $(WX_LIBS) $(PROJ_LIBS)
62
63svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
64        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/svxeditrc.o" svxedit.rc
65
66svxedit.ico: ../lib/icons/svxedit.ico
67        cp ../lib/icons/svxedit.ico .
68
69editwrap_LDADD = svxeditrc.o
70
71avenrc.o: $(srcdir)/aven.rc aven.ico
72        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/avenrc.o" aven.rc
73
74aven.ico: ../lib/icons/aven.ico
75        cp ../lib/icons/aven.ico .
76
77CLEANFILES = aven.ico svxedit.ico
78else
79aven_LDADD = $(LIBOBJS) $(AVEN_LIBS) $(WX_LIBS) $(PROJ_LIBS)
80endif
81
82if MACOSX
83# Aven must always be built into an application bundle to work correctly.
84aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN -DMACOSX_BUNDLE
85aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) -DMACOSX_BUNDLE
86aven_LDFLAGS = $(WX_LDFLAGS) -framework OpenGL
87else
88aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN
89aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS)
90aven_LDFLAGS = $(WX_LDFLAGS)
91endif
92
93diffpos_SOURCES = diffpos.c namecmp.c img_hosted.c useful.c hash.c \
94 $(COMMONSRC)
95sorterr_SOURCES = sorterr.c $(COMMONSRC)
963dtopos_SOURCES = 3dtopos.c namecmp.c img_hosted.c useful.c \
97 $(COMMONSRC)
98extend_SOURCES = extend.c img_hosted.c useful.c hash.c \
99 $(COMMONSRC)
100
101cad3d_SOURCES = cad3d.c useful.c img_hosted.c hash.c str.c \
102 $(COMMONSRC)
103
104#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
105
106imgtest_SOURCES = imgtest.c img.c
107
108all_sources = \
109        $(noinst_HEADERS) \
110        $(COMMONSRC) \
111        $(cavern_SOURCES) \
112        $(aven_SOURCES) \
113        $(dump3d_SOURCES) \
114        $(editwrap_SOURCES) \
115        $(diffpos_SOURCES) \
116        $(sorterr_SOURCES) \
117        $(3dtopos_SOURCES) \
118        $(extend_SOURCES) \
119        $(cad3d_SOURCES) \
120        $(findentrances_SOURCES)
121
122../lib/survex.pox: $(all_sources) ../lib/extract-msgs.pl
123        cd $(srcdir)/../lib && ./extract-msgs.pl `echo $(all_sources)|perl -ne 'print "../src/$$_\n" for sort split'|uniq` > survex.pox
124
125EXTRA_DIST = \
126 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert gen_img2aven
127
128BUILT_SOURCES = z_getopt.c avenpal.h img2aven.h
129
130z_getopt.c: getopt.c gettexttomsg.pl
131        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
132
133avenpal.h: $(srcdir)/gdtconvert $(srcdir)/gradient.pov
134        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
135
136img2aven.h: $(srcdir)/gen_img2aven
137        $(srcdir)/gen_img2aven > tmp-img2aven.h && mv tmp-img2aven.h img2aven.h
138
139MAINTAINERCLEANFILES =\
140 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.