[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 | |
---|
[da4ddfe] | 9 | noinst_HEADERS = cavern.h commands.h cmdline.h datain.h debug.h filelist.h\ |
---|
| 10 | filename.h getopt.h hash.h img.h ini.h listpos.h matrix.h message.h namecmp.h\ |
---|
[a20d9b9] | 11 | netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\ |
---|
[168df28] | 12 | readval.h str.h useful.h validate.h whichos.h\ |
---|
| 13 | prbitmap.h prcore.h prio.h new3dout.h 3ddefs.h \ |
---|
[da4ddfe] | 14 | armrot.h caverot.h cvrotgfx.h cvrotimg.h dosrot.h labels.h rotplot.h xrot.h\ |
---|
| 15 | xcvrtbut.h\ |
---|
| 16 | aboutdlg.h aven.h avenpal.h gfxcore.h mainfrm.h matrix4.h quaternion.h\ |
---|
| 17 | vector3.h wx.h aventypes.h aventreectrl.h export.h printwx.h avenprcore.h |
---|
[076cb4e] | 18 | |
---|
[fe282c2] | 19 | # GCC 2.95 frequently dies on gfxcore.cc with an internal error, so if the |
---|
| 20 | # compile fails, rerun it with -O instead of -O2 - FIXME this probably |
---|
| 21 | # assumes things about automake internals... |
---|
[64511c0] | 22 | # Argh - the Apple's cc for MacOS X (based on GCC 2.95) won't compile |
---|
| 23 | # gfxcore.cc with *any* level of optimisation... |
---|
| 24 | h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) |
---|
| 25 | t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc |
---|
| 26 | |
---|
[fe282c2] | 27 | aven-gfxcore.o: gfxcore.cc |
---|
| 28 | source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \ |
---|
[64511c0] | 29 | depfile='$(DEPDIR)/aven-gfxcore.Po' \ |
---|
| 30 | tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \ |
---|
[fe282c2] | 31 | $(CXXDEPMODE) $(depcomp) \ |
---|
[64511c0] | 32 | $h $(aven_CXXFLAGS) $(CXXFLAGS) $t \ |
---|
| 33 | || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2/-O/g'` $t \ |
---|
| 34 | || $h `echo $(aven_CXXFLAGS) $(CXXFLAGS)|sed 's/-O2*//g'` $t |
---|
[09d50cc] | 35 | |
---|
[43283b9] | 36 | LDADD = $(LIBOBJS) |
---|
[1c59cbb] | 37 | |
---|
[72af530] | 38 | INCLUDES = -DIMG_HOSTED |
---|
| 39 | |
---|
[076cb4e] | 40 | PRINT = printdm printps printpcl printhpgl |
---|
| 41 | |
---|
[7011db8] | 42 | # printxbm and dump3d are test programs |
---|
[43283b9] | 43 | EXTRA_PROGRAMS =\ |
---|
| 44 | caverot xcaverot\ |
---|
| 45 | printwin aven dump3d printxbm editwrap |
---|
[7011db8] | 46 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
---|
[4b4bd47] | 47 | bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \ |
---|
[43283b9] | 48 | 3dtopos $(CAVEROT) $(AVEN) $(WINPROGS) $(TESTPROGS) |
---|
[750a2dd] | 49 | bin_SCRIPTS = svxedit |
---|
[076cb4e] | 50 | |
---|
[a580dc1] | 51 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
[608e8b1] | 52 | |
---|
| 53 | cavern_SOURCES = cavern.c listpos.c commands.c datain.c netskel.c network.c \ |
---|
| 54 | readval.c str.c matrix.c img.c netbits.c useful.c validate.c netartic.c \ |
---|
| 55 | new3dout.c $(COMMONSRC) |
---|
[076cb4e] | 56 | |
---|
[93c3f97] | 57 | aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \ |
---|
[8009746] | 58 | gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \ |
---|
[d8a725c] | 59 | useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \ |
---|
[da4ddfe] | 60 | avenprcore.cc printwx.cc ini.c hash.c |
---|
[1a5c545] | 61 | |
---|
[7011db8] | 62 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
---|
| 63 | |
---|
[696066c] | 64 | editwrap_SOURCES = editwrap.c |
---|
| 65 | editwrap_LDFLAGS = -mwindows |
---|
| 66 | |
---|
[af1b2c0] | 67 | if WIN32 |
---|
[43283b9] | 68 | aven_LDADD = avenrc.o $(LIBOBJS) $(WX_LIBS) |
---|
[416d6ef] | 69 | |
---|
[7e7f307] | 70 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
---|
[1f7e983] | 71 | pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/svxeditrc.o" svxedit.rc |
---|
[13491a4] | 72 | |
---|
[7e7f307] | 73 | svxedit.ico: ../lib/icons/svxedit.ico |
---|
| 74 | cp ../lib/icons/svxedit.ico . |
---|
| 75 | |
---|
[13491a4] | 76 | editwrap_LDADD = svxeditrc.o |
---|
| 77 | |
---|
[7e7f307] | 78 | avenrc.o: $(srcdir)/aven.rc aven.ico |
---|
[1f7e983] | 79 | pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/avenrc.o" aven.rc |
---|
[7e7f307] | 80 | |
---|
| 81 | aven.ico: ../lib/icons/aven.ico |
---|
| 82 | cp ../lib/icons/aven.ico . |
---|
| 83 | |
---|
| 84 | CLEANFILES = aven.ico svxedit.ico |
---|
[af1b2c0] | 85 | else |
---|
[43283b9] | 86 | aven_LDADD = $(LIBOBJS) $(WX_LIBS) |
---|
[af1b2c0] | 87 | endif |
---|
| 88 | |
---|
[fad11a6] | 89 | # If we're building aven on MacOS X, we need to bind resources to aven after |
---|
| 90 | # we build it. Use aven-rez as a timestamp file to track whether we've |
---|
| 91 | # bound resources. |
---|
[8262132] | 92 | # The MacOS X install program doesn't copy the resource fork (clever eh?) so |
---|
| 93 | # we reapply the resources after installing too... |
---|
[fad11a6] | 94 | if AVEN |
---|
[7de388f] | 95 | if MACOSX |
---|
[fad11a6] | 96 | AVEN_REZ = aven-rez |
---|
[7de388f] | 97 | |
---|
| 98 | aven-rez: aven |
---|
[43283b9] | 99 | `$(WXCONFIG) --rezflags` aven |
---|
[7de388f] | 100 | touch aven-rez |
---|
[8262132] | 101 | |
---|
| 102 | install-exec-hook: |
---|
[43283b9] | 103 | `$(WXCONFIG) --rezflags` $(bindir)/aven |
---|
[fad11a6] | 104 | else !MACOSX |
---|
| 105 | AVEN_REZ = |
---|
[6a9ea5a] | 106 | |
---|
[43283b9] | 107 | # We need an empty target as automake will try to make it because it's in the |
---|
| 108 | # other branch. |
---|
[6a9ea5a] | 109 | install-exec-hook: |
---|
| 110 | |
---|
[fad11a6] | 111 | endif !MACOSX |
---|
| 112 | else !AVEN |
---|
| 113 | AVEN_REZ = |
---|
[6a9ea5a] | 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 | |
---|
[fad11a6] | 119 | endif !AVEN |
---|
| 120 | |
---|
| 121 | noinst_SCRIPTS = $(AVEN_REZ) |
---|
| 122 | MOSTLYCLEANFILES = $(AVEN_REZ) |
---|
[7de388f] | 123 | |
---|
[43283b9] | 124 | aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN |
---|
| 125 | aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) |
---|
| 126 | aven_LDFLAGS = $(WX_LDFLAGS) |
---|
[af1b2c0] | 127 | |
---|
[c34796a] | 128 | PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC) |
---|
[09d50cc] | 129 | |
---|
[c34796a] | 130 | printps_SOURCES = printps.c $(PRSRC) |
---|
| 131 | printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c |
---|
| 132 | printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c |
---|
| 133 | printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c |
---|
| 134 | printhpgl_SOURCES = prhpgl.c $(PRSRC) |
---|
[55b7334] | 135 | printwin_SOURCES = printwin.c $(PRSRC) |
---|
[761c5f9] | 136 | printwin_LDFLAGS = -mconsole |
---|
| 137 | printwin_LDADD = -lgdi32 -lcomdlg32 |
---|
[076cb4e] | 138 | |
---|
[608e8b1] | 139 | ROTSRC = cvrotimg.c img.c useful.c $(COMMONSRC) |
---|
[076cb4e] | 140 | |
---|
[d227ee5] | 141 | caverot_SOURCES = caverot.c $(ROTSRC) rotplot.c labels.c cvrotgfx.c |
---|
[076cb4e] | 142 | EXTRA_caverot_SOURCES = dosrot.c |
---|
[1c59cbb] | 143 | caverot_LDADD = @LIBOBJS@ @CROBJX@ @CRLIB@ |
---|
[076cb4e] | 144 | caverot_DEPENDENCIES = @CROBJX@ |
---|
| 145 | |
---|
[9bf74cf2] | 146 | xcaverot_SOURCES = xcaverot.c xcvrtbut.c $(ROTSRC) |
---|
[a4140e9] | 147 | xcaverot_CFLAGS = @X_CFLAGS@ -DXCAVEROT |
---|
[1c59cbb] | 148 | xcaverot_LDADD = @LIBOBJS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ |
---|
[076cb4e] | 149 | |
---|
[693388e] | 150 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
---|
[d06141c] | 151 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
[a20d9b9] | 152 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
---|
[693388e] | 153 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
---|
[076cb4e] | 154 | |
---|
[80e25c3] | 155 | cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c |
---|
[076cb4e] | 156 | |
---|
[b5782dc] | 157 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
---|
| 158 | #imgtest_SOURCES = imgtest.c imgalone.c |
---|
| 159 | |
---|
[076cb4e] | 160 | # this doesn't work if compiler doesn't support -c and -o, or with |
---|
| 161 | # deANSIfication |
---|
| 162 | # Use imgalone.c containing '#define STANDALONE/#include "img.c"'? |
---|
| 163 | #imgalone.o: img.c |
---|
| 164 | # $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c |
---|
| 165 | |
---|
[f533b37] | 166 | noinst_DATA = borlandc/makefile riscos/makefile |
---|
[09d50cc] | 167 | |
---|
[da4ddfe] | 168 | EXTRA_DIST = \ |
---|
| 169 | miniam.pl borlandc/makefile borlandc/config.h borlandc/config.h.in\ |
---|
[543d202] | 170 | riscos/makefile riscos/config.h riscos/config.h.in riscos/armrot.s\ |
---|
[6120efa] | 171 | riscos/stdh/regnames riscos/stdh/swinames msvc/config.h msvc/config.h.in\ |
---|
[bf7deb2] | 172 | aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert |
---|
[a580dc1] | 173 | |
---|
[30e3301] | 174 | BUILT_SOURCES = z_getopt.c avenpal.h |
---|
[a580dc1] | 175 | |
---|
[c40038a] | 176 | z_getopt.c: getopt.c gettexttomsg.pl |
---|
[bf7deb2] | 177 | $(srcdir)/gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
---|
[f533b37] | 178 | |
---|
[bf7deb2] | 179 | avenpal.h: $(srcdir)/gradient.pov gdtconvert |
---|
[30e3301] | 180 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
[5e2710c] | 181 | |
---|
[da4ddfe] | 182 | MAINTAINERCLEANFILES =\ |
---|
| 183 | borlandc/makefile riscos/makefile\ |
---|
| 184 | $(BUILT_SOURCES) |
---|
[393ce25] | 185 | |
---|
[501ee10] | 186 | borlandc/makefile: $(srcdir)/Makefile.am miniam.pl |
---|
| 187 | $(srcdir)/miniam.pl borlandc < $(srcdir)/Makefile.am > borlandc/makefile |
---|
[f533b37] | 188 | |
---|
[501ee10] | 189 | riscos/makefile: $(srcdir)/Makefile.am miniam.pl |
---|
[f981d25] | 190 | $(srcdir)/miniam.pl riscos < $(srcdir)/Makefile.am > riscos/tmp-makefile && mv riscos/tmp-makefile riscos/makefile |
---|