Skip to content

Commit

Permalink
A tiny bit more complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
roystgnr committed Apr 8, 2013
1 parent 2560700 commit 05220f0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ all: test
test.o : test.C test.h
g++ -c $<

test2.o : test2.C test2.h
g++ -c $<

main.o : main.C test.h
g++ -c $<

test : test.o main.o
test : test.o test2.o main.o
g++ -o $@ $^
15 changes: 15 additions & 0 deletions test2.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "test2.h"

#include <iostream>

int test2func1(void)
{
std::cout << "Test 2 func 1" << std::endl;
return 0;
}

int test2func2(void)
{
std::cout << "Test 2 func 2" << std::endl;
return 0;
}
4 changes: 4 additions & 0 deletions test2.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

int test2func1(void);

int test2func2(void);

0 comments on commit 05220f0

Please sign in to comment.