#
#	(C)1993 Institute for New Generation Computer Technology
#	Read COPYRIGHT for detailed information.
#
#	Makefile for Dynamical Constraint Programming Prototype System
#

#	CC specifies c-compiler.
#	(Either 'cc' or 'gcc' will do.)
#
#	CFLAGS gets flags, and get passed to lint.
#
CC	= gcc
CFLAGS	= -g -DUNIX

#	YACC specifies compiler-compiler.
#	(Either 'bison -y' or 'yacc' will do.)
#
YACC	= bison -y

#	Machine independent part.
#
INCS =	config.h define.h typedef.h global.h command.h \
		debug.h vnode.h
PSRC =	binding.c clause.c expression.c feature.c \
		formula.c link.c print.c y.tab.c
SSRC =	main.c delete.c pressure.c probe.c literallist.c \
		subsume.c absorb.c copy.c control.c \
		allocate.c spread.c command.c backp.c \
		debug.c info.c speech.c special.c loop.c
POBJ =	binding.o clause.o expression.o feature.o \
		formula.o link.o print.o y.tab.o
SOBJ =	main.o delete.o pressure.o probe.o literallist.o \
		subsume.o absorb.o copy.o control.o \
		allocate.o spread.o command.o backp.o \
		debug.o info.o speech.o special.o loop.o


all :: ${POBJ} ${SOBJ}
	echo 'Completed'

${POBJ} : ${INCS} proto.h

${SOBJ} : ${INCS} proto.h

y.tab.c : grammar.y ${INCS} proto.h
	${YACC} grammar.y

clean :
	rm *.o *.tab.c *~
