Debian Codegraph @

wmake/makefile

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #####################################################################
2 #### Main makefile for Acedb, contig tools and Image
3 #####################################################################
4
5 # $Id: makefile,v 1.123 2007/01/17 09:40:39 edgrif Exp $
6
7
8 # don't change this, using other shells can lead to portability problems.
9 SHELL = /bin/sh
10
11
12
13 #####################################################################
14 #### ACEDB programs
15
16
17 # Make sure this is ALWAYS the first target in this makefile, the overnight and release
18 # build systems all rely on this.
19 all : libs ace other tools
20
21 #all_static : clean gnulibs libs ace other tools
22
23
24 # This target makes sure that the time stamp reported with the "-version" flag
25 # for the executables gets changed just once per make. This means that all
26 # executables produced in a single make will have the same timestamp. The
27 # timestamp code is in wnq/aceversion.c which gets archived into libfree.a,
28 # which is itself included almost all executables.
29 #
30 # The build directory is also stored in aceversion.c so we know where an
31 # executable was built.
32 #
33 VERSION_TIMESTAMP_FILE = version_timestamp_file
34 version_timestamp:
35 @chmod u+w ./wnq/aceversion.c
36 @./wtools/aceSetReleaseDir ./wnq "`pwd`/bin.$(ACEDB_MACHINE)"
37 @chmod u-w ./wnq/aceversion.c
38 @touch bin.$(ACEDB_MACHINE)/$(VERSION_TIMESTAMP_FILE)
39
40
41 # Sub categories of code, please add new stuff to one of these groups if possible
42 #
43 libs : libfree.a libtsfree.a libgraph.a libgex.a libmd5.a libgd.a libacecl.a libace.a
44
45 ACE_BIN = xace xremote tace giface taql \
46 saceserver sgifaceserver saceclient sxaceclient
47 ace : $(ACE_BIN)
48
49 ACEMBLY_BIN = makeSCF xacembly tacembly gifacemblyserver
50 acembly : libstaden.a $(ACEMBLY_BIN)
51
52 OTHER_BIN = blixem blixelect jade2ace efetch \
53 gnbk gnbkclient genefeatures
54 other : $(OTHER_BIN)
55
56 TOOLS_BIN = makeUserPasswd acediff acediffsorted pmapace diskdump diskfix metacheck homonym tagcount
57 tools : $(TOOLS_BIN)
58
59 INSTALL_BIN = $(ACE_BIN) $(ACEMBLY_BIN) $(OTHER_BIN) $(TOOLS_BIN)
60
61 test : xtest coltest giftest boxtest md5test acelibtest
62
63 ace5 : tace5 xace5 xacembly5 tacembly5
64
65 jade : jadeserver jade2sybase
66
67 ctf : scf2ctf ctf2scf
68
69 windows: WinDist WinDotBlix
70
71 gnulibs: libraries
72
73
74 # this is a new version of the below target, I'm attempting to clean up
75 # the acedb build because we have lots of defunct targets/duplication etc.
76 # Note that each line here is a copy of the above relevant lines _in order_,
77 # now I've tidied this up please try to keep it like this.
78 #
79 libfree.a libtsfree.a libgraph.a libgex.a libmd5.a libgd.a libacecl.a libace.a libaccl.a \
80 taceclient accmd saccmd acctest acstest \
81 xace xremote tace giface taql \
82 aceserver gifaceserver aceclient xaceclient \
83 saceserver sgifaceserver saceclient sxaceclient sace_build \
84 libstaden.a makeSCF xacembly tacembly gifacemblyserver \
85 blixem blixelect jade2ace efetch gnbk gnbkclient \
86 makeUserPasswd acediff acediffsorted pmapace diskdump diskfix metacheck homonym tagcount \
87 xtest coltest giftest boxtest md5test acelibtest \
88 tace5 xace5 xacembly5 tacembly5 \
89 jadeserver jade2sybase genefeatures \
90 scf2ctf ctf2scf \
91 WinDist WinDotBlix \
92 libraries xacez\
93 clean dist bindistclean : bin-dir version_timestamp
94 @echo 'making' $@ 'for $(ACEDB_MACHINE)'
95 @cd bin.$(ACEDB_MACHINE) ; \
96 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
97 cp ../wmake/truemake ./makefile ; \
98 chmod u+w ./makefile ./deffile; touch ./makefile ./deffile; \
99 export VERSION_TIMESTAMP_FILE=$(VERSION_TIMESTAMP_FILE) ; $(MAKE) $@
100
101 # Really this should be merged with the above, all that's different is the message...
102 libfree_clean libgraph_clean libace_clean libxace_clean \
103 xace_clean tace_clean \
104 xaceclient_clean \
105 aceclient_clean aceserver_clean \
106 sace_clean \
107 xacembly_clean tacembly_clean \
108 gifacemblyserver_clean : bin-dir
109 @echo "removing `echo $@ | cut -d_ -f1` .o files for $(ACEDB_MACHINE)"
110 @cd bin.$(ACEDB_MACHINE) ; \
111 cp ../wmake/truemake ./makefile ; \
112 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
113 chmod u+w ./makefile ./deffile; touch ./makefile ./deffile; \
114 $(MAKE) $@
115
116
117 #####################################################################
118 # to install binaries,subdirectories in $ACEDB/bin
119 INSTALL_DIRS = wdoc wgf wquery wscripts wspec wtools
120
121
122 install :
123 if [ ! -d $(ACEDB)/bin ] ; then \
124 mkdir $(ACEDB)/bin; \
125 fi
126 for target in $(INSTALL_DIRS) ; do \
127 echo 'installing' $$target 'for $(ACEDB_MACHINE)' ; \
128 cp -r $$target $(ACEDB)/bin ; \
129 done
130 @cd bin.$(ACEDB_MACHINE) ; \
131 $(MAKE) "INSTALL_BIN=$(INSTALL_BIN)" install_bin ; \
132
133
134 #####################################################################
135 #### CONTIG programs
136
137 contig_all:
138 @echo ""
139 @echo " Compiling ContigC programs"
140 @echo "-------------------------------------------------"
141 $(MAKE) contig pmap fphinx fpabi openmapdb mapsub extend \
142 getascdb lastclones contasp logdb rancl randb \
143 model anytoany checkdb rmvec
144 @echo ""
145 @echo "These binaries are available :"
146 @echo ""
147 @ls -l bin.$(ACEDB_MACHINE) | grep '^-..x'
148 @echo ""
149
150 ## graphical contig programs (build libfree and libgraph beforehand)
151 contig pmap : bin-dir
152 @echo 'making' $@ 'for $(ACEDB_MACHINE)'
153 @cd bin.$(ACEDB_MACHINE) ; \
154 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
155 cp ../wmake/truemake ./makefile ; \
156 chmod u+w makefile deffile; touch makefile deffile; \
157 $(MAKE) libfree.a libgraph.a libgraphXaw.a libgd.a ; \
158 cp ../wmake/contigmake ./makefile ; \
159 chmod u+w makefile; touch makefile; \
160 $(MAKE) $@
161
162 ## text-only contig support programs
163 fphinx fpabi contig_dumpace openmapdb mapsub \
164 extend getascdb lastclones contasp \
165 logdb rancl randb model anytoany \
166 checkdb rmvec : bin-dir
167 @echo 'making' $@ 'for $(ACEDB_MACHINE)'
168 @cd bin.$(ACEDB_MACHINE) ; \
169 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
170 cp ../wmake/contigmake ./makefile ; \
171 chmod u+w makefile deffile; touch makefile deffile; \
172 $(MAKE) $@
173
174 contig_clean: bin-dir
175 @echo 'removing contigc .o files for $(ACEDB_MACHINE)'
176 @cd bin.$(ACEDB_MACHINE) ; \
177 cp ../wmake/contigmake ./makefile ; \
178 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
179 chmod u+w makefile deffile; touch makefile deffile; \
180 $(MAKE) $@
181
182
183
184 #####################################################################
185 #### IMAGE programs
186
187 image:
188 @echo ""
189 @echo " Compiling Image 3 fingerprint image analysis"
190 @echo "-------------------------------------------------"
191 $(MAKE) im3 amStep2 amStep3 amStep4 amStep5 im3conv image_configure banddiff
192 @echo ""
193 @echo "These binaries are available :"
194 @echo ""
195 @ls -l bin.$(ACEDB_MACHINE) | grep '^-..x'
196 @echo ""
197
198 ## graphical image apps (build libfree and libgraph beforehand)
199 im3 bstt : bin-dir
200 @echo 'making' $@ 'for $(ACEDB_MACHINE)' ; echo
201 @cd bin.$(ACEDB_MACHINE) ; \
202 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
203 cp ../wmake/truemake ./makefile ; \
204 chmod u+w makefile deffile; touch makefile deffile; \
205 $(MAKE) libfree.a libgraph.a libgex.a libgd.a ; \
206 cp ../wmake/im3make ./makefile ; \
207 chmod u+w makefile; touch makefile; \
208 $(MAKE) $@
209
210 ## automated analysis apps, written in C++
211 amStep2 amStep3 amStep4 amStep5 : bin-dir
212 @echo 'making' $@ 'for $(ACEDB_MACHINE)'
213 @cd bin.$(ACEDB_MACHINE) ; \
214 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
215 cp ../wmake/im3make ./makefile ; \
216 chmod u+w makefile deffile; touch makefile deffile; \
217 $(MAKE) $@
218
219 ## image utilities (build libfree.a beforehand)
220 im3conv banddiff: bin-dir
221 @echo 'making' $@ 'for $(ACEDB_MACHINE)'
222 @cd bin.$(ACEDB_MACHINE) ; \
223 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
224 cp ../wmake/truemake ./makefile ; \
225 chmod u+w makefile deffile; touch makefile deffile; \
226 $(MAKE) libfree.a ; \
227 cp ../wmake/im3make ./makefile ; \
228 chmod u+w makefile; touch makefile; \
229 $(MAKE) $@
230
231 ## configure utility - doesn't not require any libraries
232 image_configure: bin-dir
233 @cd bin.$(ACEDB_MACHINE) ; \
234 cp ../wmake/im3make ./makefile ; \
235 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
236 chmod u+w makefile deffile; touch makefile deffile; \
237 $(MAKE) $@
238
239 image_clean: bin-dir
240 @echo 'removing image .o files for $(ACEDB_MACHINE)'
241 @cd bin.$(ACEDB_MACHINE) ; \
242 cp ../wmake/im3make ./makefile ; \
243 cp ../wmake/$(ACEDB_MACHINE)_DEF ./deffile; \
244 chmod u+w makefile deffile; touch makefile deffile; \
245 $(MAKE) $@
246
247 im2: bin-dir
248 @echo 'making' $@ 'for $(ACEDB_MACHINE)' ; echo
249 @cd bin.$(ACEDB_MACHINE) ; \
250 cp ../im2src/makefile.image2 . ; \
251 chmod u+w makefile.image2 ; \
252 $(MAKE) -f makefile.image2 $@
253
254
255 #####################################################################
256 #### binary directory bin.$(ACEDB_MACHINE)
257 ####
258 #### Dependency used by all of the above targets to check that user
259 #### has set up the ACEDB_MACHINE environment variable correctly.
260 ####
261 bin-dir:
262 @if test $(ACEDB_MACHINE) ; then exit ; \
263 else \
264 echo 'To compile, please setenv ACEDB_MACHINE (now not set) to one of: ' ; \
265 cd wmake ; echo ; ls *DEF ; \
266 echo ' without the _DEF ending,' ; \
267 echo ' e.g. add in your .login file the line '; \
268 echo ' setenv ACEDB_MACHINE SUN' ; \
269 echo ' or some other machine name defined in the directory wmake.' ;\
270 echo ' Thank you' ; echo ; echo ; exit 1 ; fi
271 @if test -f wmake/$(ACEDB_MACHINE)_DEF ; then exit ; \
272 else echo 'To compile, please setenv ACEDB_MACHINE (now = $(ACEDB_MACHINE) ) to one of: ' ; \
273 cd wmake ; echo ; ls *DEF ; \
274 echo ' without the _DEF ending,' ; \
275 echo ' i.e. add in your .login file the line '; \
276 echo ' setenv ACEDB_MACHINE SUN' ; \
277 echo ' or some other machine name defined in the directory wmake.' ;\
278 echo ' Thank you' ; echo ; echo ; exit 1 ; fi
279 @if test -d bin.$(ACEDB_MACHINE) ; then exit ; \
280 else mkdir bin.$(ACEDB_MACHINE) ; fi
281
282 #####################################################################
283 #### end of makefile
284 #####################################################################