| 1 | ## Process this file with automake to produce Makefile.in |
|---|
| 2 | |
|---|
| 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\ |
|---|
| 5 | netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\ |
|---|
| 6 | readval.h str.h useful.h validate.h whichos.h\ |
|---|
| 7 | fnt.h guicontrol.h gla.h moviemaker.h exportfilter.h hpgl.h cavernlog.h\ |
|---|
| 8 | aboutdlg.h aven.h avenpal.h gfxcore.h log.h mainfrm.h\ |
|---|
| 9 | vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h |
|---|
| 10 | |
|---|
| 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... |
|---|
| 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... |
|---|
| 16 | h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) |
|---|
| 17 | t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc |
|---|
| 18 | |
|---|
| 19 | aven-gfxcore.o: gfxcore.cc |
|---|
| 20 | source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \ |
|---|
| 21 | depfile='$(DEPDIR)/aven-gfxcore.Po' \ |
|---|
| 22 | tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \ |
|---|
| 23 | $(CXXDEPMODE) $(depcomp) \ |
|---|
| 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 |
|---|
| 27 | |
|---|
| 28 | LDADD = $(LIBOBJS) |
|---|
| 29 | |
|---|
| 30 | INCLUDES = -DIMG_HOSTED |
|---|
| 31 | |
|---|
| 32 | # dump3d is a test program |
|---|
| 33 | EXTRA_PROGRAMS =\ |
|---|
| 34 | aven dump3d editwrap |
|---|
| 35 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
|---|
| 36 | bin_PROGRAMS = cavern diffpos extend cad3d sorterr \ |
|---|
| 37 | 3dtopos aven $(WINPROGS) $(TESTPROGS) |
|---|
| 38 | bin_SCRIPTS = svxedit |
|---|
| 39 | |
|---|
| 40 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
|---|
| 41 | |
|---|
| 42 | cavern_SOURCES = cavern.c listpos.c commands.c datain.c netskel.c network.c \ |
|---|
| 43 | readval.c str.c matrix.c img.c netbits.c useful.c validate.c netartic.c \ |
|---|
| 44 | $(COMMONSRC) |
|---|
| 45 | |
|---|
| 46 | aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \ |
|---|
| 47 | gfxcore.cc mainfrm.cc vector3.cc aboutdlg.cc \ |
|---|
| 48 | useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \ |
|---|
| 49 | guicontrol.cc gla-gl.cc fnt.cc log.cc moviemaker.cc hpgl.cc cavernlog.cc \ |
|---|
| 50 | brotatemask.xbm brotate.xbm hand_mask.xbm handmask.xbm hand.xbm \ |
|---|
| 51 | rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \ |
|---|
| 52 | rotatezoom.xbm rotatezoommask.xbm \ |
|---|
| 53 | avenprcore.cc printwx.cc ini.c hash.c |
|---|
| 54 | |
|---|
| 55 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
|---|
| 56 | |
|---|
| 57 | editwrap_SOURCES = editwrap.c |
|---|
| 58 | editwrap_LDFLAGS = -mwindows |
|---|
| 59 | |
|---|
| 60 | if WIN32 |
|---|
| 61 | aven_LDADD = avenrc.o $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS) |
|---|
| 62 | |
|---|
| 63 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
|---|
| 64 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o "$$pwd/svxeditrc.o" svxedit.rc |
|---|
| 65 | |
|---|
| 66 | svxedit.ico: ../lib/icons/svxedit.ico |
|---|
| 67 | cp ../lib/icons/svxedit.ico . |
|---|
| 68 | |
|---|
| 69 | editwrap_LDADD = svxeditrc.o |
|---|
| 70 | |
|---|
| 71 | # FIXME: use path on WXCONFIG to get --include-dir? |
|---|
| 72 | avenrc.o: $(srcdir)/aven.rc aven.ico |
|---|
| 73 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -o "$$pwd/avenrc.o" aven.rc |
|---|
| 74 | |
|---|
| 75 | aven.ico: ../lib/icons/aven.ico |
|---|
| 76 | cp ../lib/icons/aven.ico . |
|---|
| 77 | |
|---|
| 78 | CLEANFILES = aven.ico svxedit.ico |
|---|
| 79 | else |
|---|
| 80 | aven_LDADD = $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS) |
|---|
| 81 | endif |
|---|
| 82 | |
|---|
| 83 | if MACOSX |
|---|
| 84 | # Aven must always be built into an application bundle to work correctly. |
|---|
| 85 | aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN -DMACOSX_BUNDLE |
|---|
| 86 | aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) -DMACOSX_BUNDLE |
|---|
| 87 | aven_LDFLAGS = $(WX_LDFLAGS) -framework OpenGL |
|---|
| 88 | else |
|---|
| 89 | aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN |
|---|
| 90 | aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) |
|---|
| 91 | aven_LDFLAGS = $(WX_LDFLAGS) |
|---|
| 92 | endif |
|---|
| 93 | |
|---|
| 94 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
|---|
| 95 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
|---|
| 96 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
|---|
| 97 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
|---|
| 98 | |
|---|
| 99 | cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c |
|---|
| 100 | |
|---|
| 101 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
|---|
| 102 | #imgtest_SOURCES = imgtest.c imgalone.c |
|---|
| 103 | |
|---|
| 104 | # this doesn't work if compiler doesn't support -c and -o, or with |
|---|
| 105 | # deANSIfication |
|---|
| 106 | # Use imgalone.c containing '#define STANDALONE/#include "img.c"'? |
|---|
| 107 | #imgalone.o: img.c |
|---|
| 108 | # $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c |
|---|
| 109 | |
|---|
| 110 | EXTRA_DIST = \ |
|---|
| 111 | aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov |
|---|
| 112 | |
|---|
| 113 | BUILT_SOURCES = z_getopt.c avenpal.h |
|---|
| 114 | |
|---|
| 115 | z_getopt.c: getopt.c gettexttomsg.pl |
|---|
| 116 | ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
|---|
| 117 | |
|---|
| 118 | avenpal.h: $(srcdir)/gradient.pov |
|---|
| 119 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
|---|
| 120 | |
|---|
| 121 | MAINTAINERCLEANFILES =\ |
|---|
| 122 | $(BUILT_SOURCES) |
|---|