source: git/src/Makefile.am @ f2e1315

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereowalls-datawalls-data-hanging-as-warning
Last change on this file since f2e1315 was 78924eb, checked in by Olly Betts <olly@…>, 18 years ago

Add "error log" window which only appears if there are OpenGL errors and
logs them all so they can be saved and sent in.

Use glPushMatrix and glPopMatrix rather than applying the reverse
transformation to undo.

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

  • Property mode set to 100644
File size: 5.0 KB
Line 
1## Process this file with automake to produce Makefile.in
2
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\
5 netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\
6 readval.h str.h useful.h validate.h whichos.h\
7 fnt.h guicontrol.h gla.h moviemaker.h exportfilter.h hpgl.h cavernlog.h\
8 aboutdlg.h aven.h avenpal.h gfxcore.h log.h mainfrm.h matrix4.h quaternion.h\
9 vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h
10
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...
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
19aven-gfxcore.o: gfxcore.cc
20        source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \
21        depfile='$(DEPDIR)/aven-gfxcore.Po' \
22        tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \
23        $(CXXDEPMODE) $(depcomp) \
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
27
28LDADD = $(LIBOBJS)
29
30INCLUDES = -DIMG_HOSTED
31
32# dump3d is a test program
33EXTRA_PROGRAMS =\
34        aven dump3d editwrap
35# FIXME: base_progs in top level Makefile.am needs updating if this is
36bin_PROGRAMS = cavern diffpos extend cad3d sorterr \
37 3dtopos aven $(WINPROGS) $(TESTPROGS)
38bin_SCRIPTS = svxedit
39
40COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
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 \
44 $(COMMONSRC)
45
46aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \
47 gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \
48 useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \
49 guicontrol.cc gla-gl.cc fnt.cc log.cc moviemaker.cc hpgl.cc cavernlog.cc \
50 brotatemask.xbm brotate.xbm hand_mask.xbm handmask.xbm hand.xbm \
51 rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \
52 avenprcore.cc printwx.cc ini.c hash.c
53
54dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
55
56editwrap_SOURCES = editwrap.c
57editwrap_LDFLAGS = -mwindows
58
59if WIN32
60aven_LDADD = avenrc.o $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS)
61
62svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
63        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o "$$pwd/svxeditrc.o" svxedit.rc
64
65svxedit.ico: ../lib/icons/svxedit.ico
66        cp ../lib/icons/svxedit.ico .
67
68editwrap_LDADD = svxeditrc.o
69
70# FIXME: use path on WXCONFIG to get --include-dir?
71avenrc.o: $(srcdir)/aven.rc aven.ico
72        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -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) $(MOVIE_LIBS) $(WX_LIBS)
80endif
81
82# If we're building aven on MacOS X, we need to bind resources to aven after
83# we build it.  Use aven-rez as a timestamp file to track whether we've
84# bound resources.
85# The MacOS X install program doesn't copy the resource fork (clever eh?) so
86# we reapply the resources after installing too...
87if MACOSX
88AVEN_REZ = aven-rez
89
90aven-rez: aven
91        `$(WXCONFIG) --rezflags` aven
92        touch aven-rez
93
94install-exec-hook:
95        `$(WXCONFIG) --rezflags` $(bindir)/aven
96else !MACOSX
97AVEN_REZ =
98
99# We need an empty target as automake will try to make it because it's in the
100# other branch.
101install-exec-hook:
102
103endif !MACOSX
104
105noinst_SCRIPTS = $(AVEN_REZ)
106MOSTLYCLEANFILES = $(AVEN_REZ)
107
108aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN
109aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS)
110aven_LDFLAGS = $(WX_LDFLAGS)
111
112diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
113sorterr_SOURCES = sorterr.c $(COMMONSRC)
1143dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
115extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
116
117cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
118
119#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
120#imgtest_SOURCES = imgtest.c imgalone.c
121
122# this doesn't work if compiler doesn't support -c and -o, or with
123# deANSIfication
124# Use imgalone.c containing '#define STANDALONE/#include "img.c"'?
125#imgalone.o: img.c
126#        $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c
127
128EXTRA_DIST = \
129 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
130
131BUILT_SOURCES = z_getopt.c avenpal.h
132
133z_getopt.c: getopt.c gettexttomsg.pl
134        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
135
136avenpal.h: $(srcdir)/gradient.pov
137        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
138
139MAINTAINERCLEANFILES =\
140 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.