6894b3e9c5590a37147afd1485f21f07285c7ed1 galt Mon Sep 19 17:10:21 2016 -0700 Renamed phyloGif to phloPng for greater accuracy in the name. Because when we switched to PNG, only 16-bit color palettes are supported now. We lost the ability to do 8-bit color palette which is needed by GIF. diff --git src/hg/phyloPng/makefile src/hg/phyloPng/makefile new file mode 100644 index 0000000..229bd30 --- /dev/null +++ src/hg/phyloPng/makefile @@ -0,0 +1,33 @@ +kentSrc = ../.. +include ../../inc/common.mk + +L += $(MYSQLLIBS) -lm +MYLIBDIR = ../../lib/${MACHTYPE} +MYLIBS = $(MYLIBDIR)/jkhgap.a $(MYLIBDIR)/jkweb.a + +A = phyloPng + +O = ${A}.o + +include ../../inc/cgi_build_rules.mk + +my:: compile + if [ -d "${BINDIR}" ] && [ ! ${CGI_BIN}-${USER}/$A -ef ${DESTDIR}${BINDIR}/$A ] ; then \ + cp ${CGI_BIN}-${USER}/$A ${DESTDIR}${BINDIR}/; \ + fi + +compile: $O + ${CC} $O ${MYLIBS} ${L} + mv ${AOUT} $A${EXE} + chmod a+rx $A${EXE} + +test: compile + ${DESTDIR}${BINDIR}/phyloPng -phyloPng_tree=17way.nh > test.png + file test.png + +testWeb: compile + wget -O testWeb.png 'http://hgwdev.cse.ucsc.edu/cgi-bin/phyloPng?phyloPng_tree=(A:0.1,B:0.1);' + file testWeb.png + +clean:: + rm -f test.png testWeb.png