source: git/src/Makefile.am @ bbaa0bd

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since bbaa0bd was bbaa0bd, checked in by Olly Betts <olly@…>, 20 years ago

Kill off AVENGL #define

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

  • Property mode set to 100644
File size: 5.5 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 prbitmap.h prcore.h prio.h readval.h str.h useful.h validate.h whichos.h\
7 new3dout.h 3ddefs.h \
8 fnt.h guicontrol.h gla.h moviemaker.h \
9 aboutdlg.h aven.h avenpal.h gfxcore.h mainfrm.h matrix4.h quaternion.h\
10 vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h
11
12# GCC 2.95 frequently dies on gfxcore.cc with an internal error, so if the
13# compile fails, rerun it with -O instead of -O2 - FIXME this probably
14# assumes things about automake internals...
15# Argh - the Apple's cc for MacOS X (based on GCC 2.95) won't compile
16# gfxcore.cc with *any* level of optimisation...
17h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
18t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc
19
20aven-gfxcore.o: gfxcore.cc
21        source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \
22        depfile='$(DEPDIR)/aven-gfxcore.Po' \
23        tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \
24        $(CXXDEPMODE) $(depcomp) \
25        $h $(aven_CXXFLAGS) $(CXXFLAGS) $t \
26         || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2/-O/g'` $t \
27         || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2*//g'` $t
28
29LDADD = @LIBOBJS@
30
31INCLUDES = -DIMG_HOSTED
32
33PRINT = printdm printps printpcl printhpgl
34
35# developer tools, testharnesses, etc
36TESTPROGS = @TESTPROGS@
37
38# printxbm and dump3d are test programs
39EXTRA_PROGRAMS = printwin aven dump3d printxbm editwrap
40# FIXME: base_progs in top level Makefile.am needs updating if this is
41bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \
42 3dtopos @AVEN@ @WINPROGS@ @TESTPROGS@
43bin_SCRIPTS = svxedit
44
45COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
46
47cavern_SOURCES = cavern.c listpos.c commands.c datain.c netskel.c network.c \
48 readval.c str.c matrix.c img.c netbits.c useful.c validate.c netartic.c \
49 new3dout.c $(COMMONSRC)
50
51aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \
52 gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \
53 useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \
54 guicontrol.cc gla-gl.cc fnt.cc moviemaker.cc \
55 avenprcore.cc printwx.cc ini.c hash.c
56
57dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
58
59editwrap_SOURCES = editwrap.c
60editwrap_LDFLAGS = -mwindows
61
62if WIN32
63aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
64
65svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
66        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc
67
68svxedit.ico: ../lib/icons/svxedit.ico
69        cp ../lib/icons/svxedit.ico .
70
71editwrap_LDADD = svxeditrc.o
72
73# FIXME: use path on WXCONFIG to get --include-dir?
74avenrc.o: $(srcdir)/aven.rc aven.ico
75        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -o $$pwd/avenrc.o aven.rc
76
77aven.ico: ../lib/icons/aven.ico
78        cp ../lib/icons/aven.ico .
79
80CLEANFILES = aven.ico svxedit.ico
81else
82aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
83endif
84
85# If we're building aven on MacOS X, we need to bind resources to aven after
86# we build it.  Use aven-rez as a timestamp file to track whether we've
87# bound resources.
88# The MacOS X install program doesn't copy the resource fork (clever eh?) so
89# we reapply the resources after installing too...
90if AVEN
91if MACOSX
92AVEN_REZ = aven-rez
93
94aven-rez: aven
95        `@WXCONFIG@ --rezflags` aven
96        touch aven-rez
97
98install-exec-hook:
99        `@WXCONFIG@ --rezflags` $(bindir)/aven
100else !MACOSX
101AVEN_REZ =
102
103# need empty target as automake will try to make it because it's in the other
104# branch
105install-exec-hook:
106
107endif !MACOSX
108else !AVEN
109AVEN_REZ =
110
111# need empty target as automake will try to make it because it's in the other
112# branch
113install-exec-hook:
114
115endif !AVEN
116
117noinst_SCRIPTS = $(AVEN_REZ)
118MOSTLYCLEANFILES = $(AVEN_REZ)
119
120aven_CFLAGS = @WX_CFLAGS@ $(AM_CFLAGS) -DAVEN
121aven_CXXFLAGS = @WX_CXXFLAGS@ $(AM_CXXFLAGS)
122aven_LDFLAGS = @WX_LDFLAGS@
123
124PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC)
125
126printps_SOURCES = printps.c $(PRSRC)
127printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c
128printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c
129printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c
130printhpgl_SOURCES = prhpgl.c $(PRSRC)
131printwin_SOURCES = printwin.c $(PRSRC)
132printwin_LDFLAGS = -mconsole
133printwin_LDADD = -lgdi32 -lcomdlg32
134
135diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
136sorterr_SOURCES = sorterr.c $(COMMONSRC)
1373dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
138extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
139
140cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
141
142#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
143#imgtest_SOURCES = imgtest.c imgalone.c
144
145# this doesn't work if compiler doesn't support -c and -o, or with
146# deANSIfication
147# Use imgalone.c containing '#define STANDALONE/#include "img.c"'?
148#imgalone.o: img.c
149#        $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c
150
151EXTRA_DIST = \
152 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
153
154BUILT_SOURCES = z_getopt.c avenpal.h
155
156z_getopt.c: getopt.c gettexttomsg.pl
157        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
158
159avenpal.h: $(srcdir)/gradient.pov
160        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
161
162MAINTAINERCLEANFILES =\
163 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.