############################################################################ # Makefile for the ALMOS-MKH "pgcd" application ############################################################################ -include ../../params-soft.mk ifeq ($(ARCH_NAME),) $(error Please define in ARCH_NAME parameter in params-soft.mk!) endif OBJS = build/pgcd.o INCLUDES = -I. -I$(LIBC_INCLUDE) compile: dirs build/pgcd.elf build/pgcd.elf : $(OBJS) pgcd.ld $(LD) -o $@ -T pgcd.ld $(OBJS) -nostdlib -L$(LIBC) -lc $(DU) -D $@ > $@.txt build/pgcd.o : pgcd.c $(CC) $(INCLUDES) -L$(LIBC) $(CFLAGS) -c -o $@ $< $(DU) -D $@ > $@.txt dirs: @mkdir -p build/ clean: rm -rf build/*.o build/*.elf build/*.o.txt .PHONY: dirs clean