Rodrigo Arias Mallo
60862db890
This allows early access to the CPU list in order to emit the PRV header before consuming events from the streams.
36 lines
577 B
Makefile
36 lines
577 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 test_speed ovni2prv emu libovni.so ovnisync
|
|
|
|
all: $(BIN)
|
|
|
|
libovni.a: ovni.o
|
|
ar -crs $@ $^
|
|
|
|
dump: ovni.o dump.o parson.o
|
|
|
|
test_speed: test_speed.c ovni.o parson.o
|
|
|
|
emu: emu.o emu_ovni.o emu_nosv.o ovni.o prv.o parson.o
|
|
|
|
libovni.so: ovni.o parson.o
|
|
$(LINK.c) -shared $^ -o $@
|
|
|
|
ovni2prv: ovni2prv.c ovni.o parson.o
|
|
|
|
ovnisync: ovnisync.c
|
|
mpicc -lm $^ -o $@
|
|
|
|
clean:
|
|
rm -f *.o $(BIN)
|