.SUFFIXES: .c .o .h

CFILES= main.c rs232.c screen.c
HFILES=
OBJS= main.o menuhandler.o menu.o :cleanup.o
DEL=ram:c/del
COPY=ram:c/copy
TARGET= test

.c.o:
	-$(DEL) $*.o
	cc +P -S -B -DAMIGA $*.c

$(TARGET): $(OBJS)
	-$(DEL) $(TARGET)
	ln -o t:$(TARGET) $(OBJS) -lcl32
	$(COPY) t:$(TARGET) $(TARGET)
	-$(DEL) t:$(TARGET)

print: Makefile $(HFILES) $(CFILES)
	pr Makefile $(HFILES) $(CFILES)
