#
# 	makefile
#
# 	Copyright (C) 1996 William Adams  
# 	All rights reserved.
#

SHELL		= /bin/sh
INCLUDES 	= 
OBJ			= obj
TEST1		= yagstest
LIB1		= ../gpic/libgpic.so

CC 			= mwcc
CFLAGS		= -nosyspath -O2 -DPPC603=1 -Hcpplvl=3 -I./ -I../ -I../gpic
LD 			= mwld
LDFLAGS		= $(LIB1)

OBJS 		= $(CPPOBJS)

#CPPOBJS 	=  \
#	tstbitmap.o	\
#	tsteffects.o \
#	tstquad.o	\

CPPOBJS 	=  \
	camera.o	\
	effects.o	\
	random.o	\
	screen.o	\
	tst3dline.o	\
	tstcirc.o	\
	tstelips.o	\
	tstline.o	\
	tstpoint.o	\
	tstrect.o	\
	tsttri.o
	
.SUFFIXES:.cpp $(SUFFIXES)

.cpp.o:
	$(CC) $(INCLUDES) $(CFLAGS) -c $<
	
all:	$(OBJS) $(TEST1)
	@echo Just made $(notdir $(TEST1))


$(TEST1): $(OBJS) yagstest.o $(LIB1)
	$(LD) -o $(TEST1) yagstest.o $(OBJS) $(LDFLAGS)

clean:
	@echo Removing $(TEST1) $(OBJ)
	rm -f $(TEST1)
	rm *.o
