diff --git a/PracticingCpp/.gitignore b/PracticingCpp/.gitignore new file mode 100644 index 0000000..bf25c60 --- /dev/null +++ b/PracticingCpp/.gitignore @@ -0,0 +1 @@ +*/bin/* diff --git a/PracticingCpp/Makefile b/PracticingCpp/Makefile new file mode 100644 index 0000000..bedc98e --- /dev/null +++ b/PracticingCpp/Makefile @@ -0,0 +1,6 @@ +all: + cd ./basics && $(MAKE) + cd ./opengl && $(MAKE) + + +.PHONY: all diff --git a/PracticingCpp/README b/PracticingCpp/README new file mode 100644 index 0000000..e8b6086 --- /dev/null +++ b/PracticingCpp/README @@ -0,0 +1 @@ +This is where I practice C++ stuff. diff --git a/PracticingCpp/basics/Makefile b/PracticingCpp/basics/Makefile new file mode 100644 index 0000000..26792f4 --- /dev/null +++ b/PracticingCpp/basics/Makefile @@ -0,0 +1,19 @@ +CPPC := g++ + +ALL_TARGETS = bin/hello-world + + +bin/%: src/%.cpp + $(CPPC) $^ -o $@ + + +all: $(ALL_TARGETS) + +clean: + rm -vf ./bin/* + +test: + ./tests/test_hello_world + + +.PHONY: all clean test diff --git a/PracticingCpp/basics/bin/.keep b/PracticingCpp/basics/bin/.keep new file mode 100644 index 0000000..e69de29 diff --git a/PracticingCpp/basics/docs/tutorial.pdf b/PracticingCpp/basics/docs/tutorial.pdf new file mode 100644 index 0000000..b1b463f Binary files /dev/null and b/PracticingCpp/basics/docs/tutorial.pdf differ diff --git a/PracticingCpp/basics/src/hello-world.cpp b/PracticingCpp/basics/src/hello-world.cpp new file mode 100644 index 0000000..29feca2 --- /dev/null +++ b/PracticingCpp/basics/src/hello-world.cpp @@ -0,0 +1,8 @@ +#include +using namespace std; + +int main() +{ + cout << "Hello World!" << endl; + return 0; +} diff --git a/PracticingCpp/basics/tests/test_hello_world b/PracticingCpp/basics/tests/test_hello_world new file mode 100755 index 0000000..c3d3d0e --- /dev/null +++ b/PracticingCpp/basics/tests/test_hello_world @@ -0,0 +1,5 @@ +#!/bin/bash + +./bin/hello-world > /dev/null 2>&1 + +exit $?