28d4a684ffc43e43d83ab1ca6e0d684afb8d7315
hiram
  Thu Apr 19 14:28:11 2012 -0700
fixup compile errors with modern environment
diff --git src/utils/cpgIslandExt/makefile src/utils/cpgIslandExt/makefile
index 50ed633..45fe817 100644
--- src/utils/cpgIslandExt/makefile
+++ src/utils/cpgIslandExt/makefile
@@ -1,2 +1,21 @@
-compile:
-	gcc readseq.c cpg_lh.c -o cpglh.exe
+include ../../inc/common.mk
+
+A = cpglh
+O = cpg_lh.o readseq.o
+
+${A}: ${O}
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O
+
+install::
+	${STRIP} ${A}${EXE}
+	rm -f ${DESTDIR}${BINDIR}/${A}${EXE}
+	cp -p ${A}${EXE} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+clean::
+	rm -f ${O} ${A}${EXE}
+
+compile:: ${O}
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O
+
+# compile:
+# 	gcc readseq.c cpg_lh.c -o cpglh.exe