From 246b4ff1766175dd80fbc67f4b488c2b4e6f65f4 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 27 Jun 2010 21:20:11 +0000 Subject: [PATCH] Move C++ code in an src/ subdirectory. --- .gitignore | 1 + Makefile | 7 ++++--- src/Makefile | 9 +++++++++ test-map.cpp => src/test-map.cpp | 0 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 src/Makefile rename test-map.cpp => src/test-map.cpp (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c12b044f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +src/test-map diff --git a/Makefile b/Makefile index f13f1689..0dfdcbf0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ -all: test-map +all: + cd src && $(MAKE) all -test-map: test-map.cpp - g++ -Wall -O3 $^ -o $@ `pkg-config --cflags --libs sdl gl SDL_image` +clean: + cd src && $(MAKE) clean diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 00000000..57a26eec --- /dev/null +++ b/src/Makefile @@ -0,0 +1,9 @@ + +all: test-map + +test-map: test-map.cpp + g++ -Wall -O3 $^ -o $@ `pkg-config --cflags --libs sdl gl SDL_image` + +clean: + rm -f test-map + diff --git a/test-map.cpp b/src/test-map.cpp similarity index 100% rename from test-map.cpp rename to src/test-map.cpp