[076cb4e] | 1 | ## Process this file with automake to produce Makefile.in |
---|
| 2 | |
---|
[223f1ad] | 3 | noinst_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 \ |
---|
[ce403f1] | 8 | fnt.h guicontrol.h gla.h moviemaker.h \ |
---|
| 9 | aboutdlg.h aven.h avenpal.h gfxcore.h mainfrm.h matrix4.h quaternion.h\ |
---|
| 10 | vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.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... |
---|
| 17 | h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) |
---|
| 18 | t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc |
---|
| 19 | |
---|
[fe282c2] | 20 | aven-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] | 29 | LDADD = @LIBOBJS@ |
---|
| 30 | |
---|
[72af530] | 31 | INCLUDES = -DIMG_HOSTED |
---|
| 32 | |
---|
[076cb4e] | 33 | PRINT = printdm printps printpcl printhpgl |
---|
| 34 | |
---|
[984f49e] | 35 | # developer tools, testharnesses, etc |
---|
| 36 | TESTPROGS = @TESTPROGS@ |
---|
| 37 | |
---|
[7011db8] | 38 | # printxbm and dump3d are test programs |
---|
[7d380bc] | 39 | EXTRA_PROGRAMS = printwin aven dump3d printxbm editwrap |
---|
[7011db8] | 40 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
---|
[4b4bd47] | 41 | bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \ |
---|
[6134f54] | 42 | 3dtopos @AVEN@ @WINPROGS@ @TESTPROGS@ |
---|
[27b8b59] | 43 | bin_SCRIPTS = svxedit |
---|
[076cb4e] | 44 | |
---|
[a580dc1] | 45 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
[608e8b1] | 46 | |
---|
| 47 | cavern_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] | 51 | aven_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 \ |
---|
[ce403f1] | 54 | guicontrol.cc gla-gl.cc fnt.cc moviemaker.cc \ |
---|
| 55 | avenprcore.cc printwx.cc ini.c hash.c |
---|
[5809313] | 56 | |
---|
[7011db8] | 57 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
---|
| 58 | |
---|
[27b8b59] | 59 | editwrap_SOURCES = editwrap.c |
---|
| 60 | editwrap_LDFLAGS = -mwindows |
---|
| 61 | |
---|
[af1b2c0] | 62 | if WIN32 |
---|
[0580c6a] | 63 | aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
[416d6ef] | 64 | |
---|
[4680c7c] | 65 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
---|
[27b8b59] | 66 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc |
---|
| 67 | |
---|
[4680c7c] | 68 | svxedit.ico: ../lib/icons/svxedit.ico |
---|
| 69 | cp ../lib/icons/svxedit.ico . |
---|
| 70 | |
---|
[27b8b59] | 71 | editwrap_LDADD = svxeditrc.o |
---|
| 72 | |
---|
[302aedf] | 73 | # FIXME: use path on WXCONFIG to get --include-dir? |
---|
[4680c7c] | 74 | avenrc.o: $(srcdir)/aven.rc aven.ico |
---|
[302aedf] | 75 | 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] | 76 | |
---|
| 77 | aven.ico: ../lib/icons/aven.ico |
---|
| 78 | cp ../lib/icons/aven.ico . |
---|
| 79 | |
---|
| 80 | CLEANFILES = aven.ico svxedit.ico |
---|
[af1b2c0] | 81 | else |
---|
[0580c6a] | 82 | aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
[af1b2c0] | 83 | endif |
---|
| 84 | |
---|
[63dc4eb] | 85 | # If we're building aven on MacOS X, we need to bind resources to aven after |
---|
| 86 | # we build it. Use aven-rez as a timestamp file to track whether we've |
---|
| 87 | # bound resources. |
---|
| 88 | # The MacOS X install program doesn't copy the resource fork (clever eh?) so |
---|
| 89 | # we reapply the resources after installing too... |
---|
| 90 | if AVEN |
---|
[302aedf] | 91 | if MACOSX |
---|
[63dc4eb] | 92 | AVEN_REZ = aven-rez |
---|
[302aedf] | 93 | |
---|
| 94 | aven-rez: aven |
---|
| 95 | `@WXCONFIG@ --rezflags` aven |
---|
| 96 | touch aven-rez |
---|
[64d37a3] | 97 | |
---|
[63dc4eb] | 98 | install-exec-hook: |
---|
| 99 | `@WXCONFIG@ --rezflags` $(bindir)/aven |
---|
| 100 | else !MACOSX |
---|
| 101 | AVEN_REZ = |
---|
[1809849] | 102 | |
---|
| 103 | # need empty target as automake will try to make it because it's in the other |
---|
| 104 | # branch |
---|
| 105 | install-exec-hook: |
---|
| 106 | |
---|
[63dc4eb] | 107 | endif !MACOSX |
---|
| 108 | else !AVEN |
---|
| 109 | AVEN_REZ = |
---|
[1809849] | 110 | |
---|
| 111 | # need empty target as automake will try to make it because it's in the other |
---|
| 112 | # branch |
---|
| 113 | install-exec-hook: |
---|
| 114 | |
---|
[63dc4eb] | 115 | endif !AVEN |
---|
[64d37a3] | 116 | |
---|
[63dc4eb] | 117 | noinst_SCRIPTS = $(AVEN_REZ) |
---|
| 118 | MOSTLYCLEANFILES = $(AVEN_REZ) |
---|
[302aedf] | 119 | |
---|
[b4fe9fb] | 120 | aven_CFLAGS = @WXGL_CFLAGS@ $(AM_CFLAGS) -DAVEN |
---|
[8c51591] | 121 | aven_CXXFLAGS = @WXGL_CXXFLAGS@ $(AM_CXXFLAGS) |
---|
[7d380bc] | 122 | aven_LDFLAGS = @WX_LDFLAGS@ |
---|
[1a5c545] | 123 | |
---|
[c34796a] | 124 | PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC) |
---|
[0580c6a] | 125 | |
---|
[c34796a] | 126 | printps_SOURCES = printps.c $(PRSRC) |
---|
| 127 | printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c |
---|
| 128 | printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c |
---|
| 129 | printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c |
---|
| 130 | printhpgl_SOURCES = prhpgl.c $(PRSRC) |
---|
[55b7334] | 131 | printwin_SOURCES = printwin.c $(PRSRC) |
---|
[761c5f9] | 132 | printwin_LDFLAGS = -mconsole |
---|
| 133 | printwin_LDADD = -lgdi32 -lcomdlg32 |
---|
[076cb4e] | 134 | |
---|
[27b8b59] | 135 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
---|
[d06141c] | 136 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
[a20d9b9] | 137 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
---|
[693388e] | 138 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
---|
[076cb4e] | 139 | |
---|
[80e25c3] | 140 | cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c |
---|
[076cb4e] | 141 | |
---|
[b5782dc] | 142 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
---|
| 143 | #imgtest_SOURCES = imgtest.c imgalone.c |
---|
| 144 | |
---|
[076cb4e] | 145 | # this doesn't work if compiler doesn't support -c and -o, or with |
---|
| 146 | # deANSIfication |
---|
| 147 | # Use imgalone.c containing '#define STANDALONE/#include "img.c"'? |
---|
| 148 | #imgalone.o: img.c |
---|
| 149 | # $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c |
---|
| 150 | |
---|
[223f1ad] | 151 | EXTRA_DIST = \ |
---|
| 152 | aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov |
---|
[a580dc1] | 153 | |
---|
[1fb581f] | 154 | BUILT_SOURCES = z_getopt.c avenpal.h |
---|
[a580dc1] | 155 | |
---|
[c40038a] | 156 | z_getopt.c: getopt.c gettexttomsg.pl |
---|
[a580dc1] | 157 | ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
---|
[f533b37] | 158 | |
---|
[1fb581f] | 159 | avenpal.h: $(srcdir)/gradient.pov |
---|
| 160 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
[3a1524d] | 161 | |
---|
[223f1ad] | 162 | MAINTAINERCLEANFILES =\ |
---|
| 163 | $(BUILT_SOURCES) |
---|