include ../../../Makeincl

LIBS      = 
CFLAGS    = 
AFLAGS    = 

ASMSOURCE = $(wildcard *.s)
CSOURCE   = $(wildcard *.c)

.INTERMEDIATE: $(addsuffix .o,$(basename $(CSOURCE)) $(basename $(ASMSOURCE)))

all:	$(addsuffix .hex,$(basename $(CSOURCE)) $(basename $(ASMSOURCE)))

clean:
	-$(RM)	$(addsuffix .hex,$(basename $(CSOURCE)) $(basename $(ASMSOURCE))) core

%.hex:	%.c
	$(CC68) $(CFLAGS) -o $@ $< $(LIBS)

%.hex:	%.s
	$(AS68) $(AFLAGS) -o $@ $< $(LIBS)
