source: git/src/Makefile.am @ fc4b814

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 fc4b814 was 64d37a3, checked in by Olly Betts <olly@…>, 21 years ago

Sync with 1.0 branch.

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

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