BarryServer : Git

All the code for all my projects
// BarryServer : Git / PolymorphicEngine / blob / e7850a623d92afc80887a5f115bb4b0fa723c98c / Makefile

// Related

PolymorphicEngine

Barry Initial commit 646db1c (3 years, 5 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
	@echo "COMPILING $<..."
	@$(CC) -c $< -o $@ $(CFLAGS)