| 1 |
# |
| 2 |
# $Id: im3make,v 1.26 2000/04/11 12:01:57 srk Exp $ |
| 3 |
# |
| 4 |
# Image Makefile. |
| 5 |
# |
| 6 |
# This software has been created by Genome Research Limited (GRL). |
| 7 |
# GRL hereby grants permission to use, copy, modify and distribute |
| 8 |
# this software and its documentation for non-commercial purposes |
| 9 |
# without fee at the user's own risk on the basis set out below. |
| 10 |
# GRL neither undertakes nor accepts any duty whether contractual or |
| 11 |
# otherwise in connection with the software, its use or the use of |
| 12 |
# any derivative, and makes no representations or warranties, express |
| 13 |
# or implied, concerning the software, its suitability, fitness for |
| 14 |
# a particular purpose or non-infringement. |
| 15 |
# In no event shall the authors of the software or GRL be responsible |
| 16 |
# or liable for any loss or damage whatsoever arising in any way |
| 17 |
# directly or indirectly out of the use of this software or its |
| 18 |
# derivatives, even if advised of the possibility of such damage. |
| 19 |
# Our software can be freely distributed under the conditions set out |
| 20 |
# above, and must contain this copyright notice. |
| 21 |
|
| 22 |
################################################################# |
| 23 |
# Before running the make command |
| 24 |
# setenv ACEDB_MACHINE to indicate one of the predefined |
| 25 |
# Machine dependant option files, or write your own. |
| 26 |
# These files are called $(ACEDB_SRC)/wmake/$(ACEDB_MACHINE)_DEF |
| 27 |
# |
| 28 |
|
| 29 |
################################################################# |
| 30 |
########## Machine dependent compiler modification ############## |
| 31 |
############# Are included from an external file ################ |
| 32 |
#### This is equivalent to, but more portable than $($(CC)) ##### |
| 33 |
### Edit these rules to adapt the makefile to a new machine ##### |
| 34 |
################################################################# |
| 35 |
# suppress auto SCCS extraction |
| 36 |
.SCCS_GET: |
| 37 |
.KEEP_STATE: |
| 38 |
.SUFFIXES: .o .c .h .cc |
| 39 |
|
| 40 |
########################################################### |
| 41 |
## Compiler and library options |
| 42 |
## CC, LIBS, NAME are defined in $(ACEDB_MACHINE)_DEF |
| 43 |
########################################################### |
| 44 |
|
| 45 |
IDIR = -I.. -I../wh -I../im3src -I/usr/local/include |
| 46 |
# Do not use -I/usr/include |
| 47 |
# it prevents gcc from picking up its own includes |
| 48 |
# (cc goes to /usr/include anyway) |
| 49 |
|
| 50 |
## to undefine any rubbish |
| 51 |
CCFLAGS = |
| 52 |
GCFLAGS = |
| 53 |
|
| 54 |
## Different platforms use CC or COMPILE.c |
| 55 |
CC = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DHaveTIFF -c |
| 56 |
COMPILE.c = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -DHaveTIFF -c |
| 57 |
|
| 58 |
#.c.o: |
| 59 |
# $(COMPILER) $(CCFLAGS) -c $< -o $@ |
| 60 |
|
| 61 |
# defaults overridable in $(ACEDB_MACHINE)_DEF |
| 62 |
# e.g. different compiler when using purify |
| 63 |
CCC = g++ |
| 64 |
CCCLINK = g++ |
| 65 |
|
| 66 |
.cc.o: |
| 67 |
$(CCC) $(IDIR) $(CCCFLAGS) $(USEROPTS) -c $< -o $@ |
| 68 |
|
| 69 |
XWIN_LIBS = `gtk-config --libs` |
| 70 |
GRAPHXWIN_DEPEND = libgraph.a libgex.a libgif.a |
| 71 |
GRAPHXWIN_LIBS = -lgraph -lgex -lgif |
| 72 |
|
| 73 |
LIB_LDFLAGS = |
| 74 |
|
| 75 |
################################################### |
| 76 |
############### do not edit below ################ |
| 77 |
############### override the above ################ |
| 78 |
###### settings in $(ACEDB_MACHINE)_DEF ########### |
| 79 |
############### if necessary ###################### |
| 80 |
################################################### |
| 81 |
|
| 82 |
################ machine dependent compiler definitions ######## |
| 83 |
|
| 84 |
include deffile |
| 85 |
|
| 86 |
|
| 87 |
# Note that you can keep different DEF files for the same machine |
| 88 |
# setting various compiler options |
| 89 |
|
| 90 |
############################################################# |
| 91 |
|
| 92 |
ALL_SRCS = imChooser.c imStep1.c imStep2.c imStep3.c imStep4.c \ |
| 93 |
imPrefs.c imParamDialogGui.c imParamDialogSig.c imParams.c \ |
| 94 |
imInfo.c imLanes.c imChange.c imMisc.c imBitmap.c \ |
| 95 |
imConfig.c imExternal.c imHidump.c \ |
| 96 |
utBandTrain.c |
| 97 |
|
| 98 |
$(ALL_SRCS): |
| 99 |
ln -s ../im3src/$@ . |
| 100 |
|
| 101 |
|
| 102 |
## as of version 3.10 Image is dependant on GTK libraries ### |
| 103 |
|
| 104 |
IM_OBJS = imChooser.o imStep1.o imStep2.o imStep3.o imStep4.o \ |
| 105 |
imPrefs.o imParamDialogGui.o imParamDialogSig.o imParams.o \ |
| 106 |
imInfo.o imLanes.o imChange.o imMisc.o imBitmap.o \ |
| 107 |
imConfig.o imExternal.o imHidump.o |
| 108 |
|
| 109 |
im3: libfree.a $(GRAPHXWIN_DEPEND) $(IM_OBJS) |
| 110 |
$(LINKER) -o im3 $(IM_OBJS) -L. $(GRAPHXWIN_LIBS) $(XWIN_LIBS) -lfree $(LIBS) |
| 111 |
|
| 112 |
$(IM_OBJS): ../im3src/im.h |
| 113 |
|
| 114 |
imConfig.o: ../im3src/imconfig.h |
| 115 |
|
| 116 |
########################## |
| 117 |
# Band Shape Training Tool |
| 118 |
########################## |
| 119 |
|
| 120 |
BSTT_OBJS = utBandTrain.o imZoom.o imHidump.o |
| 121 |
|
| 122 |
bstt: libfree.a libgraph.a libgex.a libgif.a $(BSTT_OBJS) imZoom.o imHidump.o |
| 123 |
$(LINKER) -L. -o bstt $(BSTT_OBJS) -L. $(GRAPHXWIN_LIBS) $(XWIN_LIBS) -lfree $(LIBS) |
| 124 |
|
| 125 |
$(BSTT_OBJS): ../im3src/bstt.h |
| 126 |
|
| 127 |
######################## |
| 128 |
# Image-Conversion tool |
| 129 |
# using ImageMagick |
| 130 |
######################## |
| 131 |
|
| 132 |
MAGICK_OBJS = cvdecode.o \ |
| 133 |
cvquantize.o \ |
| 134 |
cvcompress.o \ |
| 135 |
cvimage.o \ |
| 136 |
cvmonitor.o \ |
| 137 |
cverror.o \ |
| 138 |
cvutility.o \ |
| 139 |
cvcolors.o |
| 140 |
|
| 141 |
IMCONV_OBJS = $(IMCONV_SRCS:.c=.o) |
| 142 |
IMCONV_SRCS = cvMain.c cvReadClean.c imHidump.c imBitmap.c $(MAGICK_OBJS:.o=.c) |
| 143 |
|
| 144 |
im3conv: libfree.a $(IMCONV_OBJS) |
| 145 |
$(LINKER) -o im3conv $(IMCONV_OBJS) -L. $(LIB_LDFLAGS) -lfree -ltiff $(LIBS) |
| 146 |
|
| 147 |
$(MAGICK_OBJS:.o=.c) cvMain.c cvReadClean.c: |
| 148 |
ln -s ../im3src/$@ . |
| 149 |
|
| 150 |
######################################## |
| 151 |
# batch mode modules for image analysis |
| 152 |
######################################## |
| 153 |
|
| 154 |
|
| 155 |
IMAGE_AM_SRCS = $(IMAGE_AM_OBJS:.o=.cc) |
| 156 |
|
| 157 |
IMAGE_AM_OBJS = amPgm.o amCli.o amInfo.o amABI.o \ |
| 158 |
amDataStruct.o amMystring.o amILoad.o amLLoad.o \ |
| 159 |
amStep2.o amLaneTrack.o \ |
| 160 |
amStep3.o amTrace.o amBandCall.o \ |
| 161 |
amStep4.o amRBLoad.o amNormGrid.o amLockOnLane.o\ |
| 162 |
amStep5.o amBandCall2.o amBandCall2b.o \ |
| 163 |
amBrent.o amLinmin.o amMnbrak.o \ |
| 164 |
amPowell.o amBandModel.o amSpline.o amSplint.o amApproxPeak.o \ |
| 165 |
amBandModel2.o amWellFind.o amParafit.o amLudcmp.o \ |
| 166 |
amLubksb.o amReadTrain.o banddiff.o amBandHeight.o \ |
| 167 |
amBGSubtract.o amMultiPrep.o general.o laneconvert.o \ |
| 168 |
fill_ics.o write_ics.o write_ids.o |
| 169 |
|
| 170 |
|
| 171 |
$(IMAGE_AM_SRCS): |
| 172 |
ln -s ../im3src/$@ . |
| 173 |
|
| 174 |
################# |
| 175 |
#the lanetracker |
| 176 |
|
| 177 |
IMAGE_AM2_OBJS = amLaneTrack.o amPgm.o amStep2.o amCli.o amMystring.o \ |
| 178 |
amABI.o amInfo.o amDataStruct.o amParafit.o amLudcmp.o \ |
| 179 |
amLubksb.o amReadTrain.o amILoad.o |
| 180 |
|
| 181 |
amStep2: $(IMAGE_AM2_OBJS) |
| 182 |
$(CCCLINK) -g -o amStep2 $(CCFLAGS) $(IMAGE_AM2_OBJS) -lm |
| 183 |
|
| 184 |
############################# |
| 185 |
#lanetracing and bandcalling |
| 186 |
|
| 187 |
IMAGE_AM3_OBJS = amPgm.o amStep3.o amCli.o amMystring.o amABI.o amInfo.o \ |
| 188 |
amILoad.o amLLoad.o amDataStruct.o amTrace.o amBandCall.o \ |
| 189 |
amLaneTrack.o amBandCall2.o amBandCall2b.o amBrent.o amLinmin.o amMnbrak.o \ |
| 190 |
amPowell.o amBandModel.o amSpline.o amSplint.o amApproxPeak.o \ |
| 191 |
amBandModel2.o amWellFind.o amParafit.o amLudcmp.o \ |
| 192 |
amLubksb.o amReadTrain.o amBandHeight.o amBGSubtract.o amMultiPrep.o \ |
| 193 |
general.o laneconvert.o |
| 194 |
|
| 195 |
amStep3: $(IMAGE_AM3_OBJS) |
| 196 |
$(CCCLINK) -g -o amStep3 $(CCFLAGS) $(IMAGE_AM3_OBJS) -lm |
| 197 |
|
| 198 |
################### |
| 199 |
#the normalisation |
| 200 |
|
| 201 |
IMAGE_AM4_OBJS = amStep4.o amCli.o amMystring.o amInfo.o \ |
| 202 |
amRBLoad.o amNormGrid.o amLockOnLane.o amDataStruct.o \ |
| 203 |
amLLoad.o |
| 204 |
|
| 205 |
amStep4: $(IMAGE_AM4_OBJS) |
| 206 |
$(CCCLINK) -g -o amStep4 $(CCFLAGS) $(IMAGE_AM4_OBJS) -lm |
| 207 |
|
| 208 |
########################### |
| 209 |
#the output of the results |
| 210 |
|
| 211 |
IMAGE_AM5_OBJS = amStep5.o amCli.o amMystring.o amInfo.o amRBLoad.o \ |
| 212 |
amSpline.o amSplint.o fill_ics.o write_ics.o write_ids.o |
| 213 |
|
| 214 |
amStep5: $(IMAGE_AM5_OBJS) |
| 215 |
$(CCCLINK) -g -o amStep5 $(CCFLAGS) $(IMAGE_AM5_OBJS) -lm |
| 216 |
|
| 217 |
########################################## |
| 218 |
# little tool for comparison of band files |
| 219 |
|
| 220 |
IMAGE_BANDDIFF_OBJS = amRBLoad.o amCli.o amMystring.o amInfo.o banddiff.o |
| 221 |
|
| 222 |
banddiff: $(IMAGE_BANDDIFF_OBJS) |
| 223 |
$(CCCLINK) -g -o banddiff $(CCFLAGS) $(IMAGE_BANDDIFF_OBJS) -lm |
| 224 |
|
| 225 |
|
| 226 |
########################################################################### |
| 227 |
# little tool to patch the built-in configurations in a im3 executable file |
| 228 |
# |
| 229 |
|
| 230 |
image_configure.c: |
| 231 |
ln -s ../im3src/$@ . |
| 232 |
|
| 233 |
image_configure: image_configure.o |
| 234 |
$(LINKER) -o image_configure image_configure.o $(LIBS) |
| 235 |
|
| 236 |
|
| 237 |
########### remove all objects created by rules in this file ######## |
| 238 |
image_clean: |
| 239 |
rm -f $(IM_OBJS) imHidump.o $(BSTT_OBJS) imPrefs.bstt.o \ |
| 240 |
$(IMCONV_OBJS) $(IMAGE_AM_OBJS) |
| 241 |
|
| 242 |
########################################################### |
| 243 |
########### end of the image make file #################### |
| 244 |
########################################################### |
| 245 |
|