diff options
| author | jvoisin | 2013-01-15 21:31:40 +0100 |
|---|---|---|
| committer | jvoisin | 2013-01-15 21:31:40 +0100 |
| commit | 808069c906a036f3b8c5de51e302245154131584 (patch) | |
| tree | c8e046626973ee28a793c24faba312ace286c8c1 /Makefile | |
First commit with an ugly makefile !
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7933f7e --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | OUTPUT_DIR=./bin/ | ||
| 2 | |||
| 3 | CC=gcc | ||
| 4 | CFLAGS=-m32 | ||
| 5 | |||
| 6 | |||
| 7 | all: directory prog | ||
| 8 | |||
| 9 | directory: | ||
| 10 | @mkdir -p $(OUTPUT_DIR) | ||
| 11 | |||
| 12 | prog: detection crash | ||
| 13 | |||
| 14 | crash: header_screwer 10123 | ||
| 15 | |||
| 16 | 10123: | ||
| 17 | $(CC) $(CFLAGS) ./crash/10123.c -o $(OUTPUT_DIR)$@ | ||
| 18 | |||
| 19 | header_screwer: | ||
| 20 | $(CC) $(CFLAGS) ./crash/header_screwer.c -o $(OUTPUT_DIR)$@ | ||
| 21 | |||
| 22 | detection: | ||
| 23 | $(CC) $(CFLAGS) ./detect/*.c -o $(OUTPUT_DIR)$@ | ||
| 24 | |||
| 25 | clean: | ||
| 26 | rm -Rf $(OUTPUT_DIR) | ||
