summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 14:10:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2021-06-19 14:10:36 +0200
commit154ce9b1ce22532a68f95f2291fa12fd90c49fde (patch)
tree602a5d927c79fbdfa0972136eb00d9570f0df480 /Makefile
parent330336c28507e0ee3a77d20e03dbc994618c213c (diff)
Make sources relative to the build-file (include paths are still relative to project rootdir). Add -b to control build-dir.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 507d841..9b7e035 100644
--- a/Makefile
+++ b/Makefile
@@ -19,8 +19,8 @@ CXXFLAGS = -g -O3 -std=c++17 -I.
libcppbuild.a: $(OBJ)
ar rcs $@ $(OBJ)
-cppbuild: cppbuild.cc libcppbuild.a
- g++ $(CXXFLAGS) -pthread cppbuild.cc libcppbuild.a -o $@
+cppbuild: cppbuild.cc subdir/cppbuild.cc libcppbuild.a
+ g++ $(CXXFLAGS) -pthread cppbuild.cc subdir/cppbuild.cc libcppbuild.a -o $@
clean:
rm -f libcppbuild.a $(OBJ) cppbuild