Merge remote-tracking (subtree) branch 'PracticingCpp/master'

This commit is contained in:
Dan Buch 2012-03-03 20:21:13 -05:00
commit f6ffe6ee43
8 changed files with 40 additions and 0 deletions

1
PracticingCpp/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*/bin/*

6
PracticingCpp/Makefile Normal file
View File

@ -0,0 +1,6 @@
all:
cd ./basics && $(MAKE)
cd ./opengl && $(MAKE)
.PHONY: all

1
PracticingCpp/README Normal file
View File

@ -0,0 +1 @@
This is where I practice C++ stuff.

View 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

View File

Binary file not shown.

View File

@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!" << endl;
return 0;
}

View File

@ -0,0 +1,5 @@
#!/bin/bash
./bin/hello-world > /dev/null 2>&1
exit $?