src/utils/faCount/makefile 1.4

1.4 2009/03/30 17:30:25 hiram
prepare the makefile for userApps make target, now with DESTDIR
Index: src/utils/faCount/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/faCount/makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -b -B -U 4 -r1.3 -r1.4
--- src/utils/faCount/makefile	19 Dec 2006 23:35:33 -0000	1.3
+++ src/utils/faCount/makefile	30 Mar 2009 17:30:25 -0000	1.4
@@ -1,9 +1,18 @@
 include ../../inc/common.mk
 
+L += -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkweb.a
+
+A = faCount
 O = faCount.o 
 
 faCount: ${O}
-	${CC} -o ${BINDIR}/faCount $O ../../lib/${MACHTYPE}/jkweb.a -lm
+	${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} ${L}
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile::
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
 clean::
-	rm -f ${O}
+	rm -f ${A} ${O}