summaryrefslogtreecommitdiff
path: root/Makefile
blob: 255c42c7f91f78bbee576658b60b1791eae7e840 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
OUTPUT_DIR=./bin/

CC=gcc
CFLAGS=-m32


all: directory prog

directory:
	@mkdir -p $(OUTPUT_DIR)

prog: detection crash

crash: header_screwer 10123 signals

signals:
	$(CC) $(CFLAGS) ./crash/signals.c -o $(OUTPUT_DIR)$@

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)