source: git/src/Makefile.am @ d92d282

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 d92d282 was 4680c7c, checked in by Olly Betts <olly@…>, 20 years ago

Forward port fix for rc and ico files

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

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