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
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 \
[49003c3]8 aboutdlg.h aven.h gfxcore.h mainfrm.h matrix4.h quaternion.h vector3.h wx.h \
[223f1ad]9 aventypes.h aventreectrl.h export.h\
10 guicontrol.h gla.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 \
54 guicontrol.cc gla-gl.cc fnt.cc fnt.h moviemaker.cc moviemaker.h \
55 avenpal.h hash.c
[edb6576]56
[e9bd2800]57# splash.cc paneldlg.cc paneldlgpage.cc prefsdlg.cc \
[edb6576]58# tubeprefs.cc stnprefs.cc legprefs.cc ctlprefs.cc gridprefs.cc unitsprefs.cc \
59# indicatorprefs.cc winprefs.cc
[5809313]60
[7011db8]61dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
62
[27b8b59]63editwrap_SOURCES = editwrap.c
64editwrap_LDFLAGS = -mwindows
65
[af1b2c0]66if WIN32
[0580c6a]67aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
[416d6ef]68
[4680c7c]69svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
[27b8b59]70        pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc
71
[4680c7c]72svxedit.ico: ../lib/icons/svxedit.ico
73        cp ../lib/icons/svxedit.ico .
74
[27b8b59]75editwrap_LDADD = svxeditrc.o
76
[302aedf]77# FIXME: use path on WXCONFIG to get --include-dir?
[4680c7c]78avenrc.o: $(srcdir)/aven.rc aven.ico
[302aedf]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
[4680c7c]80
81aven.ico: ../lib/icons/aven.ico
82        cp ../lib/icons/aven.ico .
83
84CLEANFILES = aven.ico svxedit.ico
[af1b2c0]85else
[0580c6a]86aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@
[af1b2c0]87endif
88
[63dc4eb]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
[302aedf]95if MACOSX
[63dc4eb]96AVEN_REZ = aven-rez
[302aedf]97
98aven-rez: aven
99        `@WXCONFIG@ --rezflags` aven
100        touch aven-rez
[64d37a3]101
[63dc4eb]102install-exec-hook:
103        `@WXCONFIG@ --rezflags` $(bindir)/aven
104else !MACOSX
105AVEN_REZ =
[1809849]106
107# need empty target as automake will try to make it because it's in the other
108# branch
109install-exec-hook:
110
[63dc4eb]111endif !MACOSX
112else !AVEN
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 !AVEN
[64d37a3]120
[63dc4eb]121noinst_SCRIPTS = $(AVEN_REZ)
122MOSTLYCLEANFILES = $(AVEN_REZ)
[302aedf]123
[b4fe9fb]124aven_CFLAGS = @WXGL_CFLAGS@ $(AM_CFLAGS) -DAVEN
[8c51591]125aven_CXXFLAGS = @WXGL_CXXFLAGS@ $(AM_CXXFLAGS)
[7d380bc]126aven_LDFLAGS = @WX_LDFLAGS@
[1a5c545]127
[c34796a]128PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC)
[0580c6a]129
[c34796a]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)
[55b7334]135printwin_SOURCES = printwin.c $(PRSRC)
[761c5f9]136printwin_LDFLAGS = -mconsole
137printwin_LDADD = -lgdi32 -lcomdlg32
[076cb4e]138
[27b8b59]139diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
[d06141c]140sorterr_SOURCES = sorterr.c $(COMMONSRC)
[a20d9b9]1413dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
[693388e]142extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
[076cb4e]143
[80e25c3]144cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
[076cb4e]145
[b5782dc]146#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
147#imgtest_SOURCES = imgtest.c imgalone.c
148
[076cb4e]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
[223f1ad]155EXTRA_DIST = \
156 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov
[a580dc1]157
[1fb581f]158BUILT_SOURCES = z_getopt.c avenpal.h
[a580dc1]159
[c40038a]160z_getopt.c: getopt.c gettexttomsg.pl
[a580dc1]161        ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
[f533b37]162
[1fb581f]163avenpal.h: $(srcdir)/gradient.pov
164        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
[3a1524d]165
[223f1ad]166MAINTAINERCLEANFILES =\
167 $(BUILT_SOURCES)
Note: See TracBrowser for help on using the repository browser.