about summary refs log tree commit diff
path: root/unicorn_mode/samples/speedtest/Makefile
blob: 23f5cb07765c631e1eba526da921218bdcc217ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS += -Wall -Werror -Wextra -Wpedantic -Og -g -fPIE

.PHONY: all clean

all: target target.offsets.main

clean:
	rm -rf *.o target target.offsets.*

target.o: target.c
	${CC} ${CFLAGS} -c target.c -o $@

target: target.o
	${CC} ${CFLAGS} target.o -o $@

target.offsets.main: target
	./get_offsets.py