From b56a1d15b5d0d6c88e7c7b9c8ec698ce28bde921 Mon Sep 17 00:00:00 2001 From: karl Date: Tue, 16 Mar 2021 18:01:36 +0100 Subject: [PATCH] Remove Makefile, use SConstruct instead --- .gitignore | 6 ++++++ Makefile | 11 ----------- SConstruct | 7 +++++++ 3 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 Makefile create mode 100644 SConstruct diff --git a/.gitignore b/.gitignore index e257658..d6bec7f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *.lo *.o *.obj +*.os # Precompiled Headers *.gch @@ -32,3 +33,8 @@ *.out *.app +# SConstruct +**/.sconsign.dblite +compile_commands.json +.cache/ + diff --git a/Makefile b/Makefile deleted file mode 100644 index 87d04ec..0000000 --- a/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -CXX = g++ -CXXFLAGS = -Wall -O3 - -program: main.o - $(CXX) $(CXXFLAGS) -o program.out main.o - -main.o: main.cpp - $(CXX) $(CXXFLAGS) -c main.cpp - -clean : - -rm *.o *.out diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..01693ab --- /dev/null +++ b/SConstruct @@ -0,0 +1,7 @@ +#!python + +# Create the environment and create a Compilation Database for use in VSCodium +env = DefaultEnvironment(tools=['default', 'compilation_db']) +env.CompilationDatabase() + +Program('program.out', Glob('*.cpp'))