source: git/src/Makefile.am @ 0874c07e

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

Port "print from aven" code over from 1.0 branch

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

  • Property mode set to 100644
File size: 5.5 KB
RevLine 
[076cb4e]1## Process this file with automake to produce Makefile.in
2
[223f1ad]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\
[a20d9b9]5 netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\
[223f1ad]6 prbitmap.h prcore.h prio.h readval.h str.h useful.h validate.h whichos.h\
7 new3dout.h 3ddefs.h \
[ce403f1]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
[076cb4e]11
[fe282c2]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...
[64511c0]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
[fe282c2]20aven-gfxcore.o: gfxcore.cc
21        source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \
[64511c0]22        depfile='$(DEPDIR)/aven-gfxcore.Po' \
23        tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \
[fe282c2]24        $(CXXDEPMODE) $(depcomp) \
[64511c0]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
[0580c6a]28
[1c59cbb]29LDADD = @LIBOBJS@
30
[72af530]31INCLUDES = -DIMG_HOSTED
32
[076cb4e]33PRINT = printdm printps printpcl printhpgl
34
[984f49e]35# developer tools, testharnesses, etc
36TESTPROGS = @TESTPROGS@
37
[7011db8]38# printxbm and dump3d are test programs
[7d380bc]39EXTRA_PROGRAMS = printwin aven dump3d printxbm editwrap
[7011db8]40# FIXME: base_progs in top level Makefile.am needs updating if this is
[4b4bd47]41bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \
[6134f54]42 3dtopos @AVEN@ @WINPROGS@ @TESTPROGS@
[27b8b59]43bin_SCRIPTS = svxedit
[076cb4e]44
[a580dc1]45COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
[608e8b1]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)
[076cb4e]50
[93c3f97]51aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \
[8009746]52 gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \
[223f1ad]53 useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \
[ce403f1]54 guicontrol.cc gla-gl.cc fnt.cc moviemaker.cc \
55 avenprcore.cc printwx.cc ini.c hash.c
[5809313]56
[7011db8]57dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
58
[27b8b59]59editwrap_SOURCES = editwrap.c
60editwrap_LDFLAGS = -mwindows
61
[af1b2c0]62if WIN32
[0580c6a]63aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
[416d6ef]64
[4680c7c]65svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
[27b8b59]66        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc
67
[4680c7c]68svxedit.ico: ../lib/icons/svxedit.ico
69        cp ../lib/icons/svxedit.ico .
70
[27b8b59]71editwrap_LDADD = svxeditrc.o
72
[302aedf]73# FIXME: use path on WXCONFIG to get --include-dir?
[4680c7c]74avenrc.o: $(srcdir)/aven.rc aven.ico
[302aedf]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
[4680c7c]76
77aven.ico: ../lib/icons/aven.ico
78        cp ../lib/icons/aven.ico .
79
80CLEANFILES = aven.ico svxedit.ico
[af1b2c0]81else
[0580c6a]82aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
[af1b2c0]83endif
84
[63dc4eb]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
[302aedf]91if MACOSX
[63dc4eb]92AVEN_REZ = aven-rez
[302aedf]93
94aven-rez: aven
95        `@WXCONFIG@ --rezflags` aven
96        touch aven-rez
[64d37a3]97
[63dc4eb]98install-exec-hook:
99        `@WXCONFIG@ --rezflags` $(bindir)/aven
100else !MACOSX
101AVEN_REZ =
[1809849]102
103# need empty target as automake will try to make it because it's in the other
104# branch
105install-exec-hook:
106
[63dc4eb]107endif !MACOSX
108else !AVEN
109AVEN_REZ =
[1809849]110
111# need empty target as automake will try to make it because it's in the other
112# branch
113install-exec-hook:
114
[63dc4eb]115endif !AVEN
[64d37a3]116
[63dc4eb]117noinst_SCRIPTS = $(AVEN_REZ)
118MOSTLYCLEANFILES = $(AVEN_REZ)
[302aedf]119
[b4fe9fb]120aven_CFLAGS = @WXGL_CFLAGS@ $(AM_CFLAGS) -DAVEN
[8c51591]121aven_CXXFLAGS = @WXGL_CXXFLAGS@ $(AM_CXXFLAGS)
[7d380bc]122aven_LDFLAGS = @WX_LDFLAGS@
[1a5c545]123
[c34796a]124PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC)
[0580c6a]125
[c34796a]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)
[55b7334]131printwin_SOURCES = printwin.c $(PRSRC)
[761c5f9]132printwin_LDFLAGS = -mconsole
133printwin_LDADD = -lgdi32 -lcomdlg32
[076cb4e]134
[27b8b59]135diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
[d06141c]136sorterr_SOURCES = sorterr.c $(COMMONSRC)
[a20d9b9]1373dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
[693388e]138extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
[076cb4e]139
[80e25c3]140cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
[076cb4e]141
[b5782dc]142#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
143#imgtest_SOURCES = imgtest.c imgalone.c
144
[076cb4e]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
[223f1ad]151EXTRA_DIST = \
152 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
[a580dc1]153
[1fb581f]154BUILT_SOURCES = z_getopt.c avenpal.h
[a580dc1]155
[c40038a]156z_getopt.c: getopt.c gettexttomsg.pl
[a580dc1]157        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
[f533b37]158
[1fb581f]159avenpal.h: $(srcdir)/gradient.pov
160        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
[3a1524d]161
[223f1ad]162MAINTAINERCLEANFILES =\
163 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.