source: git/src/Makefile.am @ 4afeedd

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

Simplify diff against 1.0.

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

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