
# Modified Definitions #

HOME = /u3/usystem

VENDOR = sequent
CPU = i386
OS = bsd43

# Basic Definitions #

INC = ../inc
BIN = ../bin

# Targets #

ALL = ${BIN} ${BIN}/mon-cpp

# Directives #

all : ${ALL}

clean :
	rm -f *.o y.tab.c

cpr :
	cpr *.c > cpr.out

# Dependencies #

OFILES = uMpp.o y.tab.o uBuffer.o uTable.o uFunctions.o uType.o

CC = gcc -O -I${INC} -DMONCCDIR=\"$(HOME)/monitor/work/src/\" -B${HOME}/gnu/bin/

${BIN} :
	mkdir $@

$(BIN)/mon-cpp: $(OFILES)
	${CC} $(OFILES) -o $@

.SUFFIXES: .o .c

%.o : %.c ; ${CC} $< -c -o $@

YACC = yacc

uFunctions.o: ${INC}/uType.h ${INC}/uMpp.h

y.tab.o : ${INC}/c-parse.h ${INC}/uType.h ${INC}/uTable.h ${INC}/uMpp.h

y.tab.c : c-parse.y
	echo "Should get 19 shift/reduce conflicts from $(YACC)"
	$(YACC) c-parse.y

uTable.o : ${INC}/uTable.h ${INC}/uMpp.h

uType.o : ${INC}/uType.h ${INC}/uMpp.h

# Local Variables: #
# compile-command: "dmake -k" #
# End: #
