31 lines
441 B
Makefile
31 lines
441 B
Makefile
CFLAGS=-fPIC
|
|
|
|
# Debug CFLAGS
|
|
#CFLAGS+=-fsanitize=address
|
|
#LDFLAGS+=-fsanitize=address
|
|
#CFLAGS+=-g -O0
|
|
|
|
# Performance CFLAGS
|
|
CFLAGS+=-O3
|
|
CFLAGS+=-fstack-protector-explicit
|
|
CFLAGS+=-flto
|
|
|
|
BIN=dump libovni.a test_speed ovni2prv
|
|
#BIN=dump libovni.a prvth test_speed emu
|
|
|
|
all: $(BIN)
|
|
|
|
libovni.a: ovni.o
|
|
ar -crs $@ $^
|
|
|
|
dump: ovni.o dump.o
|
|
|
|
test_speed: test_speed.c ovni.o
|
|
|
|
emu: emu.c ovni.o
|
|
|
|
ovni2prv: ovni2prv.c ovni.o
|
|
|
|
clean:
|
|
rm -f *.o $(BIN)
|