summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 19:07:09 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-11 19:07:16 +0200
commit474ce1322f3c13fe414b5e2201d82a4136a947da (patch)
tree841d4771e451d646c7a83384a148a7b791f1ff44 /src
Simple build config with dependency tracking.
Diffstat (limited to 'src')
-rw-r--r--src/bar.cc9
-rw-r--r--src/bar.obin0 -> 2848 bytes
-rw-r--r--src/bas.h2
-rw-r--r--src/foo.cc6
-rw-r--r--src/foo.h5
5 files changed, 22 insertions, 0 deletions
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 <iostream>
+
+#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
--- /dev/null
+++ b/src/bar.o
Binary files 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 <iostream>
+
+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();