include ../../Makeincl

LIBS      = 
CFLAGS    = 
AFLAGS    = 

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


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

clean:
	-$(RM)	$(addsuffix .hex,$(basename $(CSOURCE)) $(basename $(ASMSOURCE))) \
                $(addsuffix .hx, $(basename $(CSOURCE)) $(basename $(ASMSOURCE))) \
                $(addsuffix .elf,$(basename $(CSOURCE)) $(basename $(ASMSOURCE))) \
		$(addsuffix .o,$(basename $(ASMSOURCE))) \
		core

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

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