Add makefile
This commit is contained in:
parent
3ca002f252
commit
cec45601ec
1 changed files with 8 additions and 0 deletions
8
Makefile
Normal file
8
Makefile
Normal file
|
@ -0,0 +1,8 @@
|
|||
programs := $(patsubst %.c, bin/%, $(wildcard *.c))
|
||||
all: bin $(programs)
|
||||
bin:
|
||||
mkdir bin
|
||||
bin/% : %.c
|
||||
gcc -o $@ $<
|
||||
clean :
|
||||
rm $(programs)
|
Loading…
Reference in a new issue