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