8 lines
144 B
Makefile
8 lines
144 B
Makefile
programs := $(patsubst %.c, bin/%, $(wildcard *.c))
|
|
all: bin $(programs)
|
|
bin:
|
|
mkdir bin
|
|
bin/% : %.c
|
|
gcc -g -o $@ $<
|
|
clean :
|
|
rm $(programs)
|