include ../Makeincl LIBS = -limpro -lm CFLAGS = ASMSOURCE = $(wildcard *.s) CSOURCE = $(wildcard *.c) all: $(addsuffix .hex,$(basename $(CSOURCE)) $(basename $(ASMSOURCE))) libvision libvision libVision: cd libvision-2.2 && $(MAKE) clean: -$(RM) $(addsuffix .hex,$(basename $(CSOURCE)) $(basename $(ASMSOURCE))) \ $(addsuffix .o,$(basename $(CSOURCE))) \ $(addsuffix .o,$(basename $(ASMSOURCE))) \ $(addsuffix .elf,$(basename $(CSOURCE))) \ core cd libvision-2.2 && $(MAKE) clean cleanobj: -$(RM) *.o %.hex: %.c $(CC68) $(CFLAGS) -o $@ $< $(LIBS) %.hex: %.s $(AS68) $(CFLAGS) -o $@ $< $(LIBS)