Add makefile

This commit is contained in:
Antonia 2022-12-05 10:38:49 +01:00
parent 3ca002f252
commit cec45601ec

8
Makefile Normal file
View file

@ -0,0 +1,8 @@
programs := $(patsubst %.c, bin/%, $(wildcard *.c))
all: bin $(programs)
bin:
mkdir bin
bin/% : %.c
gcc -o $@ $<
clean :
rm $(programs)