# makefile for karl's audio stuff
#
# note that an "assign lib:" to the directory containing the libs must be
# done prior to running this.  That way, the libraries can be in ramdisk
# or some drive other than df0:
#
	CFLAGS = +L -S +iincludes.pre
	SOUNDOBJS = sounds:eagle1.o sounds:eagle2.o sounds:saucer.o sounds:crash.o sounds:xthrust.o sounds:ythrust.o

.c.o:
	-delete $*.o
	cc +P -S -B -DAMIGA $*.c

target: Lander

all:	conv8svx sounds.o player.o test.o test rocket

conv8svx:	conv8svx.o 8svx_to_c.o
	ln -o conv8svx  conv8svx.o  8svx_to_c.o  -lcl32

sounds.o:	sounds.c sample.h sounds.h

player.o:	player.c sample.h sounds.h

test.o:		test.c sample.h sounds.h

test:	test.o player.o sounds.o
	ln -o test test.o player.o sounds.o -lcl32 +C $(SOUNDOBJS)

foo.o: foo.c sample.h sounds.h

foo:	foo.o player.o sounds.o
	ln -o foo foo.o player.o sounds.o +C $(SOUNDOBJS) -lcl32 
	fixhunk foo

includes.o:	includes.c
	cc +hincludes.pre includes.c

Lander   : rocket.o rocketaudio.o player.o sounds.o cleanup.o timer.o show.o jiff.o
		-delete ram:c/#?
        ln  -o ram:rocket rocket.o rocketaudio.o player.o sounds.o cleanup.o timer.o show.o jiff.o -lcl32 +C $(SOUNDOBJS)
		copy ram:rocket Lander
		delete ram:rocket
		copy c:copy ram:c
		ram:c/copy c:delete ram:c/del
		ram:c/copy c:cd ram:c
		ram:c/copy c:rename ram:c/ren
		ram:c/copy c:list ram:c/ls

rocket.o : rocket.c
