src/hg/wikiPlot/makefile 1.9

1.9 2010/03/18 18:34:24 hiram
remove reference to HGCGI in makefile and fix compile warning errors
Index: src/hg/wikiPlot/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/wikiPlot/makefile,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 1000000 -r1.8 -r1.9
--- src/hg/wikiPlot/makefile	10 Mar 2009 00:34:40 -0000	1.8
+++ src/hg/wikiPlot/makefile	18 Mar 2010 18:34:24 -0000	1.9
@@ -1,15 +1,16 @@
 include ../../inc/common.mk
+include ../../inc/cgi_build_rules.mk
 
 
-L += $(MYSQLLIBS) -lm 
-MYLIBDIR = $(HOME)/src/lib/$(MACHTYPE)
-MYLIBS =  $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a
+L += ${MYSQLLIBS} -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
 
+A = wikiPlot
 O = wikiPlot.o
 
-wikiPlot: $O $(MYLIBS)
-	${CC} ${COPT} ${CFLAGS} $O $(MYLIBS) $L
-	mv ${AOUT} wikiPlot
-	${STRIP} wikiPlot${EXE}
-	chmod a+rx wikiPlot
-	mv wikiPlot $(HGCGI)
+%.o: %.c
+	${CC} ${COPT} ${CFLAGS} ${GBROWSE_D} ${LOWELAB_DEFS} ${HG_DEFS} ${HG_WARN} ${HG_INC} ${XINC} -o $@ -c $<
+
+compile: $O
+	${CC} -o $A $O ${MYLIBS} ${L}