[076cb4e] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[6134f54] | 3 | noinst_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... |
---|
| 21 | h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) |
---|
| 22 | t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc |
---|
| 23 | |
---|
[fe282c2] | 24 | aven-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] | 33 | LDADD = @LIBOBJS@ |
---|
| 34 | |
---|
[72af530] | 35 | INCLUDES = -DIMG_HOSTED |
---|
| 36 | |
---|
[076cb4e] | 37 | PRINT = printdm printps printpcl printhpgl |
---|
| 38 | |
---|
[984f49e] | 39 | # developer tools, testharnesses, etc |
---|
| 40 | TESTPROGS = @TESTPROGS@ |
---|
| 41 | |
---|
[7011db8] | 42 | # printxbm and dump3d are test programs |
---|
[7d380bc] | 43 | EXTRA_PROGRAMS = printwin aven dump3d printxbm editwrap |
---|
[7011db8] | 44 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
---|
[4b4bd47] | 45 | bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \ |
---|
[6134f54] | 46 | 3dtopos @AVEN@ @WINPROGS@ @TESTPROGS@ |
---|
[27b8b59] | 47 | bin_SCRIPTS = svxedit |
---|
[076cb4e] | 48 | |
---|
[a580dc1] | 49 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
[608e8b1] | 50 | |
---|
| 51 | cavern_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] | 55 | aven_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] | 64 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
---|
| 65 | |
---|
[27b8b59] | 66 | editwrap_SOURCES = editwrap.c |
---|
| 67 | editwrap_LDFLAGS = -mwindows |
---|
| 68 | |
---|
[af1b2c0] | 69 | if WIN32 |
---|
[0580c6a] | 70 | #aven_LDADD = avenrc.o @LIBOBJS@ @WX_LIBS@ |
---|
| 71 | aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
[416d6ef] | 72 | |
---|
[4680c7c] | 73 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
---|
[27b8b59] | 74 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc |
---|
| 75 | |
---|
[4680c7c] | 76 | svxedit.ico: ../lib/icons/svxedit.ico |
---|
| 77 | cp ../lib/icons/svxedit.ico . |
---|
| 78 | |
---|
[27b8b59] | 79 | editwrap_LDADD = svxeditrc.o |
---|
| 80 | |
---|
[302aedf] | 81 | # FIXME: use path on WXCONFIG to get --include-dir? |
---|
[4680c7c] | 82 | avenrc.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 | |
---|
| 85 | aven.ico: ../lib/icons/aven.ico |
---|
| 86 | cp ../lib/icons/aven.ico . |
---|
| 87 | |
---|
| 88 | CLEANFILES = aven.ico svxedit.ico |
---|
[af1b2c0] | 89 | else |
---|
[0580c6a] | 90 | #aven_LDADD = @LIBOBJS@ @WX_LIBS@ |
---|
| 91 | aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
[af1b2c0] | 92 | endif |
---|
| 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... |
---|
| 99 | if AVEN |
---|
[302aedf] | 100 | if MACOSX |
---|
[63dc4eb] | 101 | AVEN_REZ = aven-rez |
---|
[302aedf] | 102 | |
---|
| 103 | aven-rez: aven |
---|
| 104 | `@WXCONFIG@ --rezflags` aven |
---|
| 105 | touch aven-rez |
---|
[64d37a3] | 106 | |
---|
[63dc4eb] | 107 | install-exec-hook: |
---|
| 108 | `@WXCONFIG@ --rezflags` $(bindir)/aven |
---|
| 109 | else !MACOSX |
---|
| 110 | AVEN_REZ = |
---|
[1809849] | 111 | |
---|
| 112 | # need empty target as automake will try to make it because it's in the other |
---|
| 113 | # branch |
---|
| 114 | install-exec-hook: |
---|
| 115 | |
---|
[63dc4eb] | 116 | endif !MACOSX |
---|
| 117 | else !AVEN |
---|
| 118 | AVEN_REZ = |
---|
[1809849] | 119 | |
---|
| 120 | # need empty target as automake will try to make it because it's in the other |
---|
| 121 | # branch |
---|
| 122 | install-exec-hook: |
---|
| 123 | |
---|
[63dc4eb] | 124 | endif !AVEN |
---|
[64d37a3] | 125 | |
---|
[63dc4eb] | 126 | noinst_SCRIPTS = $(AVEN_REZ) |
---|
| 127 | MOSTLYCLEANFILES = $(AVEN_REZ) |
---|
[302aedf] | 128 | |
---|
[7d380bc] | 129 | #aven_CFLAGS = @WX_CFLAGS@ -DAVEN |
---|
| 130 | #aven_CXXFLAGS = @WX_CXXFLAGS@ |
---|
| 131 | #aven_LDFLAGS = @WX_LDFLAGS@ |
---|
[af1b2c0] | 132 | |
---|
[b4fe9fb] | 133 | aven_CFLAGS = @WXGL_CFLAGS@ $(AM_CFLAGS) -DAVEN |
---|
[8c51591] | 134 | aven_CXXFLAGS = @WXGL_CXXFLAGS@ $(AM_CXXFLAGS) |
---|
[7d380bc] | 135 | aven_LDFLAGS = @WX_LDFLAGS@ |
---|
[1a5c545] | 136 | |
---|
[c34796a] | 137 | PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC) |
---|
[0580c6a] | 138 | |
---|
[c34796a] | 139 | printps_SOURCES = printps.c $(PRSRC) |
---|
| 140 | printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c |
---|
| 141 | printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c |
---|
| 142 | printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c |
---|
| 143 | printhpgl_SOURCES = prhpgl.c $(PRSRC) |
---|
[55b7334] | 144 | printwin_SOURCES = printwin.c $(PRSRC) |
---|
[761c5f9] | 145 | printwin_LDFLAGS = -mconsole |
---|
| 146 | printwin_LDADD = -lgdi32 -lcomdlg32 |
---|
[076cb4e] | 147 | |
---|
[27b8b59] | 148 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
---|
[d06141c] | 149 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
[a20d9b9] | 150 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
---|
[693388e] | 151 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
---|
[076cb4e] | 152 | |
---|
[80e25c3] | 153 | cad3d_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] | 164 | EXTRA_DIST = aven.rc getopt.c gettexttomsg.pl gradient.pov |
---|
[a580dc1] | 165 | |
---|
[1fb581f] | 166 | BUILT_SOURCES = z_getopt.c avenpal.h |
---|
[a580dc1] | 167 | |
---|
[c40038a] | 168 | z_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] | 171 | avenpal.h: $(srcdir)/gradient.pov |
---|
| 172 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
[3a1524d] | 173 | |
---|
[9e84588] | 174 | MAINTAINERCLEANFILES = $(BUILT_SOURCES) |
---|