source: git/src/Makefile.am @ 57a3cd4

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 57a3cd4 was 4680c7c, checked in by Olly Betts <olly@…>, 20 years ago

Forward port fix for rc and ico files

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

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