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