include ../../../Makeincl

LIBS      = 
CFLAGS    = 
AFLAGS    = 

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


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

clean:
	-$(RM)  *.hex *.hx *.o *.elf core

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

%.hex:	%.s
	$(AS68) $(AFLAGS) -o $@ $< $(LIBS)
	-$(RM) $(addsuffix .o,$(basename $<))
