source: git/src/Makefile.am @ 53496ab3

RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 53496ab3 was 57cecaa, checked in by Olly Betts <olly@…>, 10 years ago

src/Makefile.am,src/imgtest.c: Add compile test that img.c and img.h
work in non-hosted mode.

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