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 | prbitmap.h prcore.h prio.h readval.h str.h useful.h validate.h whichos.h\ |
---|
7 | fnt.h guicontrol.h gla.h moviemaker.h \ |
---|
8 | aboutdlg.h aven.h avenpal.h gfxcore.h mainfrm.h matrix4.h quaternion.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 | PRINT = printdm printps printpcl printhpgl |
---|
33 | |
---|
34 | # printxbm and dump3d are test programs |
---|
35 | EXTRA_PROGRAMS =\ |
---|
36 | printwin aven dump3d printxbm editwrap |
---|
37 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
---|
38 | bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \ |
---|
39 | 3dtopos aven $(WINPROGS) $(TESTPROGS) |
---|
40 | bin_SCRIPTS = svxedit |
---|
41 | |
---|
42 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
43 | |
---|
44 | cavern_SOURCES = cavern.c listpos.c commands.c datain.c netskel.c network.c \ |
---|
45 | readval.c str.c matrix.c img.c netbits.c useful.c validate.c netartic.c \ |
---|
46 | $(COMMONSRC) |
---|
47 | |
---|
48 | aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \ |
---|
49 | gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \ |
---|
50 | useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \ |
---|
51 | guicontrol.cc gla-gl.cc fnt.cc moviemaker.cc \ |
---|
52 | brotatemask.xbm brotate.xbm hand_mask.xbm handmask.xbm hand.xbm \ |
---|
53 | rotatemask.xbm rotate.xbm vrotatemask.xbm vrotate.xbm \ |
---|
54 | avenprcore.cc printwx.cc ini.c hash.c |
---|
55 | |
---|
56 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
---|
57 | |
---|
58 | editwrap_SOURCES = editwrap.c |
---|
59 | editwrap_LDFLAGS = -mwindows |
---|
60 | |
---|
61 | if WIN32 |
---|
62 | aven_LDADD = avenrc.o $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS) |
---|
63 | |
---|
64 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
---|
65 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o "$$pwd/svxeditrc.o" svxedit.rc |
---|
66 | |
---|
67 | svxedit.ico: ../lib/icons/svxedit.ico |
---|
68 | cp ../lib/icons/svxedit.ico . |
---|
69 | |
---|
70 | editwrap_LDADD = svxeditrc.o |
---|
71 | |
---|
72 | # FIXME: use path on WXCONFIG to get --include-dir? |
---|
73 | avenrc.o: $(srcdir)/aven.rc aven.ico |
---|
74 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres --include-dir /opt/wxmsw/include --include-dir /usr/i586-mingw32msvc/include -o "$$pwd/avenrc.o" aven.rc |
---|
75 | |
---|
76 | aven.ico: ../lib/icons/aven.ico |
---|
77 | cp ../lib/icons/aven.ico . |
---|
78 | |
---|
79 | CLEANFILES = aven.ico svxedit.ico |
---|
80 | else |
---|
81 | aven_LDADD = $(LIBOBJS) $(MOVIE_LIBS) $(WX_LIBS) |
---|
82 | endif |
---|
83 | |
---|
84 | # If we're building aven on MacOS X, we need to bind resources to aven after |
---|
85 | # we build it. Use aven-rez as a timestamp file to track whether we've |
---|
86 | # bound resources. |
---|
87 | # The MacOS X install program doesn't copy the resource fork (clever eh?) so |
---|
88 | # we reapply the resources after installing too... |
---|
89 | if MACOSX |
---|
90 | AVEN_REZ = aven-rez |
---|
91 | |
---|
92 | aven-rez: aven |
---|
93 | `$(WXCONFIG) --rezflags` aven |
---|
94 | touch aven-rez |
---|
95 | |
---|
96 | install-exec-hook: |
---|
97 | `$(WXCONFIG) --rezflags` $(bindir)/aven |
---|
98 | else !MACOSX |
---|
99 | AVEN_REZ = |
---|
100 | |
---|
101 | # We need an empty target as automake will try to make it because it's in the |
---|
102 | # other branch. |
---|
103 | install-exec-hook: |
---|
104 | |
---|
105 | endif !MACOSX |
---|
106 | |
---|
107 | noinst_SCRIPTS = $(AVEN_REZ) |
---|
108 | MOSTLYCLEANFILES = $(AVEN_REZ) |
---|
109 | |
---|
110 | aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN |
---|
111 | aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS) |
---|
112 | aven_LDFLAGS = $(WX_LDFLAGS) |
---|
113 | |
---|
114 | PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC) |
---|
115 | |
---|
116 | printps_SOURCES = printps.c $(PRSRC) |
---|
117 | printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c |
---|
118 | printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c |
---|
119 | printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c |
---|
120 | printhpgl_SOURCES = prhpgl.c $(PRSRC) |
---|
121 | printwin_SOURCES = printwin.c $(PRSRC) |
---|
122 | printwin_LDFLAGS = -mconsole |
---|
123 | printwin_LDADD = -lgdi32 -lcomdlg32 |
---|
124 | |
---|
125 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
---|
126 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
127 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
---|
128 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
---|
129 | |
---|
130 | cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c |
---|
131 | |
---|
132 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
---|
133 | #imgtest_SOURCES = imgtest.c imgalone.c |
---|
134 | |
---|
135 | # this doesn't work if compiler doesn't support -c and -o, or with |
---|
136 | # deANSIfication |
---|
137 | # Use imgalone.c containing '#define STANDALONE/#include "img.c"'? |
---|
138 | #imgalone.o: img.c |
---|
139 | # $(COMPILE) -DSTANDALONE -o imgalone.o -c img.c |
---|
140 | |
---|
141 | EXTRA_DIST = \ |
---|
142 | aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov |
---|
143 | |
---|
144 | BUILT_SOURCES = z_getopt.c avenpal.h |
---|
145 | |
---|
146 | z_getopt.c: getopt.c gettexttomsg.pl |
---|
147 | ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
---|
148 | |
---|
149 | avenpal.h: $(srcdir)/gradient.pov |
---|
150 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
151 | |
---|
152 | MAINTAINERCLEANFILES =\ |
---|
153 | $(BUILT_SOURCES) |
---|