| 1 |
################################################################### |
| 2 |
# $Id: contigmake,v 1.4 1999/11/24 11:44:47 fw Exp $ |
| 3 |
# |
| 4 |
# Makefile for contigc and related programs |
| 5 |
# |
| 6 |
# adapted by rd for SCCS structure from original of fw |
| 7 |
# |
| 8 |
# changed again by fw to work better with the acedb makesystem |
| 9 |
# removed duplicate compilation of graphlib etc. |
| 10 |
# libfree/graph.a are assumed to be there (handled in 'makefile') |
| 11 |
# |
| 12 |
###################### |
| 13 |
# |
| 14 |
# If you wish to specify one off compiler options such as |
| 15 |
# setting the debug flag (-g) or a preprocessor macro |
| 16 |
# value (-DMY_OWN_COMPILE_FLAG) then rather than editting |
| 17 |
# this file use the USEROPTS make macro like this: |
| 18 |
# |
| 19 |
# make USEROPTS='-g -DMY_OWN_COMPILE_FLAG -x -y' |
| 20 |
# |
| 21 |
# these will then be included in the flags used to compile |
| 22 |
# the .o files. |
| 23 |
|
| 24 |
# suppress auto SCCS extraction |
| 25 |
.SCCS_GET: |
| 26 |
.KEEP_STATE: |
| 27 |
.SUFFIXES: .o .c .ng.o |
| 28 |
|
| 29 |
################################################################# |
| 30 |
################## Graphic Libraries ############################ |
| 31 |
################################################################# |
| 32 |
# In principle the following X libraries can be found using: |
| 33 |
|
| 34 |
Xt_LIBS = -lXaw -lXt -lXmu -lXext -lX11 |
| 35 |
|
| 36 |
########################################################### |
| 37 |
## Compiler and library options |
| 38 |
## CC, LIBS, NAME are defined in $(ACEDB_MACHINE)_DEF |
| 39 |
########################################################### |
| 40 |
|
| 41 |
IDIR = -I. -I../wh -I../contigc |
| 42 |
# Do not use -I/usr/include |
| 43 |
# it prevents gcc from picking up its own includes |
| 44 |
# (cc goes to /usr/include anyway) |
| 45 |
|
| 46 |
CCFLAGS = ## to undefine any rubbish |
| 47 |
CCFLAGS = -g |
| 48 |
GCFLAGS = ## to undefine any rubbish |
| 49 |
|
| 50 |
## Different platforms use CC or COMPILE.c |
| 51 |
# (USEROPTS - see comments at top of file) |
| 52 |
# |
| 53 |
CC = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c |
| 54 |
COMPILE.c = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c |
| 55 |
|
| 56 |
# |
| 57 |
########### Compilation of non-graph variants ############ |
| 58 |
# |
| 59 |
.c.ng.o: $< |
| 60 |
$(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DNO_GRAPHICS -c $< -o $@ |
| 61 |
|
| 62 |
################ machine dependent compiler definitions ######## |
| 63 |
|
| 64 |
include deffile |
| 65 |
|
| 66 |
# On badly configurated machines, you may redefine these libraries |
| 67 |
# in a more precise way in your $(ACEDB_MACHINE)_DEF file |
| 68 |
|
| 69 |
################################################### |
| 70 |
############### do not edit below ################ |
| 71 |
############### override the above ################ |
| 72 |
###### settings in $(ACEDB_MACHINE)_DEF ########### |
| 73 |
############### if necessary ###################### |
| 74 |
################################################### |
| 75 |
|
| 76 |
########## link-libaries for graphical and text-only apps ########## |
| 77 |
GRAPHIC_LIBS = -L. -lgraph -lgraphXaw -lgif -lfree $(Xt_LIBS) $(LIBS) |
| 78 |
TEXT_LIBS = $(LIBS) |
| 79 |
|
| 80 |
########################################## |
| 81 |
# rules to link contig-sources to bin-dir |
| 82 |
########################################## |
| 83 |
|
| 84 |
CONTIGC_SOURCES = auto.c cemsub.c clib.c contaslib.c contasp.c \ |
| 85 |
contig.c difmap.c extend.c f2c.c fphinx.c fpabi.c \ |
| 86 |
anytoany.c checkdb.c rmvec.c getascdb.c graphc9.c laben.c \ |
| 87 |
lastclones.c makeascnam.c mapsub7.c openmapdb.c plot1.c \ |
| 88 |
pmap.c rjps.c vt640.c logdb.c rancl.c randb.c modelcc.c \ |
| 89 |
cc2ace.c contig_dumpace.c |
| 90 |
|
| 91 |
$(CONTIGC_SOURCES): |
| 92 |
ln -s ../contigc/$@ . |
| 93 |
|
| 94 |
|
| 95 |
contig_clean: |
| 96 |
rm -f $(CONTIGC_SOURCES:.c=.o) |
| 97 |
|
| 98 |
####################################### |
| 99 |
# contigc : interactive contig assembly |
| 100 |
####################################### |
| 101 |
|
| 102 |
CONTIG_OBJS = auto.o \ |
| 103 |
clib.o \ |
| 104 |
contig.o \ |
| 105 |
difmap.o \ |
| 106 |
laben.o \ |
| 107 |
plot1.o \ |
| 108 |
rjps.o \ |
| 109 |
cc2ace.o \ |
| 110 |
vt640.o \ |
| 111 |
graphc9.o \ |
| 112 |
f2c.o |
| 113 |
|
| 114 |
contig : $(CONTIG_OBJS) |
| 115 |
$(LINKER) -o contig $(CONTIG_OBJS) $(GRAPHIC_LIBS) |
| 116 |
|
| 117 |
#################################### |
| 118 |
# pmap : readonly version of contigc |
| 119 |
#################################### |
| 120 |
|
| 121 |
PMAP_OBJS = pmap.o \ |
| 122 |
cemsub.o \ |
| 123 |
contaslib.o \ |
| 124 |
clib.o \ |
| 125 |
laben.o \ |
| 126 |
auto.o \ |
| 127 |
f2c.o \ |
| 128 |
vt640.o \ |
| 129 |
plot1.o \ |
| 130 |
rjps.o \ |
| 131 |
graphc9.o |
| 132 |
|
| 133 |
pmap : $(PMAP_OBJS) |
| 134 |
$(LINKER) -o pmap $(PMAP_OBJS) $(GRAPHIC_LIBS) |
| 135 |
|
| 136 |
################################################### |
| 137 |
# contasp: program to arrange contigs automatically |
| 138 |
################################################### |
| 139 |
|
| 140 |
CONTASP_OBJS = contasp.o \ |
| 141 |
contaslib.ng.o \ |
| 142 |
clib.ng.o \ |
| 143 |
f2c.ng.o |
| 144 |
|
| 145 |
contasp : $(CONTASP_OBJS) |
| 146 |
$(LINKER) -o contasp $(CONTASP_OBJS) $(TEXT_LIBS) |
| 147 |
|
| 148 |
############################################################ |
| 149 |
####### seperate auxiliary programs |
| 150 |
############################################################ |
| 151 |
|
| 152 |
################################################ |
| 153 |
#fphinx: add data from .bands file to a database |
| 154 |
################################################ |
| 155 |
fphinx: fphinx.o f2c.ng.o |
| 156 |
$(LINKER) -o fphinx fphinx.o f2c.ng.o $(TEXT_LIBS) |
| 157 |
|
| 158 |
################################################# |
| 159 |
#fpabi: add data from ABI data file to a database |
| 160 |
################################################# |
| 161 |
fpabi: fpabi.o f2c.ng.o |
| 162 |
$(LINKER) -o fpabi fpabi.o f2c.ng.o $(TEXT_LIBS) |
| 163 |
|
| 164 |
##################################################################### |
| 165 |
#contig_dumpace: command-line program to dump ContigC-DB as .ace-file |
| 166 |
##################################################################### |
| 167 |
contig_dumpace: contig_dumpace.o cc2ace.o f2c.ng.o |
| 168 |
$(LINKER) -o contig_dumpace contig_dumpace.o cc2ace.o f2c.ng.o $(TEXT_LIBS) |
| 169 |
|
| 170 |
############################################################# |
| 171 |
# lastclones: show last clones of .nam file |
| 172 |
############################################################# |
| 173 |
lastclones: lastclones.o f2c.ng.o |
| 174 |
$(LINKER) -o lastclones lastclones.o f2c.ng.o $(TEXT_LIBS) |
| 175 |
|
| 176 |
############################################################# |
| 177 |
# makeascnam: dump .nam as ascii |
| 178 |
############################################################# |
| 179 |
makeascnam: makeascnam.o f2c.ng.o |
| 180 |
$(LINKER) -o makeascnam makeascnam.o f2c.ng.o $(TEXT_LIBS) |
| 181 |
|
| 182 |
################################################ |
| 183 |
#openmapdb: initialize a new database |
| 184 |
################################################ |
| 185 |
openmapdb: openmapdb.o f2c.ng.o |
| 186 |
$(LINKER) -o openmapdb openmapdb.o f2c.ng.o $(TEXT_LIBS) |
| 187 |
|
| 188 |
################################################ |
| 189 |
#mapsub: generate MAP.OUT file |
| 190 |
################################################ |
| 191 |
mapsub: mapsub7.o clib.ng.o f2c.ng.o |
| 192 |
$(LINKER) -o mapsub mapsub7.o clib.ng.o f2c.ng.o $(TEXT_LIBS) |
| 193 |
|
| 194 |
################################################ |
| 195 |
#extend: search contig ends |
| 196 |
################################################ |
| 197 |
extend: extend.o clib.ng.o f2c.ng.o difmap.ng.o rjps.ng.o |
| 198 |
$(LINKER) -o extend extend.o clib.ng.o f2c.ng.o difmap.ng.o rjps.ng.o $(TEXT_LIBS) |
| 199 |
|
| 200 |
###################################################################### |
| 201 |
# getascdb: program to convert ASCII VAX database to UNIX bin-format |
| 202 |
###################################################################### |
| 203 |
getascdb: getascdb.o f2c.ng.o |
| 204 |
$(LINKER) -o getascdb getascdb.o f2c.ng.o $(TEXT_LIBS) |
| 205 |
|
| 206 |
################################################################## |
| 207 |
# anytoany: program to update one project with data from another |
| 208 |
################################################################## |
| 209 |
anytoany: anytoany.o f2c.ng.o |
| 210 |
$(LINKER) -o anytoany anytoany.o f2c.ng.o $(TEXT_LIBS) |
| 211 |
|
| 212 |
#################################### |
| 213 |
# checkdb: check & correct project |
| 214 |
#################################### |
| 215 |
checkdb: checkdb.o f2c.ng.o |
| 216 |
$(LINKER) -o checkdb checkdb.o f2c.ng.o $(TEXT_LIBS) |
| 217 |
|
| 218 |
########################################################## |
| 219 |
# rmvec: remove all vector bands from the whole database |
| 220 |
########################################################## |
| 221 |
rmvec: rmvec.o f2c.ng.o |
| 222 |
$(LINKER) -o rmvec rmvec.o f2c.ng.o $(TEXT_LIBS) |
| 223 |
|
| 224 |
################################## |
| 225 |
# logdb : records project progress |
| 226 |
################################## |
| 227 |
logdb: logdb.o f2c.ng.o |
| 228 |
$(LINKER) -o logdb logdb.o f2c.ng.o $(TEXT_LIBS) |
| 229 |
|
| 230 |
################################ |
| 231 |
# rancl : random database model |
| 232 |
################################ |
| 233 |
rancl: rancl.o f2c.ng.o |
| 234 |
$(LINKER) -o rancl rancl.o f2c.ng.o $(TEXT_LIBS) |
| 235 |
|
| 236 |
################################ |
| 237 |
# randb : create random database |
| 238 |
################################ |
| 239 |
randb: randb.o f2c.ng.o |
| 240 |
$(LINKER) -o randb randb.o f2c.ng.o $(TEXT_LIBS) |
| 241 |
|
| 242 |
######################################## |
| 243 |
# model : database modelling |
| 244 |
######################################## |
| 245 |
model: modelcc.o f2c.ng.o |
| 246 |
$(LINKER) -o model modelcc.o f2c.ng.o $(TEXT_LIBS) |
| 247 |
|
| 248 |
|
| 249 |
############################################################ |
| 250 |
## end of ContigC makefile ## |
| 251 |
############################################################ |