From ffbb883fb6c367aa29ab8e0f362f60a6d4ac037f Mon Sep 17 00:00:00 2001 From: anapt Date: Thu, 18 Jan 2018 20:41:24 +0200 Subject: [PATCH] Makefile --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 Makefile 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)