-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
38 lines (29 loc) · 896 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
#CFLAGS := -DDEBUG -DSPAWN_IN_GDB
#CFLAGS := -DDEBUG -DSPAWN_IN_XTERM
#CFLAGS := -DDEBUG
#CFLAGS := -DDEBUG -O3 -march=core2
CFLAGS := -O3 -march=core2
CFLAGS += -m32 -std=gnu99 -g -g3 -ggdb -gdwarf-4 -Wall -Wextra
SAMPLES_DIR := ../../../samples/
AFL_PATH := $(CURDIR)/../afl/
all: fakeforksrv run_via_fakeforksrv
cp "$(CURDIR)/fakeforksrv" "$(AFL_PATH)/"
cp "$(CURDIR)/run_via_fakeforksrv" "$(AFL_PATH)/"
.PHONY: clean all check install
clean:
-rm -f fakeforksrv run_via_fakeforksrv
-rm -f "$(AFL_PATH)/fakeforksrv"
-rm -f "$(AFL_PATH)/run_via_fakeforksrv"
check-cs-%: all
[ -x "$(AFL_PATH)/multicb-qemu" ]
AFL_PATH="$(AFL_PATH)" "$(CURDIR)/check-cs.sh" $*
check: \
check-cs-EAGLE_00004 \
check-cs-NRFIN_00006 \
check-cs-YAN01_00009 \
check-cs-KPRCA_00016 \
check-cs-KPRCA_00048 \
check-cs-LUNGE_00005 \
check-cs-CADET_00003
@echo "All tests passed :)"
#check-cs-KPRCA_00024 \