Skip to content

Commit

Permalink
Added a .gitignore file to ignore generated executables.
Browse files Browse the repository at this point in the history
Removed generated executables.
Moved test data for kruskal into a separate directory.
Updated Makefile accordingly.
Added the DEBUG flag to a CXXFLAGS variable in the Makefile
  • Loading branch information
divyekapoor committed Mar 3, 2011
1 parent d6fb33b commit 06dcb7b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
kruskal
kruskal_tests
14 changes: 9 additions & 5 deletions Makefile
@@ -1,6 +1,10 @@
test: main
g++ kruskal_tests.cpp -o kruskal_tests
./kruskal_tests input
CXXFLAGS=-D DEBUG

main: kruskal.cpp
g++ kruskal.cpp -o kruskal
test: kruskal_tests

kruskal_tests: kruskal_tests.cpp kruskal.h
g++ $(CXXFLAGS) kruskal_tests.cpp -o kruskal_tests
./kruskal_tests test_data/kruskal_tests_input.txt

kruskal: kruskal.cpp kruskal.h
g++ $(CXXFLAGS) kruskal.cpp -o kruskal
Binary file removed kruskal
Binary file not shown.
Binary file removed kruskal_tests
Binary file not shown.
File renamed without changes.

0 comments on commit 06dcb7b

Please sign in to comment.