Better debugging of test program

Fortune for rngxx's current commit: Half blessing − 半吉
iter
Avril 3 years ago
parent 25c86023a9
commit 12f5e7dd97
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -164,6 +164,8 @@ uninstall:
-rmdir $(DESTDIR)$(PREFIX)/include/$(PROJECT)/internal
-rmdir $(DESTDIR)$(PREFIX)/include/$(PROJECT)
$(PROJECT)-test: lib$(PROJECT).so
$(CC) $(CFLAGS) src/test/*.c -o $@ -l:$< -lfmt -Wl,-flto -Wl,-O3 $(LDFLAGS)
$(PROJECT)-test: LDFLAGS+= -lfmt -lstdc++
$(PROJECT)-test: CFLAGS+= -Og -g
$(PROJECT)-test: lib$(PROJECT)-debug.a
$(CC) $(CFLAGS) src/test/*.c -o $@ -l:$< $(LDFLAGS)
-valgrind ./$@

Loading…
Cancel
Save