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)/internal
-rmdir $(DESTDIR)$(PREFIX)/include/$(PROJECT) -rmdir $(DESTDIR)$(PREFIX)/include/$(PROJECT)
$(PROJECT)-test: lib$(PROJECT).so $(PROJECT)-test: LDFLAGS+= -lfmt -lstdc++
$(CC) $(CFLAGS) src/test/*.c -o $@ -l:$< -lfmt -Wl,-flto -Wl,-O3 $(LDFLAGS) $(PROJECT)-test: CFLAGS+= -Og -g
$(PROJECT)-test: lib$(PROJECT)-debug.a
$(CC) $(CFLAGS) src/test/*.c -o $@ -l:$< $(LDFLAGS)
-valgrind ./$@ -valgrind ./$@

Loading…
Cancel
Save