genesis/
genesis/bin/
genesis/doc/
genesis/etc/
genesis/microsoft/coldcc/
genesis/microsoft/crypt/
genesis/microsoft/data/
genesis/microsoft/db/
genesis/microsoft/genesis/
genesis/microsoft/io/
genesis/microsoft/misc/
genesis/microsoft/mod/
genesis/microsoft/ndbm/
genesis/microsoft/ops/
genesis/microsoft/pcode/
genesis/test/
# Cold driver

CFLAGS=@CFLAGS@ -I../include
LDFLAGS=@LDFLAGS@
LIBS=@LIBS@
CC=@CC@
RANLIB=@RANLIB@
LINT=@LINT@
YACC=@YACC@

SYS=@SYS@
CPU=@CPU@
VENDOR=@VENDOR@

prefix=@prefix@
BINDIR=$(prefix)/bin
SRCDIR=$(prefix)/src

VERSION=@VERSION@

OBJS = operators.o buffer.o error.o list.o object.o dict.o string.o\
       data.o sys.o misc.o task.o file.o network.o math.o

SRCS = `echo $(OBJS) | sed -e 's/\.o/.c/g'`              

#######
# rules

all: $(OBJS)

clean:
	rm -f *~ *.BAK *.bak

scrub:
	rm -f *.o *~ *.BAK *.bak

makefile:
	@cd $(prefix); configure -q

depend:
	@makedepend -- $(CFLAGS) -- $(SRCS) > /dev/null 2>&1
	@rm Makefile.bak

lint:
	$(LINT) -u $(SRCS)

patchable: scrub
	@chmod -f u+w Makefile
	@rm -f Makefile

../include/parse.h:
	cd ../; make grammar.o include/parse.h