[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / phc

File: [local] / OpenXM / src / phc / Makefile (download)

Revision 1.9, Tue Jan 1 07:17:52 2019 UTC (5 years, 3 months ago) by takayama
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +7 -4 lines

For parsing the output of the new phc with stable mixed volume.
The files sample-* is for testing phc6 with
phc6 -v -file sample-out1.txt

# $OpenXM: OpenXM/src/phc/Makefile,v 1.9 2019/01/01 07:17:52 takayama Exp $

OPENXM_CONTRIB=../../../OpenXM_contrib
OpenXM_HOME=../../../OpenXM
PROG=phc6

SRCS=phc6.c

#CC=gcc
BINDIR=../../bin

all: $(PROG)
install: all
	if [ "`uname`" = "OSF1" ]; then \
		installbsd -c -s $(PROG) $(BINDIR)/$(PROG) ; \
	else \
		install -c -s $(PROG) $(BINDIR)/$(PROG) ; \
	fi
install-for-debug:
	rm -f ${OpenXM_HOME}/bin/phc6
	(cd ${OpenXM_HOME}/bin ; ln -s ../src/phc/phc6 .)
clean:
	rm -f $(PROG)

distclean:
	rm -f $(BINDIR)/$(PROG)

# -g for lldb
$(PROG): $(SRCS)
	$(CC) -o $(PROG) -g -I${OpenXM_HOME}/include $(SRCS) -L${OpenXM_HOME}/lib -lgc

phcpack:
	(cd ${OPENXM_CONTRIB}/PHC/Objects/ ; make phc)
	gzip -c -9 /tmp/phc | uuencode phc.gz > ${BINDIR}/fbsd-phcv2p.gz.uuencoded