20257ca76462642269e671000c2a4dad67f6b8ea
hiram
  Fri Mar 29 11:43:53 2013 -0700
testing new makefile organization refs #9104
diff --git src/ameme/makefile src/ameme/makefile
index 5aea728..af7228d 100644
--- src/ameme/makefile
+++ src/ameme/makefile
@@ -1,26 +1,5 @@
-include ../inc/common.mk
-
-L += -lm -lz
-MYLIBDIR = ../lib/${MACHTYPE}
-MYLIBS =  $(MYLIBDIR)/jkweb.a
-
-O = ameme.o fragFind.o
-ifdef GS_PATH
-CFLAGS = -DGS_PATH='${GS_PATH}'
-endif
-# set location of gs on webserver with: make GS_PATH='"/full_path"' cgi
-
-alpha: $(O)
-	${CC} ${COPT} ${CFLAGS} $O ${MYLIBS} ${L}
-	${STRIP} ${AOUT}${EXE}
-	mv ${AOUT} ${BINDIR}/ameme
-
-cgi: $(O)
-	${CC} ${COPT} ${CFLAGS} $O ${MYLIBS} ${L}
-	mv ${AOUT} ameme.exe
-	chmod 755 ameme.exe
-	mv ameme.exe $(HOME)/.html/cgi-bin
-
-clean::
-	rm -f ${O} ${AOUT} ameme.exe
-
+kentSrc = ..
+A = ameme
+extraObjects = fragFind.o
+include $(kentSrc)/inc/userApp.mk
+L += -lm