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 | new3dout.h 3ddefs.h \ |
---|
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 |
---|
11 | |
---|
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... |
---|
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 | |
---|
20 | aven-gfxcore.o: gfxcore.cc |
---|
21 | source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \ |
---|
22 | depfile='$(DEPDIR)/aven-gfxcore.Po' \ |
---|
23 | tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \ |
---|
24 | $(CXXDEPMODE) $(depcomp) \ |
---|
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 |
---|
28 | |
---|
29 | LDADD = @LIBOBJS@ |
---|
30 | |
---|
31 | INCLUDES = -DIMG_HOSTED |
---|
32 | |
---|
33 | PRINT = printdm printps printpcl printhpgl |
---|
34 | |
---|
35 | # developer tools, testharnesses, etc |
---|
36 | TESTPROGS = @TESTPROGS@ |
---|
37 | |
---|
38 | # printxbm and dump3d are test programs |
---|
39 | EXTRA_PROGRAMS = printwin aven dump3d printxbm editwrap |
---|
40 | # FIXME: base_progs in top level Makefile.am needs updating if this is |
---|
41 | bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \ |
---|
42 | 3dtopos @AVEN@ @WINPROGS@ @TESTPROGS@ |
---|
43 | bin_SCRIPTS = svxedit |
---|
44 | |
---|
45 | COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c |
---|
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) |
---|
50 | |
---|
51 | aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \ |
---|
52 | gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \ |
---|
53 | useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \ |
---|
54 | guicontrol.cc gla-gl.cc fnt.cc moviemaker.cc \ |
---|
55 | avenprcore.cc printwx.cc ini.c hash.c |
---|
56 | |
---|
57 | dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC) |
---|
58 | |
---|
59 | editwrap_SOURCES = editwrap.c |
---|
60 | editwrap_LDFLAGS = -mwindows |
---|
61 | |
---|
62 | if WIN32 |
---|
63 | aven_LDADD = avenrc.o @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
64 | |
---|
65 | svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico |
---|
66 | pwd=`pwd` && cd $(srcdir) && i586-mingw32msvc-windres -o $$pwd/svxeditrc.o svxedit.rc |
---|
67 | |
---|
68 | svxedit.ico: ../lib/icons/svxedit.ico |
---|
69 | cp ../lib/icons/svxedit.ico . |
---|
70 | |
---|
71 | editwrap_LDADD = svxeditrc.o |
---|
72 | |
---|
73 | # FIXME: use path on WXCONFIG to get --include-dir? |
---|
74 | avenrc.o: $(srcdir)/aven.rc aven.ico |
---|
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 |
---|
76 | |
---|
77 | aven.ico: ../lib/icons/aven.ico |
---|
78 | cp ../lib/icons/aven.ico . |
---|
79 | |
---|
80 | CLEANFILES = aven.ico svxedit.ico |
---|
81 | else |
---|
82 | aven_LDADD = @LIBOBJS@ @WXGL_LIBS@ @MOVIE_LIBS@ |
---|
83 | endif |
---|
84 | |
---|
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 |
---|
91 | if MACOSX |
---|
92 | AVEN_REZ = aven-rez |
---|
93 | |
---|
94 | aven-rez: aven |
---|
95 | `@WXCONFIG@ --rezflags` aven |
---|
96 | touch aven-rez |
---|
97 | |
---|
98 | install-exec-hook: |
---|
99 | `@WXCONFIG@ --rezflags` $(bindir)/aven |
---|
100 | else !MACOSX |
---|
101 | AVEN_REZ = |
---|
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 | |
---|
107 | endif !MACOSX |
---|
108 | else !AVEN |
---|
109 | AVEN_REZ = |
---|
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 | |
---|
115 | endif !AVEN |
---|
116 | |
---|
117 | noinst_SCRIPTS = $(AVEN_REZ) |
---|
118 | MOSTLYCLEANFILES = $(AVEN_REZ) |
---|
119 | |
---|
120 | aven_CFLAGS = @WX_CFLAGS@ $(AM_CFLAGS) -DAVEN |
---|
121 | aven_CXXFLAGS = @WX_CXXFLAGS@ $(AM_CXXFLAGS) |
---|
122 | aven_LDFLAGS = @WX_LDFLAGS@ |
---|
123 | |
---|
124 | PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC) |
---|
125 | |
---|
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) |
---|
131 | printwin_SOURCES = printwin.c $(PRSRC) |
---|
132 | printwin_LDFLAGS = -mconsole |
---|
133 | printwin_LDADD = -lgdi32 -lcomdlg32 |
---|
134 | |
---|
135 | diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC) |
---|
136 | sorterr_SOURCES = sorterr.c $(COMMONSRC) |
---|
137 | 3dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC) |
---|
138 | extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c |
---|
139 | |
---|
140 | cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c |
---|
141 | |
---|
142 | #testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c |
---|
143 | #imgtest_SOURCES = imgtest.c imgalone.c |
---|
144 | |
---|
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 | |
---|
151 | EXTRA_DIST = \ |
---|
152 | aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov |
---|
153 | |
---|
154 | BUILT_SOURCES = z_getopt.c avenpal.h |
---|
155 | |
---|
156 | z_getopt.c: getopt.c gettexttomsg.pl |
---|
157 | ./gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c |
---|
158 | |
---|
159 | avenpal.h: $(srcdir)/gradient.pov |
---|
160 | $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h |
---|
161 | |
---|
162 | MAINTAINERCLEANFILES =\ |
---|
163 | $(BUILT_SOURCES) |
---|