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