source: git/src/Makefile.am @ 983fecb

RELEASE/1.0
Last change on this file since 983fecb was 983fecb, checked in by Olly Betts <olly@…>, 13 years ago

Backport change from 1.2.0:
src/Makefile.am: Remove FIXME which has already been resolved.

git-svn-id: file:///home/survex-svn/survex/branches/1.0@3723 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 6.5 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3check-local dist-hook:
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
9noinst_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\
11 netartic.h netbits.h netskel.h network.h osalloc.h osdepend.h ostypes.h out.h\
12 readval.h str.h useful.h validate.h whichos.h\
13 prbitmap.h prcore.h prio.h new3dout.h 3ddefs.h \
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
18
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...
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...
24h = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS)
25t = -c -o aven-gfxcore.o `test -f gfxcore.cc || echo '$(srcdir)/'`gfxcore.cc
26
27aven-gfxcore.o: gfxcore.cc
28        source='gfxcore.cc' object='aven-gfxcore.o' libtool=no \
29        depfile='$(DEPDIR)/aven-gfxcore.Po' \
30        tmpdepfile='$(DEPDIR)/aven-gfxcore.TPo' \
31        $(CXXDEPMODE) $(depcomp) \
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
35
36LDADD = $(LIBOBJS)
37
38INCLUDES = -DIMG_HOSTED
39
40PRINT = printdm printps printpcl printhpgl
41
42# printxbm and dump3d are test programs
43EXTRA_PROGRAMS =\
44        caverot xcaverot\
45        printwin aven dump3d printxbm editwrap
46# FIXME: base_progs in top level Makefile.am needs updating if this is
47bin_PROGRAMS = cavern $(PRINT) diffpos extend cad3d sorterr \
48 3dtopos $(CAVEROT) $(AVEN) $(WINPROGS) $(TESTPROGS)
49bin_SCRIPTS = svxedit
50
51COMMONSRC = cmdline.c message.c filename.c osdepend.c z_getopt.c getopt1.c
52
53cavern_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)
56
57aven_SOURCES = aven.cc img.c message.c filename.c osdepend.c \
58 gfxcore.cc mainfrm.cc matrix4.cc quaternion.cc vector3.cc aboutdlg.cc \
59 useful.c cmdline.c z_getopt.c getopt1.c namecmp.c aventreectrl.cc export.cc \
60 avenprcore.cc printwx.cc ini.c hash.c
61
62dump3d_SOURCES = dump3d.c img.c useful.c $(COMMONSRC)
63
64editwrap_SOURCES = editwrap.c
65editwrap_LDFLAGS = -mwindows
66
67if WIN32
68aven_LDADD = avenrc.o $(LIBOBJS) $(WX_LIBS)
69
70svxeditrc.o: $(srcdir)/svxedit.rc svxedit.ico
71        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/svxeditrc.o" svxedit.rc
72
73svxedit.ico: ../lib/icons/svxedit.ico
74        cp ../lib/icons/svxedit.ico .
75
76editwrap_LDADD = svxeditrc.o
77
78avenrc.o: $(srcdir)/aven.rc aven.ico
79        pwd=`pwd` && cd $(srcdir) && `$(WX_CONFIG) --rescomp` -o "$$pwd/avenrc.o" aven.rc
80
81aven.ico: ../lib/icons/aven.ico
82        cp ../lib/icons/aven.ico .
83
84CLEANFILES = aven.ico svxedit.ico
85else
86aven_LDADD = $(LIBOBJS) $(WX_LIBS)
87endif
88
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.
92# The MacOS X install program doesn't copy the resource fork (clever eh?) so
93# we reapply the resources after installing too...
94if AVEN
95if MACOSX
96AVEN_REZ = aven-rez
97
98aven-rez: aven
99        `$(WXCONFIG) --rezflags` aven
100        touch aven-rez
101
102install-exec-hook:
103        `$(WXCONFIG) --rezflags` $(bindir)/aven
104else !MACOSX
105AVEN_REZ =
106
107# We need an empty target as automake will try to make it because it's in the
108# other branch.
109install-exec-hook:
110
111endif !MACOSX
112else !AVEN
113AVEN_REZ =
114
115# need empty target as automake will try to make it because it's in the other
116# branch
117install-exec-hook:
118
119endif !AVEN
120
121noinst_SCRIPTS = $(AVEN_REZ)
122MOSTLYCLEANFILES = $(AVEN_REZ)
123
124aven_CFLAGS = $(WX_CFLAGS) $(AM_CFLAGS) -DAVEN
125aven_CXXFLAGS = $(WX_CXXFLAGS) $(AM_CXXFLAGS)
126aven_LDFLAGS = $(WX_LDFLAGS)
127
128PRSRC = prcore.c prio.c useful.c img.c ini.c hash.c $(COMMONSRC)
129
130printps_SOURCES = printps.c $(PRSRC)
131printdm_SOURCES = printdm.c $(PRSRC) prbitmap.c
132printpcl_SOURCES = printpcl.c $(PRSRC) prbitmap.c
133printxbm_SOURCES = printxbm.c $(PRSRC) prbitmap.c
134printhpgl_SOURCES = prhpgl.c $(PRSRC)
135printwin_SOURCES = printwin.c $(PRSRC)
136printwin_LDFLAGS = -mconsole
137printwin_LDADD = -lgdi32 -lcomdlg32
138
139ROTSRC = cvrotimg.c img.c useful.c $(COMMONSRC)
140
141caverot_SOURCES = caverot.c $(ROTSRC) rotplot.c labels.c cvrotgfx.c
142EXTRA_caverot_SOURCES = dosrot.c
143caverot_LDADD = @LIBOBJS@ @CROBJX@ @CRLIB@
144caverot_DEPENDENCIES = @CROBJX@
145
146xcaverot_SOURCES = xcaverot.c xcvrtbut.c $(ROTSRC)
147xcaverot_CFLAGS = @X_CFLAGS@ -DXCAVEROT
148xcaverot_LDADD = @LIBOBJS@ @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@
149
150diffpos_SOURCES = diffpos.c namecmp.c img.c useful.c hash.c $(COMMONSRC)
151sorterr_SOURCES = sorterr.c $(COMMONSRC)
1523dtopos_SOURCES = 3dtopos.c namecmp.c img.c useful.c $(COMMONSRC)
153extend_SOURCES = extend.c $(COMMONSRC) img.c useful.c hash.c
154
155cad3d_SOURCES = cad3d.c $(COMMONSRC) useful.c img.c hash.c
156
157#testerr_SOURCES = testerr.c message.c filename.c useful.c osdepend.c
158#imgtest_SOURCES = imgtest.c imgalone.c
159
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
166noinst_DATA = borlandc/makefile riscos/makefile
167
168EXTRA_DIST = \
169 miniam.pl borlandc/makefile borlandc/config.h borlandc/config.h.in\
170 riscos/makefile riscos/config.h riscos/config.h.in riscos/armrot.s\
171 riscos/stdh/regnames riscos/stdh/swinames msvc/config.h msvc/config.h.in\
172 aven.rc svxedit.rc getopt.c gettexttomsg.pl gradient.pov gdtconvert
173
174BUILT_SOURCES = z_getopt.c avenpal.h
175
176z_getopt.c: getopt.c gettexttomsg.pl
177        $(srcdir)/gettexttomsg.pl `test -f getopt.c || echo '$(srcdir)/'`getopt.c > z_getopt.c~ && mv z_getopt.c~ z_getopt.c
178
179avenpal.h: $(srcdir)/gradient.pov gdtconvert
180        $(srcdir)/gdtconvert < $(srcdir)/gradient.pov > tmp-avenpal.h && mv tmp-avenpal.h avenpal.h
181
182MAINTAINERCLEANFILES =\
183 borlandc/makefile riscos/makefile\
184 $(BUILT_SOURCES)
185
186borlandc/makefile: $(srcdir)/Makefile.am miniam.pl
187        $(srcdir)/miniam.pl borlandc < $(srcdir)/Makefile.am > borlandc/makefile
188
189riscos/makefile: $(srcdir)/Makefile.am miniam.pl
190        $(srcdir)/miniam.pl riscos < $(srcdir)/Makefile.am > riscos/tmp-makefile && mv riscos/tmp-makefile riscos/makefile
Note: See TracBrowser for help on using the repository browser.