2021-01-23 00:02:59 +01:00

17 lines
303 B
Makefile

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