diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..45ca86e --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +SHELL := /bin/bash + + +# ============================================ +# COMMANDS + +CC = gcc +RM = rm -f +CFLAGS=-lm + +# ========================================== +# TARGETS + + +EXECUTABLES = serial + +all: $(EXECUTABLES) + +serial: serial.c + $(CC) $< -o $@ $(CFLAGS) + +clean: + $(RM) *.o *~ $(EXECUTABLES)