source: git/src/Makefile.am @ e4729d7

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 e4729d7 was 223f1ad, checked in by Olly Betts <olly@…>, 20 years ago

Ported "Export as" over from 1.0 branch.

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

  • Property mode set to 100644
File size: 5.6 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 aboutdlg.h aven.h gfxcore.h mainfrm.h matrix4.h quaternion.h vector3.h wx.h \
9 aventypes.h aventreectrl.h export.h\
10 guicontrol.h gla.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 fnt.h moviemaker.cc moviemaker.h \
55 avenpal.h hash.c
56
57# splash.cc paneldlg.cc paneldlgpage.cc prefsdlg.cc \
58# tubeprefs.cc stnprefs.cc legprefs.cc ctlprefs.cc gridprefs.cc unitsprefs.cc \
59# indicatorprefs.cc winprefs.cc
60
61dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
62
63editwrap_SOURCES = editwrap.c
64editwrap_LDFLAGS = -mwindows
65
66if WIN32
67aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
68
69svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
70        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc
71
72svxedit.ico: ../lib/icons/svxedit.ico
73        cp ../lib/icons/svxedit.ico .
74
75editwrap_LDADD = svxeditrc.o
76
77# FIXME: use path on WXCONFIG to get --include-dir?
78avenrc.o: $(srcdir)/aven.rc aven.ico
79        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -o $$pwd/avenrc.o aven.rc
80
81aven.ico: ../lib/icons/aven.ico
82        cp ../lib/icons/aven.ico .
83
84CLEANFILES = aven.ico svxedit.ico
85else
86aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
87endif
88
89# If we're building aven on MacOS X, we need to bind resources to aven after
90# we build it.  Use aven-rez as a timestamp file to track whether we've
91# bound resources.
92# The MacOS X install program doesn't copy the resource fork (clever eh?) so
93# we reapply the resources after installing too...
94if AVEN
95if MACOSX
96AVEN_REZ = aven-rez
97
98aven-rez: aven
99        `@WXCONFIG@ --rezflags` aven
100        touch aven-rez
101
102install-exec-hook:
103        `@WXCONFIG@ --rezflags` $(bindir)/aven
104else !MACOSX
105AVEN_REZ =
106
107# need empty target as automake will try to make it because it's in the other
108# branch
109install-exec-hook:
110
111endif !MACOSX
112else !AVEN
113AVEN_REZ =
114
115# need empty target as automake will try to make it because it's in the other
116# branch
117install-exec-hook:
118
119endif !AVEN
120
121noinst_SCRIPTS = $(AVEN_REZ)
122MOSTLYCLEANFILES = $(AVEN_REZ)
123
124aven_CFLAGS = @WXGL_CFLAGS@ $(AM_CFLAGS) -DAVEN
125aven_CXXFLAGS = @WXGL_CXXFLAGS@ $(AM_CXXFLAGS)
126aven_LDFLAGS = @WX_LDFLAGS@
127
128PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC)
129
130printps_SOURCES = printps.c $(PRSRC)
131printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c
132printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c
133printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c
134printhpgl_SOURCES = prhpgl.c $(PRSRC)
135printwin_SOURCES = printwin.c $(PRSRC)
136printwin_LDFLAGS = -mconsole
137printwin_LDADD = -lgdi32 -lcomdlg32
138
139diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
140sorterr_SOURCES = sorterr.c $(COMMONSRC)
1413dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
142extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
143
144cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
145
146#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
147#imgtest_SOURCES = imgtest.c imgalone.c
148
149# this doesn't work if compiler doesn't support -c and -o, or with
150# deANSIfication
151# Use imgalone.c containing '#define STANDALONE/#include "img.c"'?
152#imgalone.o: img.c
153#        $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c
154
155EXTRA_DIST = \
156 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
157
158BUILT_SOURCES = z_getopt.c avenpal.h
159
160z_getopt.c: getopt.c gettexttomsg.pl
161        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
162
163avenpal.h: $(srcdir)/gradient.pov
164        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
165
166MAINTAINERCLEANFILES =\
167 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.