PolymorphicEngine
Barry Cleaning build process bf22be0 (3 years, 2 months ago)PRODUCT = poly_original CC=gcc CFLAGS= LFLAGS=-T script.ld C_SOURCES := $(shell find src -name '*.c') OBJS = $(sort $(subst src/,build/,$(subst .c,.o,$(C_SOURCES)))) $(PRODUCT): $(OBJS) @echo "LINKING $(PRODUCT)..." @$(CC) -o $@ $^ $(LFLAGS) clean: @echo "REMOVING OBJECT FILES..." @touch build/main.o @rm $(OBJS) build/%.o: src/%.c @mkdir -p build/ @echo "COMPILING $<..." @$(CC) -c $< -o $@ $(CFLAGS)