From 808069c906a036f3b8c5de51e302245154131584 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 15 Jan 2013 21:31:40 +0100 Subject: First commit with an ugly makefile ! --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7933f7e --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +OUTPUT_DIR=./bin/ + +CC=gcc +CFLAGS=-m32 + + +all: directory prog + +directory: + @mkdir -p $(OUTPUT_DIR) + +prog: detection crash + +crash: header_screwer 10123 + +10123: + $(CC) $(CFLAGS) ./crash/10123.c -o $(OUTPUT_DIR)$@ + +header_screwer: + $(CC) $(CFLAGS) ./crash/header_screwer.c -o $(OUTPUT_DIR)$@ + +detection: + $(CC) $(CFLAGS) ./detect/*.c -o $(OUTPUT_DIR)$@ + +clean: + rm -Rf $(OUTPUT_DIR) -- cgit v1.3