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