From ef6a411ce8ff615d65e2be105834c2fdbe557de1 Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 20 Mar 2021 02:34:01 +0100 Subject: Split common headers in header/src files. --- test/Makefile | 7 +++++-- test/checker.cc | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'test') 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 -#include +extern "C" { + #include +} void check_dec() { char have[16]; -- cgit v1.2.3