#                        Copyright (c) 1987 Bellcore
#                            All Rights Reserved
#       Permission is granted to copy or use this program, EXCEPT that it
#       may not be sold for profit, the copyright notice must be reproduced
#       on copies, and credit should be given to Bellcore where it is due.
#       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.

#	$Header: Makefile,v 4.1 88/06/21 14:02:01 bianchi Exp $
#	$Source: /tmp/mgrsrc/demo/tests/RCS/Makefile,v $

# makefile for demo test routines
CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
CROSSBIN = $(CROSSDIR)/bin
CC=$(CROSSBIN)/cgcc
AR=$(CROSSBIN)/car
HOSTCC = cc
HOSTCCFLAGS = -O  -I. -Iatari -I../lib

LIB= ../../lib/libmgr.olb
LFLAGS = -mint -v
INCL= -I../../lib
CPIO=test.cpio
CFLAGS=-O $(INCL) -mint -O -nostdinc -I/net/acae127/home/bammi/atari/mint/mintlib/include \
-fomit-frame-pointer -fcombine-regs

START=.

CFILES= test_rop.c test_text.c test_menu.c half.c many.c

ALL =	test_rop test_text test_menu half many

all small:	$(ALL)

fast:		$(CFILES)
		$(CC) -c $(CFLAGS) $(CFILES)
		make all

test_menu:	test_menu.o $(LIB)
		$(CC) $(CFLAGS) -o test_menu test_menu.o $(LIB) $(LFLAGS)

scale:	scale.o $(LIB)
		$(CC) $(CFLAGS) -o scale scale.o $(LIB) $(LFLAGS)

blank:	blank.o $(LIB)
		$(CC) $(CFLAGS) -o blank blank.o $(LIB) $(LFLAGS)

cut:	cut.o $(LIB)
		$(CC) $(CFLAGS) -o cut cut.o $(LIB) $(LFLAGS)

snap:	snap.o $(LIB)
		$(CC) $(CFLAGS) -o snap snap.o $(LIB) $(LFLAGS)

many:	many.o $(LIB)
		$(CC) $(CFLAGS) -o many many.o $(LIB) $(LFLAGS)

cal:		cal.o $(LIB)
		$(CC) $(CFLAGS) -o cal cal.o $(LIB) $(LFLAGS)

half:		half.o $(LIB)
		$(CC) $(CFLAGS) -o half half.o $(LIB) $(LFLAGS)

test_rop:	test_rop.o $(LIB)
		$(CC) $(CFLAGS) -o test_rop test_rop.o $(LIB) $(LFLAGS)

test_text:	test_text.o $(LIB)
		$(CC) $(CFLAGS) -o test_text test_text.o $(LIB) $(LFLAGS)

clean:
		rm -f *.o

clobber:
		rm -f $(ALL)

install smallinstall:

list:
	@for i in $(CFILES) Makefile; do \
		echo "$(START)/$$i"; \
	done

cpio:
	make -s list | cpio -ocv > $(CPIO)
