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
|
# makefile to compile shared objects using the gnu C compiler
# Stefan Kurtz, October 2000
#CC=gcc
# in 64-bit mode add -m64
CFLAGS+=-Wall -Werror -O3 -g
ifneq ($(SYSTEM),Windows)
CFLAGS+=-fPIC
endif
SPLINTFLAGS=-I../../include -DDEBUG -f ../../Splintoptions
include Shareddef
# the following may be necessary to be redefined
all:selsplicesite.${SHAREDSUFFIX}\
selstartend.${SHAREDSUFFIX}\
sel392.${SHAREDSUFFIX}\
endmatch.${SHAREDSUFFIX}\
end2end-match.${SHAREDSUFFIX}\
selnone.${SHAREDSUFFIX}\
dbseqstat.${SHAREDSUFFIX}\
mstat.${SHAREDSUFFIX}\
xmlout.${SHAREDSUFFIX}\
lenpospos.${SHAREDSUFFIX}\
lowcomplex.${SHAREDSUFFIX}\
printfasta.${SHAREDSUFFIX}\
rightmost.${SHAREDSUFFIX}\
mergematches.${SHAREDSUFFIX}\
mergematches-dbg.${SHAREDSUFFIX}\
polyafun.${SHAREDSUFFIX}\
cgvizout.${SHAREDSUFFIX}\
selmatchcontext.${SHAREDSUFFIX}\
restrictgap.${SHAREDSUFFIX}\
vmerout.${SHAREDSUFFIX}\
qgramout.${SHAREDSUFFIX}\
selsuperinc.${SHAREDSUFFIX}
# on most platforms the shared objects have a suffix .so
%.so:%.c Shareddef
${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@ ${LDFLAGS}
mergematches-dbg.so:mergematches.c Shareddef
${CC} ${CFLAGS} ${CPPFLAGS} -DDEBUG ${SHARED} $< -o $@ ${LDFLAGS}
# on HP-UX the shared objects have a suffix .sl
%.sl:%.c Shareddef
@${CC} ${CFLAGS} ${CPPFLAGS} ${SHARED} $< -o $@ ${LDFLAGS}
# the following goal generates the output of the C-preprocessor
# applied to the given C-file.
%.prepro:%.c Shareddef
@${CC} -E -g3 ${CFLAGS} ${CPPFLAGS} -c $< -o $@
%.splint:%.c Shareddef
splint ${SPLINTFLAGS} -DDEBUG -DALPHABETSIZE=4 $<
# the following goal removes all shared objects and all header files
clean:
rm -f *.${SHAREDSUFFIX} *.h xmlfunc.c
|