From dc56073b4a94000fd5d2eea0b8cbc7af009b41e5 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Mon, 5 Nov 2018 15:04:04 -0300 Subject: [PATCH] add base Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Makefile b/Makefile index e69de29..e075fa0 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,15 @@ +CC=gcc +CFLAGS=-Wall -Werror +CPPFLAGS+=-Isrc/include +#LDFLAGS=-lm +ODIR=obj +SRC=src/sort.c +OBJ=$(SRC:.c=.o) + +sort: $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + +clean: + rm -f src/*.o sort + +.PHONY: sort clean