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