src/hg/hgsqlSwapTables/makefile 1.1

1.1 2010/05/22 02:21:39 braney
a utility to swap tables with renames while checking for existance
Index: src/hg/hgsqlSwapTables/makefile
===================================================================
RCS file: src/hg/hgsqlSwapTables/makefile
diff -N src/hg/hgsqlSwapTables/makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/hg/hgsqlSwapTables/makefile	22 May 2010 02:21:39 -0000	1.1
@@ -0,0 +1,18 @@
+include ../../inc/common.mk
+
+L += $(MYSQLLIBS) -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  $(MYLIBDIR)/jkhgap.a ${MYLIBDIR}/jkweb.a
+
+A = hgsqlSwapTables
+O = hgsqlSwapTables.o
+
+hgsqlSwapTables: ${O} ${MYLIBS}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile:: ${O}
+	${CC} ${COPT} -o ${A}${EXE} ${O} ${MYLIBS} $L
+
+clean::
+	rm -f ${A}${EXE} ${O}