• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1ifdef DEBUG
2  OPT=-O0
3else
4  OPT=-O3
5endif
6SYS = $(shell uname -s)
7DL =
8ifeq "$(SYS)" "Linux"
9    DL = -ldl
10endif
11
12all:	afl-untracer libtestinstr.so
13
14afl-untracer:	afl-untracer.c
15	$(CC) $(OPT) -I../../include -g -o afl-untracer afl-untracer.c $(DL)
16
17libtestinstr.so:	libtestinstr.c
18	$(CC) -g -O0 -fPIC -o libtestinstr.so -shared libtestinstr.c
19
20clean:
21	rm -f afl-untracer libtestinstr.so *~ core
22