=================================================================== RCS file: /home/cvs/OpenXM/src/phc/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.5 diff -u -p -r1.1.1.1 -r1.5 --- OpenXM/src/phc/Makefile 1999/10/08 02:12:14 1.1.1.1 +++ OpenXM/src/phc/Makefile 2000/01/08 20:46:20 1.5 @@ -1,6 +1,22 @@ -all : - gcc -o phc6 phc6.c - cp phc6 ../../bin +# $OpenXM: OpenXM/src/phc/Makefile,v 1.4 2000/01/07 21:49:13 maekawa Exp $ -clean : - /bin/rm -rf *~ phc6 \ No newline at end of file +PROG=phc6 + +SRCS=phc6.c + +CC=gcc +BINDIR=../../bin + +all: $(PROG) + +install: all + install -c -s $(PROG) $(BINDIR)/$(PROG) + +clean: + rm -f $(PROG) + +distclean: + rm -f $(BINDIR)/$(PROG) + +$(PROG): $(SRCS) + $(CC) -o $(PROG) $(SRCS)