| 1 |
#$Id: truemake,v 1.447 2007/01/17 09:39:58 edgrif Exp $ |
| 2 |
################################################################# |
| 3 |
############### acedb: R.Durbin and J.Thierry-Mieg ############## |
| 4 |
################################################################# |
| 5 |
# |
| 6 |
# ATTENTION: |
| 7 |
# If you are recompiling the distribution code on your own |
| 8 |
# machine, you should NOT edit the present file. All the machine |
| 9 |
# specific options should be given in your personal *_DEF file |
| 10 |
# in the same directory. |
| 11 |
# If you think you have to touch this file, contact the authors |
| 12 |
# [email protected], [email protected] |
| 13 |
# |
| 14 |
# If you add a display module, edit this file, not *_DEF |
| 15 |
# |
| 16 |
# |
| 17 |
# If you wish to specify one off compiler options such as |
| 18 |
# setting the debug flag (-g) or a preprocessor macro |
| 19 |
# value (-DMY_OWN_COMPILE_FLAG) then rather than editting |
| 20 |
# this file use the USEROPTS make macro like this: |
| 21 |
# |
| 22 |
# make USEROPTS='-g -DMY_OWN_COMPILE_FLAG -x -y' |
| 23 |
# |
| 24 |
# these will then be included in the flags used to compile |
| 25 |
# the .o files. |
| 26 |
# |
| 27 |
# |
| 28 |
################################################################# |
| 29 |
# |
| 30 |
# Before running the make command |
| 31 |
# setenv ACEDB_MACHINE to indicate one of the predefined |
| 32 |
# Machine dependant option files, or write your own. |
| 33 |
# These files are called $(ACEDB_SRC)/wmake/$(ACEDB_MACHINE)_DEF |
| 34 |
# For more detail about specifying these flags see the README in |
| 35 |
# this directory. |
| 36 |
# |
| 37 |
# They define at least 4 (and possibly many more) make macros: |
| 38 |
# |
| 39 |
# NAME, COMPILER, LINKER, LIBS, RANLIB_NEEDED, AR_OPTIONS, |
| 40 |
# LIBCC, LIBLDFLAGS, TEST, GTKVER |
| 41 |
# COMPILER sets the compiler and its specific flags (cc, gcc ...) |
| 42 |
# LIBCC is the compiler used to make glib, GTK, readline etc |
| 43 |
# LIBLDFLAGS options to use when linking the test programs which are |
| 44 |
# part of the configuration the 3rd party libraries. This needs to |
| 45 |
# reflect the linking of the main code |
| 46 |
# LINKER sets the linker and its specific flags (cc, gcc ...) |
| 47 |
# LIBS the OEM (e.g. gnu) and system libraries (gcc-gnulib -lm etc) |
| 48 |
# RANLIB_NEEDED should be set to false if ranlib is not needed, |
| 49 |
# it defaults to true for backward compatibility. |
| 50 |
# AR_OPTIONS defaults to rlu for backward compatibility. |
| 51 |
# TEST the test command, defaults to "test" |
| 52 |
# GTKVER - empty or unset to use GTK 1.2 |
| 53 |
# set to "gtk2 glib-2.0 gtk+-2.0" to use GTK2 |
| 54 |
# the "gtk2" controls the build system, "glib-2.0 gtk+-2.0" |
| 55 |
# are passed to pkg-config and may need to be updated to |
| 56 |
# select later versions. |
| 57 |
|
| 58 |
# NAME must be selected as follows |
| 59 |
# |
| 60 |
# |
| 61 |
### pick NAME from among this list. |
| 62 |
### NAME is used in the source code to conform to the |
| 63 |
### target machine. It is used mostly in wh/mystdlib.h, |
| 64 |
### wh/mydirent.h but also in a few awkward places, for example |
| 65 |
### wh/array.h redefines the stack Macros in a particular way to |
| 66 |
### please the xlc compiler of the IBM. |
| 67 |
### If you port to a new machine, please let us know. |
| 68 |
# |
| 69 |
# ALPHA Daily development platform using OSF1 V4.0 (1998) |
| 70 |
# SUN Tested for Sun Sparc 1, 2, 10 and on SUN3/80 (1997) |
| 71 |
# NEXT Tested on a several Next (1994) |
| 72 |
# SGI Used daily, but the sgi OS is very unsatble (1997) |
| 73 |
# ALLIANT Alliant multiprocessor at MRC-LMB. (1991) |
| 74 |
# |
| 75 |
# CONVEX Contributed by Jukka Ukkonen ([email protected]) |
| 76 |
# For make command to work |
| 77 |
# it does not help to |
| 78 |
# setenv ACEDB_MACHINE CONVEX |
| 79 |
# as adviced in the installation document. The |
| 80 |
# make command on Convex does not look in the |
| 81 |
# environment variables to fill in it's internal |
| 82 |
# variables when ACEDB_MACHINE is not defined as |
| 83 |
# a make's internal variable. To circumvent this |
| 84 |
# inconvenience do the make as follows |
| 85 |
# make ACEDB_MACHINE=CONVEX |
| 86 |
# and everything should work nice and easy. |
| 87 |
# |
| 88 |
# IBM IBM-risc 6000, |
| 89 |
# We sometime have difficulties to compile the graph package |
| 90 |
# with xlc -O2 |
| 91 |
# |
| 92 |
# LINUX IBM-PC 386 and compatible, running gcc and the freeware |
| 93 |
# LINUX operating system. This platform is extremely cheap |
| 94 |
# around 2000$ hardware + disk + sofware and remarkably fast |
| 95 |
# |
| 96 |
# We use either gnu-compiler gcc or the native cc compilers |
| 97 |
# This choice is made by the $(ACEDB_MACHINE)_DEF file. |
| 98 |
# |
| 99 |
# On Alliant our 2 steps make does not properly works, |
| 100 |
# so on those ACEDB_MACHINEs: |
| 101 |
# do the following by hand: |
| 102 |
# setenv ACEDB_MACHINE SGI or ALLIANT |
| 103 |
# mkdir database ; mkdir bin |
| 104 |
# cp wmake/truemake bin/makefile |
| 105 |
# cd bin ; make all |
| 106 |
# |
| 107 |
#### The following machine-dependent options are recognized |
| 108 |
#### by the code |
| 109 |
# |
| 110 |
# -DNO_LEFT_CASTING For compilers which refuse (int*)p++ syntax |
| 111 |
# |
| 112 |
################################################################# |
| 113 |
|
| 114 |
################################################################# |
| 115 |
################## Graphics System Libraries #################### |
| 116 |
################################################################# |
| 117 |
# The acedb-config script will |
| 118 |
# select the local copy of gtk-config here if we have it, otherwise |
| 119 |
# gtk-config should be in the path. |
| 120 |
# These are overridable by the _DEF file : |
| 121 |
|
| 122 |
XWIN_LIBS = `../w3rdparty/acedb-config $(GTKVER)` |
| 123 |
|
| 124 |
# These two need to be over-rideable for the windows build. |
| 125 |
# The order should be gex followed by graph since gex calls |
| 126 |
# graph routines but not vice versa. |
| 127 |
GRAPHXWIN_DEPEND = libgex.a libgraph.a libgd.a |
| 128 |
GRAPHXWIN_LIBS = -lgex -lgraph -lgd |
| 129 |
|
| 130 |
|
| 131 |
# On badly configured machines (e.g. Linux), you may redefine |
| 132 |
# these libraries in a more precise way in your |
| 133 |
# $(ACEDB_MACHINE)_DEF file |
| 134 |
|
| 135 |
################################################################# |
| 136 |
###################### Lex Libraries ############################ |
| 137 |
################################################################# |
| 138 |
# most versions of lex require you to use -ll |
| 139 |
# but not Linux - reset LEX_LIBS in $(ACEDB_MACHINE)_DEF file |
| 140 |
|
| 141 |
LEX_LIBS = -ll |
| 142 |
|
| 143 |
################################################################# |
| 144 |
################## Source code directory, ####################### |
| 145 |
################################################################# |
| 146 |
|
| 147 |
# The main include directory for public interface acedb headers. |
| 148 |
INCLUDE = wh |
| 149 |
|
| 150 |
# General tools, useful in any C program, growable arrays, stacks etc. |
| 151 |
LIBUTIL = w1 |
| 152 |
|
| 153 |
# Graphics library and backends for GTK, and drawing stack |
| 154 |
# interpreters for interactive windows, GIF-images and PostScript |
| 155 |
LIBGRAPH = w2 |
| 156 |
|
| 157 |
# Main source files of acedb applications |
| 158 |
APPMAIN = w3 |
| 159 |
|
| 160 |
# Acedb-kernel: session control etc |
| 161 |
ACELIBKERNEL = w4 |
| 162 |
|
| 163 |
# Acedb-kernel: database manager / object storage |
| 164 |
ACEDBKERNEL = w5 |
| 165 |
|
| 166 |
# Graphical ace manager: query, keyset display etc. |
| 167 |
XACEMGR = w6 |
| 168 |
|
| 169 |
# Biological data displays: gmaps, pmaps etc. |
| 170 |
MAPDISPLAYS = w7 |
| 171 |
|
| 172 |
# Non graphic applications |
| 173 |
W8 = w8 |
| 174 |
|
| 175 |
# Miscellaneous applications and display tools, dotter etc.. |
| 176 |
DISPLAYTOOLS = w9 |
| 177 |
|
| 178 |
# misc acetools, acediff etc. |
| 179 |
MISCTOOLS = wace |
| 180 |
|
| 181 |
# New code: bindex, acelib, table etc |
| 182 |
NEWCODE = wnq |
| 183 |
|
| 184 |
# zmap |
| 185 |
ZMAP = wzmap |
| 186 |
|
| 187 |
# New Ace Query language |
| 188 |
AQLMODULE = waql |
| 189 |
|
| 190 |
# Sockets based version of server |
| 191 |
ACESOCK = wsocket |
| 192 |
|
| 193 |
# code for acembly |
| 194 |
ACEMBLY = wabi |
| 195 |
|
| 196 |
# links between modules, system classes |
| 197 |
HOOKS = whooks |
| 198 |
|
| 199 |
# Jo's comparative mapping display tools, oxgrids etc. |
| 200 |
OXGRIDMODULE = wjo |
| 201 |
|
| 202 |
# GD - package for dynamic creation of gif image drawings |
| 203 |
LIBGD = wgd |
| 204 |
|
| 205 |
# MD5 - package for encryption using the MD5 algorithm. |
| 206 |
LIBMD5 = wmd5 |
| 207 |
|
| 208 |
############################################################## |
| 209 |
|
| 210 |
true = 1 |
| 211 |
false = 0 |
| 212 |
|
| 213 |
# defaults overridable in $(ACEDB_MACHINE)_DEF |
| 214 |
RANLIB_NEEDED = true |
| 215 |
AR_OPTIONS = rlu |
| 216 |
LEX = lex |
| 217 |
LEX_OPTIONS = |
| 218 |
YACC = yacc |
| 219 |
###YACC_OPTIONS = -dvt |
| 220 |
YACC_OPTIONS = |
| 221 |
TEST = test |
| 222 |
|
| 223 |
# defaults overridable in $(ACEDB_MACHINE)_DEF |
| 224 |
# e.g. different compiler when using purify |
| 225 |
CCC = g++ |
| 226 |
CCCLINK = g++ |
| 227 |
CCCFLAGS = -O2 -g3 -Wall |
| 228 |
|
| 229 |
ZMAPLDFLAGS = `pkg-config --libs libgnomecanvas-2.0` |
| 230 |
|
| 231 |
RPCGEN_FLAGS = -I -K -1 |
| 232 |
# -I -K -1 good for alpha |
| 233 |
# -b -I -K -1 good for linux, probably solaris ? |
| 234 |
|
| 235 |
# suppress auto SCCS extraction |
| 236 |
.SCCS_GET: |
| 237 |
|
| 238 |
################################################################# |
| 239 |
########## Machine dependent compiler modification ############## |
| 240 |
############# Are included from an external file ################ |
| 241 |
#### This is equivalent to, but more portable than $($(CC)) ##### |
| 242 |
### Edit these rules to adapt the makefile to a new machine ##### |
| 243 |
# Note that you can keep different DEF files for the same machine |
| 244 |
# setting various compiler options |
| 245 |
################################################################# |
| 246 |
include deffile |
| 247 |
|
| 248 |
################################################################# |
| 249 |
################################################################# |
| 250 |
# In principle you should not have to edit the rest of this file |
| 251 |
################################################################# |
| 252 |
################################################################# |
| 253 |
|
| 254 |
VERSION_OBJ = aceversion.o |
| 255 |
|
| 256 |
FREE_OBJS = freesubs.o freeout.o messubs.o memsubs.o arraysub.o \ |
| 257 |
liste.o filsubs.o msort.o \ |
| 258 |
heap.o timesubs.o bump.o randsubs.o call.o menu.o dict.o \ |
| 259 |
helpsubs.o texthelp.o utils.o vtxt.o acein.o aceout.o strsubs.o \ |
| 260 |
getopt.o getopt1.o chronoexe.o |
| 261 |
|
| 262 |
FREE_TS_OBJS = acein.o aceout.o \ |
| 263 |
bump.o dict.o liste.o menu.o \ |
| 264 |
texthelp.o msort.o \ |
| 265 |
arraysub.o call.o heap.o \ |
| 266 |
memsubs.o randsubs.o timesubs.o utils.o vtxt.o strsubs.o \ |
| 267 |
getopt.o getopt1.o |
| 268 |
|
| 269 |
##################################################################### |
| 270 |
# Graph library objects. |
| 271 |
# |
| 272 |
|
| 273 |
# Graph layer: |
| 274 |
# |
| 275 |
GRAPH_HDRS = ../$(INCLUDE)/graph.h |
| 276 |
GRAPH_PRIV_HDRS = ../$(LIBGRAPH)/graph_.h ../$(LIBGRAPH)/graphcolour.h |
| 277 |
GRAPH_OBJS = graphcon.o graphsub.o graphps.o graphgdi.o graphselect.o \ |
| 278 |
graphascii.o graphprint.o filquery.o graphgif.o \ |
| 279 |
colcontrol.o viewedit.o chronodisp.o graphcolour.o \ |
| 280 |
graphAcedbInterface.o graphremote.o graphmesglist.o |
| 281 |
|
| 282 |
# GD image drawing code, used across graph package. |
| 283 |
# |
| 284 |
LIBGD_OBJS = libgd.o gdfont6x9.o gdfont8x13.o gdfont8x13bold.o |
| 285 |
|
| 286 |
# Graph <-> GraphDev interface: |
| 287 |
# |
| 288 |
GRAPHDEV_HDRS = ../$(LIBGRAPH)/graphdev.h |
| 289 |
|
| 290 |
# |
| 291 |
# GraphDev layer implementation: |
| 292 |
# |
| 293 |
GRAPHGEX_OBJS = graphgtk.o graphgdk.o graphgdkremote.o gexhelp.o\ |
| 294 |
gexramptool.o gex.o |
| 295 |
GRAPHGEX_HDRS = ../$(LIBGRAPH)/graphgtk_.h |
| 296 |
|
| 297 |
##################################################################### |
| 298 |
##################################################################### |
| 299 |
|
| 300 |
AQL_OBJS = aql.o aqlparse.o aqlcheck.o aqlrun.o aqlerror.o aqldebug.o |
| 301 |
|
| 302 |
BASE_OBJS = keysetdump.o lexsubs4.o lexalpha.o \ |
| 303 |
disknew.o blocksub.o objcache.o \ |
| 304 |
idacedb.o idcurate.o |
| 305 |
|
| 306 |
BASE_5_OBJS = bs2block.o adisk.o acache.o |
| 307 |
|
| 308 |
B_OBJS = bsubs.o bstree.o bstools.o keyset.o \ |
| 309 |
bsdumps.o nicedump.o asubs.o bssubs.o check.o \ |
| 310 |
dnasubs.o dnacode.o peptide.o matchtable.o \ |
| 311 |
basepad.o smap.o |
| 312 |
|
| 313 |
######################################### |
| 314 |
|
| 315 |
## objects for every acedb build, whether graphical or not. |
| 316 |
GENERIC_ACE_OBJS = command.o commandmenu.o session.o dbpath.o aceutils.o banner.o \ |
| 317 |
queryexe.o tabledefsubs.o tabledefio.o flag.o \ |
| 318 |
$(AQL_OBJS) $(BASE_OBJS) $(BASE_5_OBJS) $(B_OBJS) \ |
| 319 |
class.o sysclass.o tags.o model.o \ |
| 320 |
longtext.o quovadis.o picksubs.o alignment.o \ |
| 321 |
logsubs.o sigsubs.o prefsubs.o status.o \ |
| 322 |
bindex.o acelib.o table.o apputils.o \ |
| 323 |
acinside.o actable.o |
| 324 |
|
| 325 |
## same as GENERIC_ACE_OBJS, but these are used in -DACEMBLY builds |
| 326 |
GENERIC_ACEMBLY_OBJS = command.acm.o session.o dbpath.o aceutils.o banner.o \ |
| 327 |
queryexe.o tabledefsubs.o tabledefio.o flag.o \ |
| 328 |
$(AQL_OBJS) $(BASE_OBJS) $(BASE_5_OBJS) $(B_OBJS) \ |
| 329 |
class.acm.o sysclass.acm.o tags.acm.o model.o \ |
| 330 |
longtext.o quovadis.o picksubs.o alignment.o \ |
| 331 |
logsubs.o sigsubs.o prefsubs.o status.o \ |
| 332 |
bindex.o acelib.o table.o apputils.o \ |
| 333 |
acinside.o actable.o |
| 334 |
|
| 335 |
## The GENERIC_ACE_(NON)GRAPH_OBJS files still have #ifdef NON_GRAPHIC |
| 336 |
## sections which need to be resolved. These objects can then |
| 337 |
## move to the GENERIC_ACE_OBJS group. |
| 338 |
GENERIC_ACE_GRAPH_OBJS = parse.o dump.o biblio.o |
| 339 |
|
| 340 |
## special verions of these modules for non-graphical builds |
| 341 |
GENERIC_ACE_NONGRAPH_OBJS = parse.ng.o dump.ng.o biblio.ng.o |
| 342 |
|
| 343 |
## for now we have to make sure that gifaceserver gets the non-graphical |
| 344 |
## version of parse.c, because of the way parse errors are output |
| 345 |
## via freeOut (by .ng.o) and messout/graphOut (by .o), in the latter |
| 346 |
## case they are swallowed by the gif backend of the graphlib and not |
| 347 |
## shown to the user |
| 348 |
GENERIC_GIFACE_GRAPH_OBJS = parse.ng.o dump.o biblio.o |
| 349 |
|
| 350 |
################################################################# |
| 351 |
################## GRAPHICAL_ACE_OBJS ########################### |
| 352 |
################################################################# |
| 353 |
## these are generic modules, that allow graphical browsing and |
| 354 |
## manipluation of any ace-database (these modules should be in w6) |
| 355 |
## functionality of these display is NOT database-dependant |
| 356 |
|
| 357 |
## included in graphical builds |
| 358 |
GRAPHICAL_ACE_OBJS = mainpick.o display.o update.o \ |
| 359 |
newkey.o treedisp.o forest.o ksetdisp.o \ |
| 360 |
plot.o plot2d.o sessiondisp.o longtextdisp.o \ |
| 361 |
querydisp.o qbedisp.o querybuild.o \ |
| 362 |
tabledisp.o tablemakerdisp.o multimapdisp.o \ |
| 363 |
objcachedisp.o action.o layoutdisp.o prefdisp.o \ |
| 364 |
acedbgraph.o acdbtest.o gifcommand.o \ |
| 365 |
statusdisp.o aqldisp.o |
| 366 |
|
| 367 |
## included in graphical builds |
| 368 |
GRAPHICAL_ACEMBLY_OBJS = mainpick.acm.o display.acm.o update.o \ |
| 369 |
newkey.acm.o treedisp.o forest.o ksetdisp.o \ |
| 370 |
plot.o plot2d.o sessiondisp.o longtextdisp.o \ |
| 371 |
querydisp.o qbedisp.o querybuild.o \ |
| 372 |
tabledisp.o tablemakerdisp.o multimapdisp.o \ |
| 373 |
objcachedisp.o action.o layoutdisp.o prefdisp.o \ |
| 374 |
acedbgraph.o acdbtest.o gifcommand.o \ |
| 375 |
statusdisp.o aqldisp.o |
| 376 |
|
| 377 |
################################################################### |
| 378 |
###################### GRAPHICAL_BIO_ACE_OBJS #################### |
| 379 |
################################################################### |
| 380 |
## these modules allow display of specific biological acedb data |
| 381 |
## these modules should NOT be in w4/w5/w6 |
| 382 |
## functionality of these displays is database-dependant |
| 383 |
|
| 384 |
ALL_DISP_OBJS = geldisp.o \ |
| 385 |
cmapdisp.o pmapdisp.o pmapconvert.o \ |
| 386 |
gmapdisp.o vmapdisp.o vmapdrag.o \ |
| 387 |
pepactivezonecol.o alignmentdisp.o \ |
| 388 |
dnacpt.o fpdisp.o pepdisp.o pepgifcommand.o pephomolcol.o \ |
| 389 |
pepseqcol.o pepfeaturecol.o pepgraphcol.o metab.o \ |
| 390 |
gmapconvert.o gmapmarkercol.o gmapintervalcol.o \ |
| 391 |
gmaplocuscol.o gmapremarkcol.o drawdisp.o \ |
| 392 |
gmapposnegcol.o method.o methodcache.o gmapsubmapcol.o \ |
| 393 |
dendrogram.o |
| 394 |
|
| 395 |
ZMAP_OBJS = zmapcontrol.o zmapcols.o zmapsequence.o seqregion.o \ |
| 396 |
stringbucket.o zmapcalls.o zmapbccol.o |
| 397 |
|
| 398 |
|
| 399 |
# mapcontrol: |
| 400 |
# |
| 401 |
MAPCONT_HDRS = ../$(INCLUDE)/map.h |
| 402 |
MAPCONT_ACE_OBJS = mapcontrol.o |
| 403 |
MAPCONT_ACEMBLY_OBJS = mapcontrol.o |
| 404 |
|
| 405 |
|
| 406 |
# fmap: |
| 407 |
# |
| 408 |
FMAP_HDRS = ../$(INCLUDE)/fmap.h |
| 409 |
FMAP_PRIV_HDRS = ../$(MAPDISPLAYS)/fmap_.h |
| 410 |
FMAP_ACE_OBJS = fmapsequence.o fmapfeatures.o fmapgene.o \ |
| 411 |
fmaposp.o fmapblast.o fmapmenes.o fmapstatus.o \ |
| 412 |
fmapcontrol.o smapconvert.o fmapcdna.o fmapcurate.o \ |
| 413 |
das.o gff.o |
| 414 |
FMAP_ACEMBLY_OBJS = fmapsequence.o fmapfeatures.o fmapgene.o \ |
| 415 |
fmaposp.o fmapblast.o fmapmenes.o fmapstatus.o \ |
| 416 |
fmapcontrol.acm.o fmapcdna.acm.o |
| 417 |
|
| 418 |
# grid: |
| 419 |
# |
| 420 |
GRID_HDRS = ../$(INCLUDE)/grid.h |
| 421 |
GRID_PRIV_HDRS = ../$(MAPDISPLAYS)/grid_.h |
| 422 |
GRID_ACE_OBJS = griddisp.o |
| 423 |
GRID_ACEMBLY_OBJS = griddisp.o |
| 424 |
|
| 425 |
OTHER_OBJS = embl.o translate.o \ |
| 426 |
gmapdata.o gmapdatacol.o vmapdata2.o \ |
| 427 |
align.o gmapphys.o vmapphys.o \ |
| 428 |
gfcode.acedb.o hexcode.acedb.o |
| 429 |
|
| 430 |
DOTTER_OBJS = dotter.o dotterKarlin.o blxview.acedb.o |
| 431 |
|
| 432 |
JO_OBJS = oxgriddisp.o pairmapdisp.o o2m.o oxhomlist.o specg.o |
| 433 |
|
| 434 |
#### |
| 435 |
|
| 436 |
GRAPHICAL_BIO_ACE_OBJS = $(ALL_DISP_OBJS) $(MAPCONT_ACE_OBJS) $(FMAP_ACE_OBJS) $(GRID_ACE_OBJS) \ |
| 437 |
$(OTHER_OBJS) $(DOTTER_OBJS) $(JO_OBJS) #$(ZMAP_OBJS) |
| 438 |
|
| 439 |
GRAPHICAL_BIO_ACEMBLY_OBJS = $(ALL_DISP_OBJS) $(MAPCONT_ACE_OBJS) $(FMAP_ACEMBLY_OBJS) $(GRID_ACEMBLY_OBJS) \ |
| 440 |
$(OTHER_OBJS) $(DOTTER_OBJS) $(JO_OBJS) |
| 441 |
|
| 442 |
###################################################################### |
| 443 |
|
| 444 |
### linked in by graphical acembly builds |
| 445 |
MAPPING_GRAPH_OBJS = topology.o aligntools.o \ |
| 446 |
defcpt.o intrinsictree.o \ |
| 447 |
dnaalign.o basecallstat.o |
| 448 |
|
| 449 |
|
| 450 |
### linked in by non-graphical acembly builds |
| 451 |
MAPPING_NONGRAPH_OBJS = topology.o aligntools.o \ |
| 452 |
defcpt.ng.o \ |
| 453 |
intrinsictree.ng.o \ |
| 454 |
dnaalign.ng.o basecallstat.ng.o |
| 455 |
|
| 456 |
### linked in by graphical acembly builds |
| 457 |
ABI_GRAPH_OBJS = trace.acedb.o annot.acedb.o fmaptrace.acm.o blyctrl.o geneannot.o |
| 458 |
|
| 459 |
####notneeded####ABI_NONGRAPH_OBJS = trace.acedbng.o annot.acedb.o fmaptrace.acm.o blyctrl.o |
| 460 |
|
| 461 |
### linked in by graphical acembly builds |
| 462 |
BASECALL_GRAPH_OBJS = basecall.acedb.o abifix.acedb.o \ |
| 463 |
nnbasecall.acedb.o \ |
| 464 |
myNetwork.o acemblyhook.o cdnaalign.o saucisse.o |
| 465 |
|
| 466 |
### linked in by non-graphical acembly builds |
| 467 |
BASECALL_NONGRAPH_OBJS = basecall.acedbng.o abifix.acedbng.o \ |
| 468 |
nnbasecall.acedb.o \ |
| 469 |
myNetwork.o acemblyhook.o cdnaalign.o saucisse.ng.o |
| 470 |
|
| 471 |
|
| 472 |
|
| 473 |
##################################################################### |
| 474 |
# Socket based ace server/client objects. |
| 475 |
# |
| 476 |
|
| 477 |
# MD5 encryption package used by socket server code. |
| 478 |
# |
| 479 |
LIBMD5_HDR = ../$(LIBMD5)/global.h ../$(LIBMD5)/md5.h |
| 480 |
LIBMD5_OBJ = md5c.o |
| 481 |
LIBMD5_TEST_HDR = ../$(LIBMD5)/digcalc.h |
| 482 |
LIBMD5_TEST_OBJ = mddriver.o digcalc.o digtest.o |
| 483 |
|
| 484 |
# Client/server code. |
| 485 |
ACESOCK_SOCKET_HDR = ../$(ACESOCK)/acesocket_.h |
| 486 |
ACESOCK_TRANSPORT_HDR = ../$(ACESOCK)/servertransport.h |
| 487 |
ACESOCK_SERVER_HDR = ../$(ACESOCK)/serverace_.h |
| 488 |
ACESOCK_CLIENT_HDR = ../$(ACESOCK)/saceclient_.h |
| 489 |
ACESOCK_CLIENTLIB_HDR = ../$(ACESOCK)/sclientlib.h |
| 490 |
ACESOCK_UTILS_HDR = ../$(ACESOCK)/serverclientutils.h |
| 491 |
|
| 492 |
ACESOCK_SOCKET_OBJ = acesocket.o acesocketlib.o |
| 493 |
ACESOCK_SERVER_OBJ = serverace.o serveracepasswd.o |
| 494 |
ACESOCK_CLIENT_OBJ = saceclient.o sclient.o |
| 495 |
ACESOCK_CLIENTLIB_OBJ = sclientlib.o |
| 496 |
ACESOCK_UTILS_OBJ = serverclientutils.o |
| 497 |
ACESOCK_XCLIENT_OBJ = sxclient.o |
| 498 |
|
| 499 |
ACESOCK_ALL_OBJ = $(ACESOCK_SOCKET_OBJ) $(ACESOCK_SERVER_OBJ) $(ACESOCK_UTILS_OBJ) |
| 500 |
|
| 501 |
########################################################### |
| 502 |
## Compile Time Variants |
| 503 |
## A single source code will produce several object modules |
| 504 |
## Rules are given below |
| 505 |
########################################################### |
| 506 |
|
| 507 |
# add any new special suffix here - do not have multiple .SUFFIXES lines |
| 508 |
.SUFFIXES: .o .c .ng.o .acedb.o .acedbng.o .acm.o .acmng.o .ng5.o .a5.o .cc |
| 509 |
|
| 510 |
########################################################### |
| 511 |
## Source code location |
| 512 |
## |
| 513 |
## |
| 514 |
VERSION_SOURCE = $(VERSION_OBJ:.o=.c) |
| 515 |
|
| 516 |
LIBUTIL_SOURCES = $(FREE_OBJS:.o=.c) |
| 517 |
|
| 518 |
LIBGRAPH_SOURCES = $(GRAPH_OBJS:.o=.c) $(GRAPHGEX_OBJS:.o=.c) xremotemain.c |
| 519 |
APPMAIN_SOURCES = gifacemain.c tacemain.c xacemain.c xclientmain.c taqlmain.c apputils.c |
| 520 |
ACELIBKERNEL_SOURCES = command.c commandmenu.c gifcommand.c dump.c model.c \ |
| 521 |
banner.c aceutils.c \ |
| 522 |
queryexe.c parse.c session.c dbpath.c logsubs.c sigsubs.c \ |
| 523 |
prefsubs.c longtext.c picksubs.c mainpick.c metadata.c \ |
| 524 |
newkey.c status.c update.c alignment.c \ |
| 525 |
tabledefsubs.c tabledefio.c |
| 526 |
ACEDBKERNEL_SOURCES = $(BASE_OBJS:.o=.c) $(BASE_5_OBJS:.o=.c) |
| 527 |
XACEMGR_SOURCES = $(B_OBJS:.o=.c) \ |
| 528 |
display.c treedisp.c forest.c ksetdisp.c \ |
| 529 |
querydisp.c qbedisp.c querybuild.c \ |
| 530 |
tabledisp.c tablemakerdisp.c multimapdisp.c \ |
| 531 |
objcachedisp.c sessiondisp.c \ |
| 532 |
action.c plot.c plot2d.c longtextdisp.c \ |
| 533 |
acedbgraph.c acdbtest.c layoutdisp.c prefdisp.c \ |
| 534 |
statusdisp.c aqldisp.c |
| 535 |
MAPDISPLAYS_SOURCES = $(ALL_DISP_OBJS:.o=.c) $(MAPCONT_ACE_OBJS:.o=.c) biblio.c \ |
| 536 |
$(FMAP_ACE_OBJS:.o=.c) $(GRID_ACE_OBJS:.o=.c) coltest.c |
| 537 |
|
| 538 |
## MAPPING_OBJS |
| 539 |
W8_SOURCES = topology.c defcpt.c intrinsictree.c dnaalign.c \ |
| 540 |
aligntools.c basecallstat.c |
| 541 |
|
| 542 |
DISPLAYTOOLS_SOURCES = gfcode.c embl.c \ |
| 543 |
dotter.c dotterKarlin.c \ |
| 544 |
translate.c blxview.c \ |
| 545 |
gmapdata.c gmapdatacol.c vmapdata2.c \ |
| 546 |
align.c gmapphys.c vmapphys.c hexcode.c \ |
| 547 |
blxmain.c blxselect.c blxparser.c \ |
| 548 |
diskdump.c diskfix.c \ |
| 549 |
dotterMain.c readseq.c \ |
| 550 |
efetch.c dbidx.c belvu.c |
| 551 |
|
| 552 |
|
| 553 |
WRPC_SOURCES = rpcace.x xclient.c jade2ace.c aceclient.c aceclientlib.c \ |
| 554 |
aceserver.c jadeserver.c rpcace_sp.c jade2sybase.c |
| 555 |
|
| 556 |
LIBMD5_SOURCES = $(LIBMD5_OBJ:.o=.c) $(LIBMD5_TEST_OBJ:.o=.c) |
| 557 |
ACESOCK_SOURCES = $(ACESOCK_SOCKET_OBJ:.o=.c) $(ACESOCK_SERVER_OBJ:.o=.c) \ |
| 558 |
$(ACESOCK_CLIENT_OBJ:.o=.c) $(ACESOCK_CLIENTLIB_OBJ:.o=.c) \ |
| 559 |
$(ACESOCK_UTILS_OBJ:.o=.c) $(ACESOCK_XCLIENT_OBJ:.o=.c) |
| 560 |
|
| 561 |
NEWCODE_SOURCES = bindex.c acelib.c table.c flag.c acelibtest.c tagcount.c |
| 562 |
|
| 563 |
# Just too difficult to make it dependent on the .h files as well. This may not |
| 564 |
# be the right place to put them, but in any case I can't make it work. |
| 565 |
ZMAP_SOURCES = zmapcontrol.c zmapcols.c seqregion.c stringbucket.c \ |
| 566 |
zmapcalls.c zmapsequence.c zmapbccol.c |
| 567 |
|
| 568 |
|
| 569 |
AQLMODULE_SOURCES = aql.c aqlcheck.c aqlrun.c aqlerror.c \ |
| 570 |
aqldebug.c aqlparse.y aqlparse.l |
| 571 |
MISCTOOLS_SOURCES = pmapace2.c homonym.c acediff.c acediffsorted.c makeUserPasswd.c |
| 572 |
|
| 573 |
ACEMBLY_SOURCES = trace.c fmaptrace.c blyctrl.c annot.c geneannot.c \ |
| 574 |
basecall.c abifix.c myNetwork.c nnbasecall.c acemblyhook.c \ |
| 575 |
cdnaalign.c saucisse.c \ |
| 576 |
intron2.c |
| 577 |
|
| 578 |
HOOKS_SOURCES = sysclass.c class.c tags.c quovadis.c |
| 579 |
LIBGD_SOURCES = $(LIBGD_OBJS:.o=.c) |
| 580 |
OXGRIDMODULE_SOURCES = $(JO_OBJS:.o=.c) |
| 581 |
|
| 582 |
|
| 583 |
########################################################### |
| 584 |
## Compiler and library options |
| 585 |
## CC, LIBS, NAME are defined in $(ACEDB_MACHINE)_DEF |
| 586 |
## |
| 587 |
|
| 588 |
# NB ACEDB_GTK needed everywhere for the time being: TODO |
| 589 |
IDIR = -I.. -I../$(INCLUDE) -I../wstaden -DACEDB_GTK |
| 590 |
# Do not use -I/usr/include |
| 591 |
# it prevents gcc from picking up its own includes |
| 592 |
# (cc goes to /usr/include anyway) |
| 593 |
|
| 594 |
## to undefine any rubbish |
| 595 |
CCFLAGS = |
| 596 |
GCFLAGS = |
| 597 |
|
| 598 |
## Different platforms use CC or COMPILE.c |
| 599 |
# (USEROPTS - see comments at top of file) |
| 600 |
# |
| 601 |
CC = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c |
| 602 |
COMPILE.c = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c |
| 603 |
|
| 604 |
########################################################### |
| 605 |
## make targets. |
| 606 |
## |
| 607 |
## |
| 608 |
.KEEP_STATE: |
| 609 |
|
| 610 |
# "all" should always be the first target so that it is the default make action. |
| 611 |
all : xace tace \ |
| 612 |
aceserver aceclient xaceclient \ |
| 613 |
giface gifaceserver \ |
| 614 |
jade2ace jadeserver \ |
| 615 |
saceserver saceclient sxaceclient makeUserPasswd \ |
| 616 |
acediff acediffsorted xacez |
| 617 |
|
| 618 |
acembly : libstaden.a tacembly xacembly \ |
| 619 |
makeSCF scf2ctf ctf2scf \ |
| 620 |
gifacemblyserver\ |
| 621 |
gnbk gnbkclient |
| 622 |
|
| 623 |
other : blixem belvu dotter efetch \ |
| 624 |
pmapace tagcount diskdump diskfix \ |
| 625 |
xtest coltest genefeatures \ |
| 626 |
libfree.a \ |
| 627 |
libgraph.a libgraphgex.a libgd.a \ |
| 628 |
libacecl.a libace.a libxace.a |
| 629 |
|
| 630 |
tools : makeUserPasswd acediff acediffsorted |
| 631 |
|
| 632 |
$(VERSION_SOURCE): |
| 633 |
@$(TEST) -L $@ || ln -s ../$(NEWCODE)/$@ . |
| 634 |
$(LIBUTIL_SOURCES): |
| 635 |
@$(TEST) -L $@ || ln -s ../$(LIBUTIL)/$@ . |
| 636 |
$(LIBGRAPH_SOURCES): |
| 637 |
@$(TEST) -L $@ || ln -s ../$(LIBGRAPH)/$@ . |
| 638 |
$(APPMAIN_SOURCES): |
| 639 |
@$(TEST) -L $@ || ln -s ../$(APPMAIN)/$@ . |
| 640 |
$(ACELIBKERNEL_SOURCES): |
| 641 |
@$(TEST) -L $@ || ln -s ../$(ACELIBKERNEL)/$@ . |
| 642 |
$(ACEDBKERNEL_SOURCES): |
| 643 |
@$(TEST) -L $@ || ln -s ../$(ACEDBKERNEL)/$@ . |
| 644 |
$(XACEMGR_SOURCES): |
| 645 |
@$(TEST) -L $@ || ln -s ../$(XACEMGR)/$@ . |
| 646 |
$(MAPDISPLAYS_SOURCES): |
| 647 |
@$(TEST) -L $@ || ln -s ../$(MAPDISPLAYS)/$@ . |
| 648 |
$(W8_SOURCES): |
| 649 |
@$(TEST) -L $@ || ln -s ../$(W8)/$@ . |
| 650 |
$(DISPLAYTOOLS_SOURCES): |
| 651 |
@$(TEST) -L $@ || ln -s ../$(DISPLAYTOOLS)/$@ . |
| 652 |
$(NEWCODE_SOURCES): |
| 653 |
@$(TEST) -L $@ || ln -s ../$(NEWCODE)/$@ . |
| 654 |
$(ZMAP_SOURCES): |
| 655 |
@$(TEST) -L $@ || ln -s ../$(ZMAP)/$@ . |
| 656 |
$(AQLMODULE_SOURCES): |
| 657 |
@$(TEST) -L $@ || ln -s ../$(AQLMODULE)/$@ . |
| 658 |
$(ACESOCK_SOURCES): |
| 659 |
@$(TEST) -L $@ || ln -s ../$(ACESOCK)/$@ . |
| 660 |
$(LIBMD5_SOURCES): |
| 661 |
@$(TEST) -L $@ || ln -s ../$(LIBMD5)/$@ . |
| 662 |
$(WRPC_SOURCES): |
| 663 |
@$(TEST) -L $@ || ln -s ../wrpc/$@ . |
| 664 |
$(MISCTOOLS_SOURCES): |
| 665 |
@$(TEST) -L $@ || ln -s ../$(MISCTOOLS)/$@ . |
| 666 |
$(ACEMBLY_SOURCES): |
| 667 |
@$(TEST) -L $@ || ln -s ../$(ACEMBLY)/$@ . |
| 668 |
$(HOOKS_SOURCES): |
| 669 |
@$(TEST) -L $@ || ln -s ../$(HOOKS)/$@ . |
| 670 |
$(LIBGD_SOURCES): |
| 671 |
@$(TEST) -L $@ || ln -s ../$(LIBGD)/$@ . |
| 672 |
$(OXGRIDMODULE_SOURCES): |
| 673 |
@$(TEST) -L $@ || ln -s ../$(OXGRIDMODULE)/$@ . |
| 674 |
|
| 675 |
#### Compilation of variants ############### |
| 676 |
|
| 677 |
.c.acedb.o: $< |
| 678 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DACEDB -c $< -o $@ |
| 679 |
|
| 680 |
.c.acedbng.o: $< |
| 681 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DNON_GRAPHIC -DACEDB -c $< -o $@ |
| 682 |
|
| 683 |
.c.ng.o: $< |
| 684 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DNON_GRAPHIC -c $< -o $@ |
| 685 |
|
| 686 |
.c.ng5.o: $< |
| 687 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DNON_GRAPHIC -DACEDB5 -c $< -o $@ |
| 688 |
|
| 689 |
.c.acm.o: $< |
| 690 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DACEMBLY -c $< -o $@ |
| 691 |
|
| 692 |
.c.acmng.o: $< |
| 693 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DNON_GRAPHIC -DACEMBLY -c $< -o $@ |
| 694 |
|
| 695 |
.c.a5.o: $< |
| 696 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DACEDB5 -c $< -o $@ |
| 697 |
|
| 698 |
|
| 699 |
############################################################# |
| 700 |
################## public libraries ######################### |
| 701 |
############################################################# |
| 702 |
|
| 703 |
########### utilities library ############# |
| 704 |
|
| 705 |
# |
| 706 |
# when aceversion.c is recompiled it contains the date and time |
| 707 |
# of the recompilation which is used in the version string of |
| 708 |
# the executable. It is also altered by wmake/makefile to contain |
| 709 |
# the directory where the make was done, this way we can check |
| 710 |
# whether users are using our code or one they compiled themselves. |
| 711 |
# |
| 712 |
# aceversion.c is recompiled for each invocation of this makefile. |
| 713 |
# wmake/makefile, which calls this file, does a "touch" |
| 714 |
# on the file denoted by $(VERSION_TIMESTAMP_FILE) which ensures |
| 715 |
# aceversion.c gets rebuilt. (The variable VERSION_TIMESTAMP_FILE |
| 716 |
# is set in makefile.) |
| 717 |
# |
| 718 |
$(VERSION_OBJ) : $(VERSION_TIMESTAMP_FILE) ../$(INCLUDE)/regular.h ../$(INCLUDE)/version.h ../$(INCLUDE)/aceversion.h |
| 719 |
|
| 720 |
|
| 721 |
$(FREE_OBJS): ../$(INCLUDE)/regular.h ../$(INCLUDE)/mystdlib.h |
| 722 |
|
| 723 |
helpsubs.o texthelp.o: ../$(INCLUDE)/help_.h |
| 724 |
|
| 725 |
libfree.a : $(VERSION_OBJ) $(FREE_OBJS) |
| 726 |
ar $(AR_OPTIONS) libfree.a $? |
| 727 |
@if ( $(RANLIB_NEEDED) ) then ranlib libfree.a; fi |
| 728 |
|
| 729 |
libfree_clean : |
| 730 |
rm -f $(VERSION_OBJ) $(FREE_OBJS) libfree.a |
| 731 |
|
| 732 |
########### thread safe library ############# |
| 733 |
|
| 734 |
$(FREE_TS_OBJS): ../$(INCLUDE)/regular.h ../$(INCLUDE)/mystdlib.h |
| 735 |
|
| 736 |
libtsfree.a : $(FREE_TS_OBJS) |
| 737 |
ar $(AR_OPTIONS) libtsfree.a $? |
| 738 |
@if ( $(RANLIB_NEEDED) ) then ranlib libtsfree.a; fi |
| 739 |
|
| 740 |
|
| 741 |
########### graphics libraries ################ |
| 742 |
|
| 743 |
$(GRAPH_PRIV_HDRS): $(GRAPH_HDRS) |
| 744 |
$(GRAPH_OBJS): $(GRAPH_PRIV_HDRS) $(GRAPHDEV_HDRS) |
| 745 |
gexhelp.o: ../$(INCLUDE)/help_.h |
| 746 |
libgraph.a : $(GRAPH_OBJS) |
| 747 |
ar $(AR_OPTIONS) libgraph.a $? |
| 748 |
@if ( $(RANLIB_NEEDED) ) then ranlib libgraph.a; fi |
| 749 |
|
| 750 |
|
| 751 |
$(GRAPHGEX_OBJS): $(GRAPHGEX_HDRS) $(GRAPHDEV_HDRS) |
| 752 |
libgex.a : $(GRAPHGEX_OBJS) |
| 753 |
ar $(AR_OPTIONS) libgex.a $? |
| 754 |
@if ( $(RANLIB_NEEDED) ) then ranlib libgex.a; fi |
| 755 |
|
| 756 |
|
| 757 |
# GIF drawing routines, independent of which version of graph device layer is used. |
| 758 |
libgd.a : $(LIBGD_OBJS) |
| 759 |
ar $(AR_OPTIONS) libgd.a $? |
| 760 |
@if ( $(RANLIB_NEEDED) ) then ranlib libgd.a; fi |
| 761 |
|
| 762 |
|
| 763 |
libgraph_clean : |
| 764 |
rm -f $(GRAPH_OBJS) libgraph.a |
| 765 |
rm -f $(GRAPHGEX_OBJS) libgex.a |
| 766 |
rm -f $(LIBGD_OBJS) libgd.a |
| 767 |
|
| 768 |
|
| 769 |
|
| 770 |
########### MD5 encryption libraries ################ |
| 771 |
|
| 772 |
# MD5 library |
| 773 |
$(LIBMD5_OBJ): $(LIBMD5_HDR) |
| 774 |
|
| 775 |
libmd5.a : $(LIBMD5_OBJ) |
| 776 |
ar $(AR_OPTIONS) $@ $? |
| 777 |
@if ( $(RANLIB_NEEDED) ) then ranlib $@ ; fi |
| 778 |
|
| 779 |
# MD5 test programs |
| 780 |
$(LIBMD5_TEST_OBJ) : $(LIBMD5_HDR) $(LIBMD5_TEST_HDR) |
| 781 |
|
| 782 |
md5test : libmd5.a $(LIBMD5_TEST_OBJ) mddriver digtest |
| 783 |
$(LINKER) -o mddriver mddriver.o -L. -lmd5 $(LDFLAGS) |
| 784 |
$(LINKER) -o digtest digcalc.o digtest.o -L. -lmd5 $(LDFLAGS) |
| 785 |
|
| 786 |
######################################### |
| 787 |
#### public C interface: libace ######### |
| 788 |
######################################### |
| 789 |
|
| 790 |
########### AQL objects ###################### |
| 791 |
|
| 792 |
lex.yy.c: aqlparse.l ../$(AQLMODULE)/aql_.h |
| 793 |
$(LEX) $(LEX_OPTIONS) aqlparse.l |
| 794 |
|
| 795 |
aqlparse.c: lex.yy.c aqlparse.y |
| 796 |
$(YACC) $(YACC_OPTIONS) aqlparse.y |
| 797 |
mv y.tab.c aqlparse.c |
| 798 |
|
| 799 |
$(AQL_OBJS): ../$(AQLMODULE)/aql_.h |
| 800 |
|
| 801 |
# |
| 802 |
# In the end we want fmap et al. to be a library that is compiled just the once, |
| 803 |
# here is the start of some dependencies for them. |
| 804 |
# |
| 805 |
|
| 806 |
# mapcontrol |
| 807 |
# |
| 808 |
$(MAPCONT_ACE_OBJS): $(MAPCONT_HDRS) |
| 809 |
$(MAPCONT_ACEMBLY_OBJS): $(MAPCONT_HDRS) |
| 810 |
|
| 811 |
# fmap |
| 812 |
# |
| 813 |
$(FMAP_HDRS): $(MAPCONT_HDRS) |
| 814 |
$(FMAP_PRIV_HDRS): $(FMAP_HDRS) |
| 815 |
$(FMAP_ACE_OBJS): $(FMAP_PRIV_HDRS) |
| 816 |
$(FMAP_ACEMBLY_OBJS): $(FMAP_PRIV_HDRS) |
| 817 |
|
| 818 |
# grid |
| 819 |
# |
| 820 |
$(GRID_HDRS): $(MAPCONT_HDRS) |
| 821 |
$(GRID_PRIV_HDRS): $(GRID_HDRS) |
| 822 |
$(GRID_ACE_OBJS): $(GRID_PRIV_HDRS) |
| 823 |
$(GRID_ACEMBLY_OBJS): $(GRID_PRIV_HDRS) |
| 824 |
|
| 825 |
|
| 826 |
|
| 827 |
# |
| 828 |
# dependencies of selected .o files upon special includes |
| 829 |
# |
| 830 |
command.o tabledefio.o tabledefsubs.o: ../$(INCLUDE)/spread_.h |
| 831 |
|
| 832 |
tablemakerdisp.o: ../$(INCLUDE)/spread_.h ../$(INCLUDE)/tabledisp.h |
| 833 |
|
| 834 |
tabledisp.o multimapdisp.o: ../$(INCLUDE)/spread.h ../$(INCLUDE)/table.h ../$(INCLUDE)/tabledisp.h |
| 835 |
|
| 836 |
aqldisp.o: ../$(INCLUDE)/aql.h ../$(INCLUDE)/table.h ../$(INCLUDE)/tabledisp.h |
| 837 |
|
| 838 |
## table.h |
| 839 |
$(AQL_OBJS) command.o matchtable.o dnacpt.o fmapcontrol.o smapconvert.o pephomolcol.o table.o xclient.o quovadis.o : ../$(INCLUDE)/table.h |
| 840 |
|
| 841 |
## method.h |
| 842 |
method.o methodcache.o fmapcdna.o fmapcontrol.o smapconvert.o fmapfeatures.o fmapsequence.o fmapgene.o pepfeaturecol.o pephomolcol.o: ../$(INCLUDE)/method.h |
| 843 |
|
| 844 |
methodcache.o: ../$(INCLUDE)/methodcache.h |
| 845 |
|
| 846 |
## bump.h |
| 847 |
bump.o graphascii.o multimapdisp.o cmapdisp.o fmapcdna.o fmapfeatures.o fmaposp.o fmapstatus.o gmapintervalcol.o gmaplocuscol.o gmapremarkcol.o gmapsubmapcol.o pepfeaturecol.o pephomolcol.o pmapdisp.o vmapdisp.o defcpt.o gmapphys.o vmapphys.o fmaptrace.o: ../$(INCLUDE)/bump.h |
| 848 |
|
| 849 |
## bump_.h - some external files intrude the internals of the bump-package |
| 850 |
bump.o graphascii.o pmapdisp.o: ../$(INCLUDE)/bump_.h |
| 851 |
|
| 852 |
## aceio.h - files that use the new AceIO package ACEIN/ACEOUT |
| 853 |
acein.o aceout.o gifacemain.o tacemain.o xacemain.o command.o gifcommand.o longtext.o parse.o status.o dump.o bsdumps.o session.o logsubs.o aceutils.o tabledefio.o tablemakerdisp.o keysetdump.o ksetdisp.o dnasubs.o longtextdisp.o matchtable.o peptide.o fmapcontrol.o smapconvert.o fmaposp.o pepdisp.o pepgifcommand.o defcpt.o table.o aceserver.o xclient.o: ../$(INCLUDE)/aceio.h |
| 854 |
|
| 855 |
## command.h |
| 856 |
gifacemain.o tacemain.o xacemain.o command.o commandmenu.o gifcommand.o defcpt.o aceserver.o: ../$(INCLUDE)/command.h |
| 857 |
|
| 858 |
## dump.h |
| 859 |
dump.o tabledefio.o command.o bssubs.o nicedump.o ksetdisp.o dendrogram.o embl.o xclient.o: ../$(INCLUDE)/dump.h |
| 860 |
|
| 861 |
## dna.h |
| 862 |
dnasubs.o alignment.o command.o mainpick.o basepad.o diaplay.o ksetdisp.o peptide.o dendrogram.o dnacpt.o fmapblast.o fmapcdna.o fmapcontrol.o smapconvert.o fmapfeatures.o fmapgene.o fmapmenes.o fmaposp.o fmapsequence.o fmapstatus.o fpdisp.o geldisp.o aligntools.o basecallstat.o defcpt.o dnaalign.o align.o asn.o embl.o quovadis.o acelib.o acinside.o aclient.o: ../$(INCLUDE)/dna.h |
| 863 |
|
| 864 |
## peptide.h |
| 865 |
alignment.o command.o gifommand.o ksetdisp.o peptide.o dendrogram.o dnacpt.o fmapcontrol.o smapconvert.o fmapfeatures.o fmapgene.o pepdisp.o pepgifcommand.o embl.o quovadis.o: ../$(INCLUDE)/peptide.h |
| 866 |
|
| 867 |
## longtext.h |
| 868 |
command.o mainpick.o display.o longtextdisp.o quovadis.o: ../$(INCLUDE)/longtext.h |
| 869 |
|
| 870 |
## matchtable.h |
| 871 |
matchtable.o fmapcontrol.o smapconvert.o pephomolcol.o quovadis.o: ../$(INCLUDE)/matchtable.h |
| 872 |
|
| 873 |
## smap.h |
| 874 |
fmapcontrol.o smapconvert.o fmapsequence.o pmapconvert.o pmapdisp.o blxview.o smap.o: ../$(INCLUDE)/smap.h |
| 875 |
|
| 876 |
###################### |
| 877 |
|
| 878 |
LIBACE_OBJS = $(GENERIC_ACE_OBJS) $(GENERIC_ACE_NONGRAPH_OBJS) |
| 879 |
|
| 880 |
libace.a : $(LIBACE_OBJS) |
| 881 |
ar $(AR_OPTIONS) libace.a $? |
| 882 |
@if ( $(RANLIB_NEEDED) ) then ranlib libace.a; fi |
| 883 |
|
| 884 |
libace_clean : |
| 885 |
rm -f $(LIBACE_OBJS) libace.a |
| 886 |
|
| 887 |
######## libxace.a is the variant of libace.a that is |
| 888 |
######## compiled without the -DNON_GRAPH compiler flag |
| 889 |
######## it is used instead of libace.a in graphical builds |
| 890 |
######## it will become obsolete once the code groups |
| 891 |
######## GENERIC_ACE_OBJS and GENERIC_ACE_(NON)GRAPH_OBJS have merged |
| 892 |
|
| 893 |
LIBXACE_OBJS = $(GENERIC_ACE_OBJS) $(GENERIC_ACE_GRAPH_OBJS) |
| 894 |
|
| 895 |
LIBGIFACE_OBJS = $(GENERIC_ACE_OBJS) $(GENERIC_GIFACE_GRAPH_OBJS) |
| 896 |
|
| 897 |
libxace.a : $(LIBXACE_OBJS) |
| 898 |
ar $(AR_OPTIONS) libxace.a $? |
| 899 |
@if ( $(RANLIB_NEEDED) ) then ranlib libxace.a; fi |
| 900 |
|
| 901 |
|
| 902 |
libgiface.a : $(LIBGIFACE_OBJS) |
| 903 |
ar $(AR_OPTIONS) libgiface.a $? |
| 904 |
@if ( $(RANLIB_NEEDED) ) then ranlib libgiface.a; fi |
| 905 |
|
| 906 |
libxace_clean : |
| 907 |
rm -f $(LIBXACE_OBJS) libxace.a |
| 908 |
|
| 909 |
################################################################ |
| 910 |
############## graphical ACEDB programs ######################## |
| 911 |
################################################################ |
| 912 |
|
| 913 |
# Xace - acedb version 4: |
| 914 |
# New build for xace, xacemain.c gets recompiled every time xace is built, |
| 915 |
# this allows to include the build date in xacemain. |
| 916 |
# |
| 917 |
XACE_OBJS = $(GRAPHICAL_ACE_OBJS) $(GRAPHICAL_BIO_ACE_OBJS) |
| 918 |
|
| 919 |
mainpick.o longtextdisp.o qbedisp.o querydisp.o treedisp.o fmapcontrol.o smapconvert.o ksetdisp.o: ../$(INCLUDE)/keysetdisp.h |
| 920 |
|
| 921 |
xace : libfree.a $(GRAPHXWIN_DEPEND) libxace.a xacemain.c $(XACE_OBJS) |
| 922 |
rm -f display.o |
| 923 |
$(CC) xacemain.c display.c |
| 924 |
$(LINKER) -o xace xacemain.o $(XACE_OBJS) -L. -lxace -lfree $(GRAPHXWIN_LIBS) $(XWIN_LIBS) $(LIBS) $(LEX_LIBS) |
| 925 |
|
| 926 |
xace_clean : |
| 927 |
rm -f $(XACE_OBJS) xace$(EXE_SUFFIX) |
| 928 |
|
| 929 |
|
| 930 |
# giface: |
| 931 |
## much like xace, but using virtual display instead of interactive |
| 932 |
## windows. It is terminal based, window contents can be dumped into |
| 933 |
## gif and postscript files. |
| 934 |
GIFACE_OBJS = $(GRAPHICAL_ACE_OBJS) $(ALL_DISP_OBJS) \ |
| 935 |
$(MAPCONT_ACE_OBJS) $(FMAP_ACE_OBJS) $(GRID_ACE_OBJS) $(OTHER_OBJS) $(JO_OBJS) |
| 936 |
|
| 937 |
giface : libfree.a libgd.a libgraph.a libxace.a gifacemain.c $(GIFACE_OBJS) |
| 938 |
$(CC) gifacemain.c |
| 939 |
$(LINKER) -o giface gifacemain.o $(GIFACE_OBJS) -L. -lxace -lgraph -lgd -lfree $(LIBS) $(LEX_LIBS) |
| 940 |
|
| 941 |
xacez : libfree.a $(GRAPHXWIN_DEPEND) libxace.a xacemain.c $(XACE_OBJS) $(ZMAP_OBJS) |
| 942 |
rm -f display.o |
| 943 |
$(CC) -DZMAP xacemain.c display.c |
| 944 |
$(LINKER) -o xacez xacemain.o $(XACE_OBJS) $(ZMAP_OBJS) -L. -lxace -lfree $(GRAPHXWIN_LIBS) $(XWIN_LIBS) $(LIBS) $(LEX_LIBS) $(ZMAPLDFLAGS) |
| 945 |
|
| 946 |
##################################### |
| 947 |
|
| 948 |
# Xacembly version 4 build: |
| 949 |
XACEMBLY_OBJS = \ |
| 950 |
$(GENERIC_ACEMBLY_OBJS) $(GENERIC_ACE_GRAPH_OBJS) \ |
| 951 |
$(GRAPHICAL_ACEMBLY_OBJS) \ |
| 952 |
$(GRAPHICAL_BIO_ACEMBLY_OBJS) \ |
| 953 |
$(ABI_GRAPH_OBJS) $(BASECALL_GRAPH_OBJS) $(MAPPING_GRAPH_OBJS) |
| 954 |
|
| 955 |
xacembly : libfree.a $(GRAPHXWIN_DEPEND) libstaden.a xacemain.c $(XACEMBLY_OBJS) |
| 956 |
$(CC) -DACEMBLY -c xacemain.c -o xacemblymain.o |
| 957 |
$(LINKER) -o xacembly $(XACEMBLY_OBJS) xacemblymain.o -L. -lfree $(GRAPHXWIN_LIBS) -lstaden $(XWIN_LIBS) $(LIBS) $(LEX_LIBS) |
| 958 |
chmod 755 xacembly$(EXE_SUFFIX) |
| 959 |
|
| 960 |
################################################################ |
| 961 |
############## non-graphical ACEDB programs #################### |
| 962 |
################################################################ |
| 963 |
|
| 964 |
# genefeatures |
| 965 |
#genefeatures : gfcode.o readseq.o |
| 966 |
# $(CC) -g -o genefeatures gfcode.o readseq.o -lm |
| 967 |
|
| 968 |
genefeatures : gfcode.o readseq.o |
| 969 |
$(LINKER) -o genefeatures gfcode.o readseq.o -lm $(LDFLAGS) |
| 970 |
|
| 971 |
readseq.o : readseq.c |
| 972 |
$(CC) $(CFLAGS) readseq.c |
| 973 |
|
| 974 |
gfcode.o : gfcode.c |
| 975 |
$(CC) $(USEROPTS) $(CFLAGS) gfcode.c |
| 976 |
|
| 977 |
# tace |
| 978 |
tace : libfree.a libace.a tacemain.c |
| 979 |
$(CC) tacemain.c |
| 980 |
$(LINKER) -o tace tacemain.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 981 |
chmod 755 tace$(EXE_SUFFIX) |
| 982 |
|
| 983 |
tace_clean : |
| 984 |
rm -f tacemain.o tace$(EXE_SUFFIX) |
| 985 |
|
| 986 |
# tacembly - version 4 |
| 987 |
TACEMBLY_OBJS = \ |
| 988 |
$(GENERIC_ACEMBLY_OBJS) $(GENERIC_ACE_NONGRAPH_OBJS) \ |
| 989 |
$(BASECALL_NONGRAPH_OBJS) $(MAPPING_NONGRAPH_OBJS) |
| 990 |
|
| 991 |
tacembly : libfree.a libstaden.a tacemain.c $(TACEMBLY_OBJS) |
| 992 |
$(CC) -DACEMBLY -c tacemain.c -o tacemblymain.o |
| 993 |
$(LINKER) -o tacembly $(TACEMBLY_OBJS) tacemblymain.o -L. -lfree -lstaden $(LIBS) $(LEX_LIBS) |
| 994 |
chmod 755 tacembly$(EXE_SUFFIX) |
| 995 |
|
| 996 |
# tacembly - version 5 |
| 997 |
TACEMBLY_5_OBJS = tacemain.acm.o command.acm.o banner.acm.o \ |
| 998 |
$(NON_GRAPHIC_OBJS) session.ng5.o $(KERNEL_5_OBJS) $(ACE_5_OBJS) acelib.o \ |
| 999 |
$(NON_GRAPHIC_MAPPING_OBJS) \ |
| 1000 |
$(NON_GRAPHIC_BASECALL_OBJS) |
| 1001 |
|
| 1002 |
tacembly5 : libfree.a libstaden.a $(TACEMBLY_5_OBJS) |
| 1003 |
$(LINKER) -o tacembly $(TACEMBLY_5_OBJS) -L. -lfree -lstaden $(LIBS) $(LEX_LIBS) |
| 1004 |
chmod 755 tacembly$(EXE_SUFFIX) |
| 1005 |
|
| 1006 |
######### the AQL test-platform ################# |
| 1007 |
|
| 1008 |
taql : libfree.a libace.a taqlmain.o |
| 1009 |
$(LINKER) -o taql taqlmain.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1010 |
|
| 1011 |
############################################################# |
| 1012 |
### small test programs using purely libace functionality ### |
| 1013 |
|
| 1014 |
acelibtest : libfree.a libace.a acelibtest.c |
| 1015 |
$(CC) acelibtest.c |
| 1016 |
$(LINKER) -o acelibtest acelibtest.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1017 |
|
| 1018 |
tagcount : libfree.a libace.a tagcount.c |
| 1019 |
$(CC) tagcount.c |
| 1020 |
$(LINKER) -o tagcount tagcount.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1021 |
|
| 1022 |
|
| 1023 |
########################################## |
| 1024 |
## drivers for remote control via XAtoms |
| 1025 |
|
| 1026 |
xremote : xremotemain.o |
| 1027 |
$(LINKER) -o xremote xremotemain.o $(XWIN_LIBS) -lXmu -lXt $(LIBS) |
| 1028 |
|
| 1029 |
############################################################################### |
| 1030 |
################## Sockets server/client ACEDB programs ####################### |
| 1031 |
############################################################################### |
| 1032 |
|
| 1033 |
$(ACESOCK_SOCKET_OBJ): $(ACESOCK_TRANSPORT_HDR) $(ACESOCK_SOCKET_HDR) |
| 1034 |
|
| 1035 |
$(ACESOCK_SERVER_OBJ): $(ACESOCK_TRANSPORT_HDR) $(ACESOCK_SERVER_HDR) |
| 1036 |
|
| 1037 |
$(ACESOCK_UTILS_OBJ): $(ACESOCK_UTILS_HDR) |
| 1038 |
|
| 1039 |
|
| 1040 |
##################### saceserver, the socket server ########################### |
| 1041 |
#saceserver: libfree.a libace.a libmd5.a $(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) \ |
| 1042 |
# $(ACESOCK_SERVER_OBJ) |
| 1043 |
saceserver: libfree.a libace.a libmd5.a $(ACESOCK_ALL_OBJ) |
| 1044 |
$(LINKER) -o $@ $(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) $(ACESOCK_SERVER_OBJ) \ |
| 1045 |
-L. -lace -lfree -lmd5 -lm $(LIBS) $(LEX_LIBS) |
| 1046 |
chmod 755 $(@)$(EXE_SUFFIX) |
| 1047 |
|
| 1048 |
##################### sgifaceserver, graphical - via gifs ################### |
| 1049 |
SGIFACESERVER_OBJS = \ |
| 1050 |
$(GRAPHICAL_ACE_OBJS) \ |
| 1051 |
$(ALL_DISP_OBJS) \ |
| 1052 |
$(MAPCONT_ACE_OBJS) $(FMAP_ACE_OBJS) $(GRID_ACE_OBJS) \ |
| 1053 |
$(OTHER_OBJS) $(JO_OBJS) |
| 1054 |
|
| 1055 |
|
| 1056 |
sgifaceserver: libfree.a libgraph.a libgd.a libgiface.a libace.a libmd5.a serverace.c $(SGIFACESERVER_OBJS) $(ACESOCK_ALL_OBJ) |
| 1057 |
$(CC) -DGIFACESERVER -c serverace.c -o sgifaceserver.o |
| 1058 |
$(LINKER) -o $@ sgifaceserver.o $(SGIFACESERVER_OBJS) \ |
| 1059 |
$(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) serveracepasswd.o \ |
| 1060 |
-L. -lgiface -lgraph -lgd -lace -lfree -lmd5 -lm $(LIBS) $(LEX_LIBS) |
| 1061 |
chmod 755 $(@)$(EXE_SUFFIX) |
| 1062 |
|
| 1063 |
##################### saceclient, client version of tace #################### |
| 1064 |
$(ACESOCK_CLIENT_OBJ): $(ACESOCK_UTILS_HDR) $(ACESOCK_CLIENTLIB_HDR) $(ACESOCK_CLIENT_HDR) |
| 1065 |
|
| 1066 |
saceclient: libfree.a libmd5.a $(ACESOCK_SOCKET_OBJ) \ |
| 1067 |
$(ACESOCK_UTILS_OBJ) $(ACESOCK_CLIENTLIB_OBJ) $(ACESOCK_CLIENT_OBJ) |
| 1068 |
$(LINKER) -o $@ $(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) $(ACESOCK_CLIENTLIB_OBJ) \ |
| 1069 |
$(ACESOCK_CLIENT_OBJ) commandmenu.o -L. -lfree -lmd5 -lm $(LIBS) $(LEX_LIBS) |
| 1070 |
chmod 755 $(@)$(EXE_SUFFIX) |
| 1071 |
|
| 1072 |
##################### sxaceclient, client version of xace ################### |
| 1073 |
SXACECLIENT_OBJS = $(ACESOCK_XCLIENT_OBJ) $(ACESOCK_CLIENTLIB_OBJ) \ |
| 1074 |
$(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) \ |
| 1075 |
$(GRAPHICAL_ACE_OBJS) \ |
| 1076 |
$(GRAPHICAL_BIO_ACE_OBJS) |
| 1077 |
|
| 1078 |
sxaceclient : libfree.a libmd5.a $(GRAPHXWIN_DEPEND) libxace.a xclientmain.c $(SXACECLIENT_OBJS) |
| 1079 |
$(CC) xclientmain.c |
| 1080 |
$(LINKER) -o sxaceclient xclientmain.o $(SXACECLIENT_OBJS) \ |
| 1081 |
-L. -lxace $(GRAPHXWIN_LIBS) -lfree -lmd5 $(XWIN_LIBS) $(LIBS) $(LEX_LIBS) |
| 1082 |
chmod 755 sxaceclient$(EXE_SUFFIX) |
| 1083 |
|
| 1084 |
######################### clean all socket code. ############################ |
| 1085 |
sace_build : saceserver sgifaceserver saceclient sxaceclient |
| 1086 |
|
| 1087 |
sace_clean : |
| 1088 |
rm -f $(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) $(ACESOCK_SERVER_OBJ) |
| 1089 |
rm -f saceclient $(ACESOCK_SOCKET_OBJ) $(ACESOCK_UTILS_OBJ) $(ACESOCK_CLIENT_OBJ) |
| 1090 |
rm -f $(SXACECLIENT_OBJS) sxaceclient$(EXE_SUFFIX) |
| 1091 |
|
| 1092 |
|
| 1093 |
|
| 1094 |
###################################################### |
| 1095 |
#### RPC server/client ACEDB programs ################ |
| 1096 |
###################################################### |
| 1097 |
|
| 1098 |
|
| 1099 |
RPCGEN_PRODUCTS = rpcace.h rpcace_xdr.c rpcace_clnt.c rpcace_svc.c |
| 1100 |
|
| 1101 |
$(RPCGEN_PRODUCTS): rpcace.x |
| 1102 |
rpcgen $(RPCGEN_FLAGS) rpcace.x |
| 1103 |
|
| 1104 |
rpcace_sp.o: rpcace_sp.c rpcace_svc.c |
| 1105 |
|
| 1106 |
aceclientlib.o: aceclientlib.c rpcace.h |
| 1107 |
$(CC) -c $< |
| 1108 |
|
| 1109 |
RPC_CLIENT_OBJS = aceclientlib.o rpcace_clnt.o rpcace_xdr.o |
| 1110 |
RPC_SERVER_OBJS = rpcace_sp.o rpcace_xdr.o |
| 1111 |
NET_CLIENT_OBJS = aceclientlib.o rpcace_clnt.o rpcace_xdr.o |
| 1112 |
RPC_X_CLIENT_OBJS = xclient.o aceclientlib.o rpcace_clnt.o rpcace_xdr.o |
| 1113 |
|
| 1114 |
libacecl.a : aceclientlib.o rpcace_clnt.o rpcace_xdr.o |
| 1115 |
ar $(AR_OPTIONS) libacecl.a $? |
| 1116 |
@if ( $(RANLIB_NEEDED) ) then ranlib libacecl.a; fi |
| 1117 |
|
| 1118 |
|
| 1119 |
################ aceserver, no graphics ################# |
| 1120 |
ACESERVER_OBJS = $(RPC_SERVER_OBJS) |
| 1121 |
|
| 1122 |
aceserver : libfree.a libace.a aceserver.c $(ACESERVER_OBJS) rpcace.x rpcace.h |
| 1123 |
$(CC) aceserver.c |
| 1124 |
$(LINKER) -o aceserver aceserver.o $(ACESERVER_OBJS) -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1125 |
chmod 755 aceserver |
| 1126 |
\rm -f rpc.acedbd |
| 1127 |
ln -s aceserver rpc.acedbd |
| 1128 |
|
| 1129 |
aceserver_clean : |
| 1130 |
rm -f $(ACESERVER_OBJS) aceserver$(EXE_SUFFIX) |
| 1131 |
|
| 1132 |
############# gifaceserver, does gifs of fmap etc. ################ |
| 1133 |
|
| 1134 |
GIFACESERVER_OBJS = \ |
| 1135 |
$(RPC_SERVER_OBJS) \ |
| 1136 |
$(GRAPHICAL_ACE_OBJS) \ |
| 1137 |
$(ALL_DISP_OBJS) \ |
| 1138 |
$(MAPCONT_ACE_OBJS) $(FMAP_ACE_OBJS) $(GRID_ACE_OBJS) \ |
| 1139 |
$(OTHER_OBJS) $(JO_OBJS) |
| 1140 |
|
| 1141 |
gifaceserver : libfree.a libgraph.a libgd.a libgiface.a aceserver.c $(GIFACESERVER_OBJS) rpcace.x rpcace.h |
| 1142 |
$(CC) -DGIFACESERVER -c aceserver.c -o gifaceserver.o |
| 1143 |
$(LINKER) -o gifaceserver gifaceserver.o $(GIFACESERVER_OBJS) -L. -lgiface -lgraph -lgd -lfree $(LIBS) $(LEX_LIBS) |
| 1144 |
chmod 755 gifaceserver |
| 1145 |
\rm -f rpc.gifacedbd |
| 1146 |
ln -s gifaceserver rpc.gifacedbd |
| 1147 |
|
| 1148 |
|
| 1149 |
############ gifacemblyserver, Jeans sequence assembly variant. ########################## |
| 1150 |
GIFACEMBLYSERVER_OBJS = \ |
| 1151 |
$(RPC_SERVER_OBJS) \ |
| 1152 |
$(GENERIC_ACEMBLY_OBJS) $(GENERIC_ACE_GRAPH_OBJS) \ |
| 1153 |
$(GRAPHICAL_ACEMBLY_OBJS) $(GRAPHICAL_BIO_ACEMBLY_OBJS) \ |
| 1154 |
$(ABI_GRAPH_OBJS) $(BASECALL_GRAPH_OBJS) $(MAPPING_GRAPH_OBJS) |
| 1155 |
|
| 1156 |
|
| 1157 |
gifacemblyserver : libfree.a libgraph.a libgd.a libstaden.a aceserver.c $(GIFACEMBLYSERVER_OBJS) rpcace.x rpcace.h |
| 1158 |
$(CC) -DGIFACESERVER -c aceserver.c -o gifserver.o |
| 1159 |
$(LINKER) -o gifacemblyserver gifserver.o $(GIFACEMBLYSERVER_OBJS) -L. -lgraph -lgd -lfree -lstaden $(LIBS) $(LEX_LIBS) |
| 1160 |
chmod 755 gifacemblyserver$(EXE_SUFFIX) |
| 1161 |
|
| 1162 |
gifacemblyserver_clean : |
| 1163 |
rm -f $(GIFACEMBLYSERVER_OBJS) gifacemblyserver$(EXE_SUFFIX) |
| 1164 |
|
| 1165 |
|
| 1166 |
####### text-based client ############# |
| 1167 |
|
| 1168 |
aceclient : libfree.a aceclient.c $(RPC_CLIENT_OBJS) rpcace.x rpcace.h |
| 1169 |
$(CC) aceclient.c |
| 1170 |
$(LINKER) -o aceclient aceclient.o $(RPC_CLIENT_OBJS) -L. -lfree $(LIBS) |
| 1171 |
chmod 755 aceclient$(EXE_SUFFIX) |
| 1172 |
|
| 1173 |
aceclient_clean : |
| 1174 |
rm -f $(RPC_CLIENT_OBJS) aceclient$(EXE_SUFFIX) |
| 1175 |
|
| 1176 |
|
| 1177 |
####### graphical client ############### |
| 1178 |
|
| 1179 |
XACECLIENT_OBJS = $(RPC_X_CLIENT_OBJS) \ |
| 1180 |
$(GRAPHICAL_ACE_OBJS) \ |
| 1181 |
$(GRAPHICAL_BIO_ACE_OBJS) |
| 1182 |
|
| 1183 |
xaceclient : libfree.a $(GRAPHXWIN_DEPEND) libxace.a xclientmain.c $(XACECLIENT_OBJS) |
| 1184 |
$(CC) xclientmain.c |
| 1185 |
$(LINKER) -o xaceclient xclientmain.o $(XACECLIENT_OBJS) -L. -lxace $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) $(LEX_LIBS) |
| 1186 |
chmod 755 xaceclient$(EXE_SUFFIX) |
| 1187 |
|
| 1188 |
xaceclient_clean : |
| 1189 |
rm -f $(XACECLIENT_OBJS) xaceclient$(EXE_SUFFIX) |
| 1190 |
|
| 1191 |
|
| 1192 |
|
| 1193 |
|
| 1194 |
############################################ |
| 1195 |
#### ACEDB-to-JADE programs ################ |
| 1196 |
############################################ |
| 1197 |
|
| 1198 |
jade2ace : libfree.a jade2ace.c $(NET_CLIENT_OBJS) rpcace.x rpcace.h |
| 1199 |
$(CC) jade2ace.c |
| 1200 |
$(LINKER) -o jade2ace jade2ace.o $(NET_CLIENT_OBJS) -L. -lfree $(LIBS) |
| 1201 |
chmod 755 jade2ace |
| 1202 |
\rm -f netclient |
| 1203 |
ln -s jade2ace netclient |
| 1204 |
|
| 1205 |
jade2sybase : libfree.a jade2sybase.o |
| 1206 |
$(LINKER) -o jade2sybase jade2sybase.o -L. -lfree $(LIBS) |
| 1207 |
chmod 755 jade2sybase |
| 1208 |
|
| 1209 |
jadeserver : libfree.a libace.a jadeserver.c |
| 1210 |
$(CC) jadeserver.c |
| 1211 |
$(LINKER) -o jadeserver jadeserver.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1212 |
chmod 755 jadeserver |
| 1213 |
|
| 1214 |
################################################### |
| 1215 |
############## test programs ###################### |
| 1216 |
################################################### |
| 1217 |
|
| 1218 |
xtest : libfree.a $(GRAPHXWIN_DEPEND) graphtest.o |
| 1219 |
$(LINKER) -o xtest graphtest.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1220 |
|
| 1221 |
boxtest : libfree.a $(GRAPHXWIN_DEPEND) graphboxtest.o |
| 1222 |
$(LINKER) -o boxtest graphboxtest.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1223 |
|
| 1224 |
giftest : libgraph.a libgd.a graphtest.o |
| 1225 |
$(LINKER) -o giftest graphtest.o -L. -lgraph -lgd -lfree $(LIBS) |
| 1226 |
|
| 1227 |
coltest : coltest.o $(GRAPHXWIN_DEPEND) |
| 1228 |
$(LINKER) -o coltest coltest.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1229 |
|
| 1230 |
#### other programs ######################### |
| 1231 |
## |
| 1232 |
diskdump : libfree.a diskdump.o |
| 1233 |
$(LINKER) -o diskdump diskdump.o -L. -lfree $(LIBS) |
| 1234 |
|
| 1235 |
diskfix : libfree.a diskfix.o |
| 1236 |
$(LINKER) -o diskfix diskfix.o -L. -lfree $(LIBS) |
| 1237 |
|
| 1238 |
blixelect : blxselect.o blxparser.o blixem.o translate.o dotter.o dotterKarlin.o $(GRAPHXWIN_DEPEND) |
| 1239 |
$(LINKER) -o blixelect blxselect.o blxparser.o blixem.o dotter.o dotterKarlin.o \ |
| 1240 |
translate.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1241 |
|
| 1242 |
blixem : $(GRAPHXWIN_DEPEND) libfree.a blixem.o blxmain.o blxparser.o translate.o dotter.o dotterKarlin.o |
| 1243 |
$(LINKER) -o blixem blixem.o blxmain.o blxparser.o dotter.o dotterKarlin.o \ |
| 1244 |
translate.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1245 |
|
| 1246 |
blixem.o : blxview.c |
| 1247 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c -o $@ blxview.c |
| 1248 |
|
| 1249 |
dotter : $(GRAPHXWIN_DEPEND) libfree.a dotter.o dotterMain.o dotterKarlin.o translate.o blxparser.o blixem.o |
| 1250 |
$(LINKER) -o dotter dotter.o dotterKarlin.o dotterMain.o \ |
| 1251 |
translate.o blxparser.o blixem.o -L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1252 |
|
| 1253 |
|
| 1254 |
# I have removed this optimisation stuff from dotter for now because you cannot |
| 1255 |
# debug properly with it, EG |
| 1256 |
dotter.o: dotter.c |
| 1257 |
$(COMPILER) $(USEROPTS) -g $(IDIR) -D$(NAME) -c -o $@ dotter.c |
| 1258 |
|
| 1259 |
# $(COMPILER) $(USEROPTS) -O2 -g3 $(IDIR) -D$(NAME) -c -o $@ dotter.c |
| 1260 |
|
| 1261 |
|
| 1262 |
belvu.o: belvu.c |
| 1263 |
$(COMPILER) $(USEROPTS) -O2 -g3 $(IDIR) -D$(NAME) -c -o $@ belvu.c |
| 1264 |
|
| 1265 |
belvu : $(GRAPHXWIN_DEPEND) libfree.a belvu.o |
| 1266 |
$(LINKER) -o belvu belvu.o \ |
| 1267 |
-L. $(GRAPHXWIN_LIBS) -lfree $(XWIN_LIBS) $(LIBS) |
| 1268 |
|
| 1269 |
efetch : efetch.o dbidx.o |
| 1270 |
$(LINKER) -o efetch efetch.o dbidx.o $(LDFLAGS) |
| 1271 |
|
| 1272 |
efetch.o: efetch.c |
| 1273 |
$(CC) -DMIXDB efetch.c |
| 1274 |
|
| 1275 |
intron2 : libfree.a intron2.o |
| 1276 |
$(LINKER) -o intron2 intron2.o -L. -lfree $(LIBS) |
| 1277 |
|
| 1278 |
metacheck : libfree.a libace.a metadata.o |
| 1279 |
$(LINKER) -o metacheck metadata.o -L. -lace -lfree $(LIBS) $(LEX_LIBS) |
| 1280 |
|
| 1281 |
makeUserPasswd: makeUserPasswd.c libfree.a libmd5.a |
| 1282 |
$(CC) [email protected] |
| 1283 |
$(LINKER) -o $@ [email protected] -L. -lfree -lmd5 $(LIBS) |
| 1284 |
|
| 1285 |
|
| 1286 |
#### conversion programs ################### |
| 1287 |
## |
| 1288 |
PMAPACE_OBJS = pmapace2.o |
| 1289 |
pmapace : libfree.a $(PMAPACE_OBJS) |
| 1290 |
$(LINKER) -o pmapace $(PMAPACE_OBJS) -L. -lfree $(LIBS) |
| 1291 |
|
| 1292 |
HOMONYM_OBJS = homonym.o |
| 1293 |
homonym : $(HOMONYM_OBJS) |
| 1294 |
$(LINKER) -o homonym $(HOMONYM_OBJS) -L. -lfree $(LIBS) |
| 1295 |
|
| 1296 |
acediff : libfree.a acediff.c |
| 1297 |
$(CC) acediff.c |
| 1298 |
$(LINKER) -o acediff acediff.o -L. -lfree $(LIBS) |
| 1299 |
|
| 1300 |
# contributed by detlef: acediffs tace outputs |
| 1301 |
# using the fact that they are naturally sorted |
| 1302 |
|
| 1303 |
acediffsorted : libfree.a acediffsorted.c |
| 1304 |
$(CC) acediffsorted.c |
| 1305 |
$(LINKER) -o acediffsorted acediffsorted.o -L. -lfree $(LIBS) |
| 1306 |
|
| 1307 |
|
| 1308 |
###### genbank indexing program ######################### |
| 1309 |
## |
| 1310 |
WGNBK = wgnbk # links between modules |
| 1311 |
|
| 1312 |
GNBK_OBJS = gnbk.o gnbkserver.o rpcgnbk_sp.o |
| 1313 |
GNBK_CLIENT_OBJS = gnbkclient.o gnbkclientlib.o rpcgnbk_clnt.o rpcgnbk_xdr.o |
| 1314 |
|
| 1315 |
GNBK_SOURCES = rpcgnbk.x gnbk.c gnbkserver.c rpcgnbk_sp.c \ |
| 1316 |
gnbkclient.c gnbkclientlib.c |
| 1317 |
|
| 1318 |
$(GNBK_SOURCES) : |
| 1319 |
@$(TEST) -L $@ || ln -s ../wgnbk/$@ . |
| 1320 |
|
| 1321 |
RPCGNBK_PRODUCTS = rpcgnbk.h rpcgnbk_xdr.c rpcgnbk_clnt.c rpcgnbk_svc.c |
| 1322 |
|
| 1323 |
$(RPCGNBK_PRODUCTS): rpcgnbk.x |
| 1324 |
rpcgen $(RPCGEN_FLAGS) rpcgnbk.x |
| 1325 |
|
| 1326 |
rpcgnbk_sp.o: rpcgnbk_sp.c rpcgnbk_svc.c |
| 1327 |
|
| 1328 |
gnbkserver.o: gnbkserver.c rpcgnbk.h |
| 1329 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c $< |
| 1330 |
|
| 1331 |
gnbk : libfree.a gnbkserver.o $(GNBK_OBJS) rpcgnbk_xdr.o |
| 1332 |
$(LINKER) -o gnbk $(GNBK_OBJS) rpcgnbk_xdr.o -L. -lfree $(LIBS) |
| 1333 |
|
| 1334 |
gnbkclient : libfree.a gnbkserver.o $(GNBK_CLIENT_OBJS) rpcgnbk_xdr.o |
| 1335 |
$(LINKER) -o gnbkclient $(GNBK_CLIENT_OBJS) -L. -lfree $(LIBS) |
| 1336 |
|
| 1337 |
|
| 1338 |
########################################################### |
| 1339 |
###### Staden library ##################################### |
| 1340 |
## These modules were copied form Roger Staden distribution |
| 1341 |
## io_lib-1.7.tar.gz |
| 1342 |
## with just a modifications to support CTF format |
| 1343 |
## for example between staden's array.h and acedb array.h |
| 1344 |
|
| 1345 |
libstaden.a makeSCF scf2ctf ctf2scf : libfree.a makefile.staden |
| 1346 |
$(MAKE) -f makefile.staden $@ |
| 1347 |
\rm makefile.staden # to force evaluation each time |
| 1348 |
|
| 1349 |
makefile.staden: |
| 1350 |
cp ../wstaden/makefile.staden . |
| 1351 |
chmod 666 makefile.staden |
| 1352 |
|
| 1353 |
########################################################### |
| 1354 |
################## Ace C Library ########################## |
| 1355 |
########################################################### |
| 1356 |
|
| 1357 |
WAC_SOURCES = acclient.c actable.c acinside.c |
| 1358 |
|
| 1359 |
$(WAC_SOURCES): |
| 1360 |
@$(TEST) -L $@ || ln -s ../wac/$@ . |
| 1361 |
|
| 1362 |
acclient.o: acclient.c ../wac/acclient_acetcp.c ../wac/acclient_rpc.c \ |
| 1363 |
../wac/acclient_socket.c |
| 1364 |
|
| 1365 |
|
| 1366 |
# LINK_ACC_RPC=$(RPC_CLIENT_OBJS) |
| 1367 |
LINK_ACC_RPC= |
| 1368 |
|
| 1369 |
LINK_ACC=libaccl.a libfree.a $(LINK_ACC_RPC) |
| 1370 |
# LINK_ACC is the set of object files needed if you use |
| 1371 |
# the client version of the new Ace C library |
| 1372 |
# |
| 1373 |
# In NCBI AceDB, MUST HAVE libtsfree.a |
| 1374 |
# In Sanger AceDB, you MUST NOT HAVE libtsfree.a |
| 1375 |
|
| 1376 |
LINK_ACS=libace.a libfree.a libtsfree.a |
| 1377 |
# LINK_ACS is what to use if you want a standalone Ace C program |
| 1378 |
|
| 1379 |
LIBACCL_RPC_SUPPORT= aceclientlib.o rpcace_clnt.o rpcace_xdr.o |
| 1380 |
LIBACCL_SOCKET_SUPPORT=md5c.o |
| 1381 |
|
| 1382 |
libaccl.a: acclient.o actable.o $(LIBACCL_RPC_SUPPORT) $(LIBACCL_SOCKET_SUPPORT) |
| 1383 |
ar $(AR_OPTIONS) libaccl.a $? |
| 1384 |
@if ( $(RANLIB_NEEDED) ) then ranlib libaccl.a; fi |
| 1385 |
|
| 1386 |
########################################################### |
| 1387 |
# |
| 1388 |
# ace command interface, using new Ace C |
| 1389 |
# will replace aceclient, works with any Ace C transport |
| 1390 |
# |
| 1391 |
|
| 1392 |
accmd.c: ../wac/accmd.c |
| 1393 |
@$(TEST) -L $@ || ln -s ../wac/accmd.c . |
| 1394 |
|
| 1395 |
accmd.o: accmd.c |
| 1396 |
$(CC) -I.. -c accmd.c |
| 1397 |
|
| 1398 |
# The "t" in taceclient stands for "TCP". This client actually speaks |
| 1399 |
# any transport protocol known by Ace C. I originally called it accmd, |
| 1400 |
# but Jean wanted it named taceclient so it would more resemble aceclient, |
| 1401 |
# the thing it is replacing. |
| 1402 |
# Note that taceclient is NOT a drop-in replacement for aceclient. |
| 1403 |
|
| 1404 |
taceclient accmd: accmd.o $(LINK_ACC) |
| 1405 |
$(LINKER) -o taceclient accmd.o $(LINK_ACC) $(LIBS) |
| 1406 |
rm -f accmd |
| 1407 |
ln taceclient accmd |
| 1408 |
|
| 1409 |
# saccmd is ac cmd that runs standalone (i.e. without a server) |
| 1410 |
|
| 1411 |
saccmd: accmd.o $(LINK_ACS) |
| 1412 |
$(LINKER) -o $@ accmd.o $(LINK_ACS) $(LIBS) $(LEX_LIBS) |
| 1413 |
|
| 1414 |
########################################################### |
| 1415 |
# |
| 1416 |
# ace client test for new ace C |
| 1417 |
# |
| 1418 |
|
| 1419 |
acctest.c: ../wac/acctest.c |
| 1420 |
@$(TEST) -L $@ || ln -s ../wac/acctest.c . |
| 1421 |
|
| 1422 |
acctest.o: acctest.c |
| 1423 |
$(CC) -I.. -c acctest.c |
| 1424 |
|
| 1425 |
acctest: acctest.o $(LINK_ACC) |
| 1426 |
$(LINKER) -o acctest acctest.o $(LINK_ACC) $(LIBS) |
| 1427 |
|
| 1428 |
|
| 1429 |
acstest: acctest.o $(LINK_ACS) |
| 1430 |
$(LINKER) -o acstest acctest.o $(LINK_ACS) $(LIBS) $(LEX_LIBS) |
| 1431 |
|
| 1432 |
|
| 1433 |
|
| 1434 |
########################################################### |
| 1435 |
################## installation ########################### |
| 1436 |
########################################################### |
| 1437 |
|
| 1438 |
install_bin : |
| 1439 |
@echo 'installing' $@ ; |
| 1440 |
for target in $(INSTALL_BIN) ; do \ |
| 1441 |
echo 'installing' $$target 'for $(ACEDB_MACHINE)' ; \ |
| 1442 |
cp $$target $(ACEDB)/bin ; \ |
| 1443 |
done |
| 1444 |
cd $(ACEDB)/bin ; chmod 755 $(INSTALL_BIN) |
| 1445 |
|
| 1446 |
|
| 1447 |
|
| 1448 |
########################################################### |
| 1449 |
################## distribution ########################### |
| 1450 |
########################################################### |
| 1451 |
|
| 1452 |
# This target cleans up the bin.NNN directory so that it |
| 1453 |
# contains only executables. |
| 1454 |
bindistclean : |
| 1455 |
@rm -f *.o *.c *.a *.l *.y deffile makefile *.h *.x |
| 1456 |
|
| 1457 |
|
| 1458 |
# These targets need some work.... |
| 1459 |
clean : |
| 1460 |
rm -rf libraries.untarred libraries.install |
| 1461 |
|
| 1462 |
distclean : |
| 1463 |
rm -f ../w*/core ../w*/*~ |
| 1464 |
rm -rf libraries.untarred libraries.install |
| 1465 |
|
| 1466 |
dist : |
| 1467 |
cd ..; rm w*/*~; \ |
| 1468 |
tar cvf - w* --exclude CVS --exclude .cvsignore --exclude *~ | gzip -c > ace.tar.gz |
| 1469 |
|
| 1470 |
|
| 1471 |
|
| 1472 |
########################################################### |
| 1473 |
############## 3rd party libraries ######################## |
| 1474 |
########################################################### |
| 1475 |
|
| 1476 |
#libraries : |
| 1477 |
# cd ..; w3rdparty/build_all_3rdparty $(GTKVER) $(LIBCC) $(LIBLDFLAGS) |
| 1478 |
|
| 1479 |
libraries : |
| 1480 |
cd ..; w3rdparty/build_all_3rdparty $(LIBCC) $(LIBLDFLAGS) |
| 1481 |
|
| 1482 |
|
| 1483 |
|
| 1484 |
########################################################### |
| 1485 |
########### end of the acedb truemake file ################ |
| 1486 |
########################################################### |