diff options
author | johannst <johannes.stoelp@gmail.com> | 2021-03-20 02:34:01 +0100 |
---|---|---|
committer | johannst <johannes.stoelp@gmail.com> | 2021-03-20 02:34:01 +0100 |
commit | ef6a411ce8ff615d65e2be105834c2fdbe557de1 (patch) | |
tree | 3336df00ca14b6783486188fed5b4dde5df6cec3 /test | |
parent | 3cbf2298b2b3dc24355449131d2e496f8e02b8f5 (diff) | |
download | dynld-ef6a411ce8ff615d65e2be105834c2fdbe557de1.tar.gz dynld-ef6a411ce8ff615d65e2be105834c2fdbe557de1.zip |
Split common headers in header/src files.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 7 | ||||
-rw-r--r-- | test/checker.cc | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile index 3e6fd74..398ebc1 100644 --- a/test/Makefile +++ b/test/Makefile @@ -3,8 +3,11 @@ check: build ./checker -build: checker.cc - g++ -o checker -g -O2 -I ../include -Wall -Wextra $^ +build: checker.cc ../lib/libcommon.a + g++ -o checker -g -O2 -I ../lib/include -Wall -Wextra $^ + +../lib/libcommon.a: + make -C ../lib clean: rm -f checker diff --git a/test/checker.cc b/test/checker.cc index d5afa87..2707929 100644 --- a/test/checker.cc +++ b/test/checker.cc @@ -2,8 +2,9 @@ #include "test_helper.h" -#include <cstdio> -#include <fmt.h> +extern "C" { + #include <fmt.h> +} void check_dec() { char have[16]; |