2021-07-22 12:35:02 +02:00
|
|
|
CFLAGS=-fPIC
|
2021-07-19 15:11:41 +02:00
|
|
|
|
2021-07-24 10:53:41 +02:00
|
|
|
# Debug CFLAGS
|
2021-07-22 12:35:02 +02:00
|
|
|
#CFLAGS+=-fsanitize=address
|
|
|
|
#LDFLAGS+=-fsanitize=address
|
|
|
|
#CFLAGS+=-g -O0
|
2021-07-24 10:53:41 +02:00
|
|
|
|
|
|
|
# Performance CFLAGS
|
2021-07-22 12:35:02 +02:00
|
|
|
CFLAGS+=-O3
|
|
|
|
CFLAGS+=-fstack-protector-explicit
|
2021-07-24 10:53:41 +02:00
|
|
|
CFLAGS+=-flto
|
2021-07-19 15:11:41 +02:00
|
|
|
|
2021-07-24 10:53:41 +02:00
|
|
|
BIN=dump libovni.a test_speed ovni2prv
|
|
|
|
#BIN=dump libovni.a prvth test_speed emu
|
2021-07-19 15:11:41 +02:00
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
|
|
|
|
libovni.a: ovni.o
|
|
|
|
ar -crs $@ $^
|
|
|
|
|
|
|
|
dump: ovni.o dump.o
|
|
|
|
|
2021-07-22 12:35:02 +02:00
|
|
|
test_speed: test_speed.c ovni.o
|
|
|
|
|
2021-07-24 10:53:41 +02:00
|
|
|
emu: emu.c ovni.o
|
|
|
|
|
|
|
|
ovni2prv: ovni2prv.c ovni.o
|
|
|
|
|
2021-07-19 15:11:41 +02:00
|
|
|
clean:
|
|
|
|
rm -f *.o $(BIN)
|