CFLAGS = -O

OBJ = machdep.o glib.o list.o dx100.o tx81z.o tx81p.o dw8000.o yama_com.o

#LIBS = -lcurses -ltermcap
LIBS = -lcurses

glib : $(OBJ)
	cc $(OBJ) $(LIBS) -o glib

# On the UNIX PC (at least mine), cbreak() and nocbreak() aren't in
# libcurses.a so this hack (-DFAKECBREAK) is one way out.
machdep.o : machdep.c
	# On the UNIX PC, add a -DFAKECBREAK to the following line
	cc $(CFLAGS) -c machdep.c

lint :
	lint glib.c list.c machdep.c dx100.c dw8000.c tx81z.c tx81p.c \
	yama_com.c

st-arc :
	arc a glib.arc glib.c list.c dx100.c tx81z.c tx81p.c glib.h \
	yama_com.c dw8000.c  st-mach.c st-mach.h
