source: git/src/Makefile.am @ 95fa391

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

Set Aven's icon on non-Windows platforms too. This means that with
WindowMaker? on UNIX you get an icon on the AppIcon? by default.

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

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