From 28f90eea95bb632e3ddfdbd4b6204a8f792d8ea3 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Mon, 5 Nov 2018 15:03:46 -0300 Subject: [PATCH 1/2] update ignore file --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e9f43a7..e10a104 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -out -objs doc/Informe.pdf doc/*.aux doc/*.log doc/*.synctex.gz +*.o +sort From dc56073b4a94000fd5d2eea0b8cbc7af009b41e5 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Mon, 5 Nov 2018 15:04:04 -0300 Subject: [PATCH 2/2] 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