Generic Makefile: Difference between revisions

From genomewiki
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 1: Line 1:
include ../common.mk
<pre>
include $(KENT)/src/inc/common.mk
include $(KENT)/src/inc/common.mk


Line 5: Line 5:
L = -lm $(MYSQLLIBS)
L = -lm $(MYSQLLIBS)
MYLIBDIR = $(KENT)/src/lib/$(MACHTYPE)
MYLIBDIR = $(KENT)/src/lib/$(MACHTYPE)
MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a
MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a  


O = bedFlanking.o ../lib/bedUtil.o
O = $(PROG).o ../lib/bedUtil.o


bedFlanking: $O $(MYLIBS)
$(PROG): $O $(MYLIBS)  
         ${CC} ${COPT} ${CFLAGS}  -o $(HOME)/bin/$(MACHTYPE)/bedFlanking $O $(MYLIBS) $L
         ${CC} ${COPT} ${CFLAGS}  -o $(HOME)/bin/$(MACHTYPE)/$(PROG) $O $(MYLIBS) $L
         strip $(HOME)/bin/$(MACHTYPE)/bedFlanking
         strip $(HOME)/bin/$(MACHTYPE)/$(PROG)
 
e:
        vim bedFlanking.c
 
splint: bedFlanking.c
        splint -weak $(CFLAGS) bedFlanking.c
 
run: bedFlanking
        bedFlanking -concat test/regions.bed test/genes.bed stdout
 
test1: bedFlanking
        bedFlanking -concat test/5-short.bed test/jgi-exons.bed stdout
 
symbols: $O $(MYLIBS) maxfa.c
        ${CC} ${COPT} ${CFLAGS}  -o $(HOME)/bin/$(MACHTYPE)/bedFlanking $O $(MYLIBS) $L
 
corefile: core
        gdb bedFlanking core
debug:
        gdb --args
 
tags: bedFlanking.c
        ctags *.c


clean:
clean:
Line 40: Line 17:
         rm core
         rm core


test: bedFlanking.c
</pre>
        bedFlanking
       


# DO NOT DELETE
Make sure that the four indented lines are indenten with tabs, otherwise the file will not work.

Revision as of 14:00, 12 September 2006

include $(KENT)/src/inc/common.mk

CFLAGS=-I ${KENT}/src/inc -I ${KENT}/src/hg/inc -g
L = -lm $(MYSQLLIBS)
MYLIBDIR = $(KENT)/src/lib/$(MACHTYPE)
MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a 

O = $(PROG).o ../lib/bedUtil.o

$(PROG): $O $(MYLIBS) 
        ${CC} ${COPT} ${CFLAGS}  -o $(HOME)/bin/$(MACHTYPE)/$(PROG) $O $(MYLIBS) $L
        strip $(HOME)/bin/$(MACHTYPE)/$(PROG)

clean:
        rm *.o
        rm core

Make sure that the four indented lines are indenten with tabs, otherwise the file will not work.