CC      = gcc

#
# makefile for Rock-ulator
# by Brian Levine
#

CFLAGS = -fstrength-reduce -funroll-all-loops -finline-functions -fomit-frame-pointer -O2 -m486 -Wall

rockultr.exe:  rockultr.o m6502.o twkuser.o xblit.o
	gcc -s -o rockultr.exe rockultr.o m6502.o twkuser.o xblit.o -lalleg -laudio

rockultr.o:  rockultr.c m6502.h makefile
	 gcc $(CFLAGS) -c rockultr.c

twkuser.o:  twkuser.c makefile
	 gcc $(CFLAGS) -c twkuser.c

xblit.o:  xblit.s makefile
	 gcc -m486 -c xblit.s

clean:
	del *.o 
	del rockultr.exe





