From 474ce1322f3c13fe414b5e2201d82a4136a947da Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 11 Jun 2021 19:07:09 +0200 Subject: Simple build config with dependency tracking. --- src/bar.cc | 9 +++++++++ src/bar.o | Bin 0 -> 2848 bytes src/bas.h | 2 ++ src/foo.cc | 6 ++++++ src/foo.h | 5 +++++ 5 files changed, 22 insertions(+) create mode 100644 src/bar.cc create mode 100644 src/bar.o create mode 100644 src/bas.h create mode 100644 src/foo.cc create mode 100644 src/foo.h (limited to 'src') diff --git a/src/bar.cc b/src/bar.cc new file mode 100644 index 0000000..2486a0a --- /dev/null +++ b/src/bar.cc @@ -0,0 +1,9 @@ +#include + +#include "foo.h" + +int main() +{ + foo(); + std::cout << __FILE__ << "\n"; +} diff --git a/src/bar.o b/src/bar.o new file mode 100644 index 0000000..37903db Binary files /dev/null and b/src/bar.o differ diff --git a/src/bas.h b/src/bas.h new file mode 100644 index 0000000..3f59c93 --- /dev/null +++ b/src/bas.h @@ -0,0 +1,2 @@ +#pragma once + diff --git a/src/foo.cc b/src/foo.cc new file mode 100644 index 0000000..b2c478c --- /dev/null +++ b/src/foo.cc @@ -0,0 +1,6 @@ +#include + +void foo() +{ + std::cout << __FILE__ << "\n"; +} diff --git a/src/foo.h b/src/foo.h new file mode 100644 index 0000000..9620fc7 --- /dev/null +++ b/src/foo.h @@ -0,0 +1,5 @@ +#pragma once + +#include "bas.h" + +void foo(); -- cgit v1.2.3