###########################################################################
#                                                                         #
#	Objective-C object make dependencies                              #
#                                                                         #
###########################################################################

all:	Test1 Test2 Test3

Random.o: Random.h Random.m
	cc -o Random.o -Wall -c Random.m

Test1.o: Test1.m Random.h
	cc -Wall -c Test1.m

Test2.o: Test2.m Random.h
	cc -Wall -c Test2.m

Test3.o: Test3.m Random.h
	cc -Wall -c Test3.m

Test1: Test1.o Random.o
	cc -O -g  -Wimplicit -o Test1 Test1.o Random.o -lNeXT_s -lsys_s

Test2: Test2.o Random.o
	cc -O -g  -Wimplicit -o Test2 Test2.o Random.o -lNeXT_s -lsys_s
	
Test3: Test3.o Random.o
	cc -O -g  -Wimplicit -o Test3 Test3.o Random.o -lNeXT_s -lsys_s

###########################################################################
#                                                                         #
#	Other make definitions                                            #
#                                                                         #
###########################################################################

default:
	make all

clean:
	rm -f *.o Test[123]

over:
	make clean
	make
