#
# Fredmon makefile
#

AS = asm68k
SRECAT = srec_cat
CAT = /bin/cat
RM = /bin/rm

SRC = fredmon.asm

SRCS = $(wildcard *.asm)

SFILE = $(SRC:%.asm=%)
EPROM = $(SFILE).bin
SLIST = $(SRC).L68
SREC = $(SRC).S68

all: $(SREC) $(EPROM)
#all: $(SREC) 

$(EPROM): $(SREC)
	$(SRECAT) $(SREC) -offset -0x80000 -o $(EPROM) -binary

$(SREC): $(SRCS)
	$(AS) -s -l $(SRC)

clean:
	$(RM) -f $(SREC) $(SLIST) $(EPROM)
