CFLAGS = -i -O
LDFLAGS = -i
INCLUDES = /usr/include/graphics.h
LIBRARIES = /usr/local/lib/i386/libgraph.a
BINDIR = /bin
PROGS = demo tm


all:	$(PROGS)

install:	$(PROGS)
	cp $(PROGS) $(BINDIR)
	cd $(BINDIR); strip $(PROGS); chmod 755 $(PROGS)

clean:
	rm -rf $(PROGS) *.o

demo:	demo.o $(LIBRARIES)
	cc -o demo $(LDFLAGS) demo.o -lgraph
	chmem =24000 demo

tm:	tm.o $(LIBRARIES)
	cc -o tm $(LDFLAGS) tm.o -lgraph
	chmem =8192 tm


tm.o:		$(INCLUDES)
demo.o:		$(INCLUDES)
