source: git/src/Makefile.am @ 08253d9

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 08253d9 was 08253d9, checked in by Olly Betts <olly@…>, 17 years ago

Just set the pan and tilt directly as OpenGL rotations rather than messing
around setting up and then decoding a quaternion. This fixes some glitches
when tilting while looking east, and eliminates 2 source files and 2 headers!

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3337 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 4.6 KB
RevLine 
[076cb4e]1## Process this file with automake to produce Makefile.in
2
[223f1ad]3noinst_HEADERS = cavern.h commands.h cmdline.h datain.h debug.h filelist.h\
4 filename.h getopt.h hash.h img.h ini.h listpos.h matrix.h message.h namecmp.h\
[a20d9b9]5 netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\
[40f1e82]6 readval.h str.h useful.h validate.h whichos.h\
[6bec10c]7 fnt.h guicontrol.h gla.h moviemaker.h exportfilter.h hpgl.h cavernlog.h\
[08253d9]8 aboutdlg.h aven.h avenpal.h gfxcore.h log.h mainfrm.h\
[ce403f1]9 vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h
[076cb4e]10
[fe282c2]11# GCC 2.95 frequently dies on gfxcore.cc with an internal error, so if the
12# compile fails, rerun it with -O instead of -O2 - FIXME this probably
13# assumes things about automake internals...
[64511c0]14# Argh - the Apple's cc for MacOS X (based on GCC 2.95) won't compile
15# gfxcore.cc with *any* level of optimisation...
16h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
17t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc
18
[fe282c2]19aven-gfxcore.o: gfxcore.cc
20        source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \
[64511c0]21        depfile='$(DEPDIR)/aven-gfxcore.Po' \
22        tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \
[fe282c2]23        $(CXXDEPMODE) $(depcomp) \
[64511c0]24        $h $(aven_CXXFLAGS) $(CXXFLAGS) $t \
25         || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2/-O/g'` $t \
26         || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2*//g'` $t
[0580c6a]27
[f665d6e]28LDADD = $(LIBOBJS)
[1c59cbb]29
[72af530]30INCLUDES = -DIMG_HOSTED
31
[40f1e82]32# dump3d is a test program
[7f4a756]33EXTRA_PROGRAMS =\
[40f1e82]34        aven dump3d editwrap
[7011db8]35# FIXME: base_progs in top level Makefile.am needs updating if this is
[40f1e82]36bin_PROGRAMS = cavern diffpos extend cad3d sorterr \
[f665d6e]37 3dtopos aven $(WINPROGS) $(TESTPROGS)
[27b8b59]38bin_SCRIPTS = svxedit
[076cb4e]39
[a580dc1]40COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
[608e8b1]41
42cavern_SOURCES = cavern.c listpos.c commands.c datain.c netskel.c network.c \
43 readval.c str.c matrix.c img.c netbits.c useful.c validate.c netartic.c \
[a4ae909]44 $(COMMONSRC)
[076cb4e]45
[93c3f97]46aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \
[08253d9]47 gfxcore.cc mainfrm.cc vector3.cc aboutdlg.cc \
[223f1ad]48 useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \
[78924eb]49 guicontrol.cc gla-gl.cc fnt.cc log.cc moviemaker.cc hpgl.cc cavernlog.cc \
[7098518]50 brotatemask.xbm brotate.xbm hand_mask.xbm handmask.xbm hand.xbm \
51 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
[aa49d2b]52 rotatezoom.xbm rotatezoommask.xbm \
[ce403f1]53 avenprcore.cc printwx.cc ini.c hash.c
[5809313]54
[7011db8]55dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
56
[27b8b59]57editwrap_SOURCES = editwrap.c
58editwrap_LDFLAGS = -mwindows
59
[af1b2c0]60if WIN32
[f665d6e]61aven_LDADD = avenrc.o $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS)
[416d6ef]62
[4680c7c]63svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
[f665d6e]64        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o "$$pwd/svxeditrc.o" svxedit.rc
[27b8b59]65
[4680c7c]66svxedit.ico: ../lib/icons/svxedit.ico
67        cp ../lib/icons/svxedit.ico .
68
[27b8b59]69editwrap_LDADD = svxeditrc.o
70
[302aedf]71# FIXME: use path on WXCONFIG to get --include-dir?
[4680c7c]72avenrc.o: $(srcdir)/aven.rc aven.ico
[f665d6e]73        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -o "$$pwd/avenrc.o" aven.rc
[4680c7c]74
75aven.ico: ../lib/icons/aven.ico
76        cp ../lib/icons/aven.ico .
77
78CLEANFILES = aven.ico svxedit.ico
[af1b2c0]79else
[f665d6e]80aven_LDADD = $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS)
[af1b2c0]81endif
82
[302aedf]83if MACOSX
[b72f4b5]84# Aven must always be built into an application bundle to work correctly.
85aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN -DMACOSX_BUNDLE
86aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) -DMACOSX_BUNDLE
87aven_LDFLAGS = $(WX_LDFLAGS) -framework OpenGL
88else
[f665d6e]89aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN
90aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS)
91aven_LDFLAGS = $(WX_LDFLAGS)
[b72f4b5]92endif
[1a5c545]93
[27b8b59]94diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
[d06141c]95sorterr_SOURCES = sorterr.c $(COMMONSRC)
[a20d9b9]963dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
[693388e]97extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
[076cb4e]98
[80e25c3]99cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
[076cb4e]100
[b5782dc]101#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
102#imgtest_SOURCES = imgtest.c imgalone.c
103
[076cb4e]104# this doesn't work if compiler doesn't support -c and -o, or with
105# deANSIfication
106# Use imgalone.c containing '#define STANDALONE/#include "img.c"'?
107#imgalone.o: img.c
108#        $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c
109
[223f1ad]110EXTRA_DIST = \
111 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
[a580dc1]112
[1fb581f]113BUILT_SOURCES = z_getopt.c avenpal.h
[a580dc1]114
[c40038a]115z_getopt.c: getopt.c gettexttomsg.pl
[a580dc1]116        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
[f533b37]117
[1fb581f]118avenpal.h: $(srcdir)/gradient.pov
119        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
[3a1524d]120
[223f1ad]121MAINTAINERCLEANFILES =\
122 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.