Merge remote-tracking (subtree) branch 'PracticingCpp/master'
This commit is contained in:
commit
f6ffe6ee43
1
PracticingCpp/.gitignore
vendored
Normal file
1
PracticingCpp/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*/bin/*
|
6
PracticingCpp/Makefile
Normal file
6
PracticingCpp/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
all:
|
||||
cd ./basics && $(MAKE)
|
||||
cd ./opengl && $(MAKE)
|
||||
|
||||
|
||||
.PHONY: all
|
1
PracticingCpp/README
Normal file
1
PracticingCpp/README
Normal file
@ -0,0 +1 @@
|
||||
This is where I practice C++ stuff.
|
19
PracticingCpp/basics/Makefile
Normal file
19
PracticingCpp/basics/Makefile
Normal file
@ -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
|
0
PracticingCpp/basics/bin/.keep
Normal file
0
PracticingCpp/basics/bin/.keep
Normal file
BIN
PracticingCpp/basics/docs/tutorial.pdf
Normal file
BIN
PracticingCpp/basics/docs/tutorial.pdf
Normal file
Binary file not shown.
8
PracticingCpp/basics/src/hello-world.cpp
Normal file
8
PracticingCpp/basics/src/hello-world.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Hello World!" << endl;
|
||||
return 0;
|
||||
}
|
5
PracticingCpp/basics/tests/test_hello_world
Executable file
5
PracticingCpp/basics/tests/test_hello_world
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
./bin/hello-world > /dev/null 2>&1
|
||||
|
||||
exit $?
|
Loading…
Reference in New Issue
Block a user