Skip to content

Commit cc28193

Browse files
Merge pull request #8 from codeplaysoftware/alan/cpp_example
add makefile
2 parents 711d8f6 + b74468a commit cc28193

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

cpp_source/a.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
#include <iostream>
44

55
int main() {
6-
std::cout << "Hello World!";
6+
std::cout << "Hello World!\n";
77
return 0;
88
}

cpp_source/makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
CPP = g++
2+
RM = rm -f
3+
4+
default: all
5+
6+
all: a
7+
8+
a: a.cpp
9+
$(CPP) -o a.out a.cpp
10+
11+
clean veryclean:
12+
$(RM) a.out

0 commit comments

Comments
 (0)