From e7497d2dde46b8fae5493c127f4dc33307a65da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Fri, 27 Mar 2015 11:19:16 -0300 Subject: initial commit --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3ab214d --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +CC = gcc +CFLAGS = -Wall -Iinclude/ +OUTPUT = main +MAIN = main.c +DEPS = include/types.h include/board.h include/print.h include/piece.h +OBJ = lib/board.o lib/print.o lib/piece.o + +%.o: %.c $(DEPS) + $(CC) -c -o $@ $< $(CFLAGS) + +all: $(OBJ) + $(CC) $(CFLAGS) -o $(OUTPUT) $^ $(MAIN) + +clean: + rm -f $(OUTPUT) $(OBJ) -- cgit v1.2.3