#############################################################################
# MegaJitter V1.3 Makefile			(C) 1994 L.Vanhelsuwé
# ------------------------			---------------------
# 
# Building tools:
# 
# 	- SAS C V6.1 C compiler
# 	- GenAm 3.01 Assembler
# 
#############################################################################

PROGRAM = MJ

ASDIR = B:DEVEL/Devpac
ASSEM = $(ASDIR)/Genam

# List all the object modules that are needed to build $(PROGRAM)
# (Order is not important since that's handled by .WTH file passed to BLink)

OBJ = mj.o ja.o

#CFLAGS = -v -cus -m2 -iinclude:
#CFLAGS = -v -cfus -m2 -iinclude:
#CFLAGS = -v -cus -m2 -iinclude:
CFLAGS = 

.s.o:
	$(ASSEM) $* -VP=68030 -D -L -Iinclude: -H$(ASDIR)/system2.gs

.c.o:
	SC:C/sc $(CFLAGS) $*.c 


$(PROGRAM):  $(OBJ) 
	SC:C/slink WITH mj.wth NODEBUG

# First of all the dependencies of the program modules

ja.o:			ja.s include:std

# Then finally the dependencies for the main module.

mj.o:			mj.c SCOPTIONS
