advent-of-c-ode/day1/Makefile

10 lines
207 B
Makefile

BASENAME= $(shell basename `pwd`)
build:
@rm ../bin/$(BASENAME) || echo ""
@gcc $(BASENAME).c ../libs/* -o ../bin/$(BASENAME)
run: build
@../bin/$(BASENAME) input.txt a
@../bin/$(BASENAME) input.txt b