aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjantuomi <jans.tuomi@gmail.com>2016-09-01 11:20:59 +0300
committerjantuomi <jans.tuomi@gmail.com>2016-09-01 11:20:59 +0300
commit50bafbdd68160d00606a4e83d9759c21223c11f8 (patch)
tree66c58cfb012dc0b7d222a03e8c55507b75e9af1f
parentbe011366f249b8ebed3905030ce3b7021597ee34 (diff)
Restructure project
-rw-r--r--Makefile5
-rw-r--r--src/main.cpp (renamed from main.cpp)0
-rw-r--r--src/parser.cpp (renamed from parser.cpp)0
-rw-r--r--src/parser.h (renamed from parser.h)0
-rw-r--r--src/runtime.cpp (renamed from runtime.cpp)0
-rw-r--r--src/runtime.h (renamed from runtime.h)0
-rw-r--r--src/token.cpp (renamed from token.cpp)0
-rw-r--r--src/token.h (renamed from token.h)0
8 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 6cfc87a..846cc13 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,12 @@
CPPFLAGS=-std=c++11 -Wall
CC=g++
TARGET=jarkko
+SRCDIR=src
all: jarkko
-jarkko: *.cpp
- $(CC) *.cpp $(CPPFLAGS) -o $(TARGET)
+jarkko: $(SRCDIR)/*.cpp
+ $(CC) $(SRCDIR)/*.cpp $(CPPFLAGS) -o $(TARGET)
clean:
rm $(TARGET)
diff --git a/main.cpp b/src/main.cpp
index c39e469..c39e469 100644
--- a/main.cpp
+++ b/src/main.cpp
diff --git a/parser.cpp b/src/parser.cpp
index 2472f6d..2472f6d 100644
--- a/parser.cpp
+++ b/src/parser.cpp
diff --git a/parser.h b/src/parser.h
index cd39732..cd39732 100644
--- a/parser.h
+++ b/src/parser.h
diff --git a/runtime.cpp b/src/runtime.cpp
index 4edb3e6..4edb3e6 100644
--- a/runtime.cpp
+++ b/src/runtime.cpp
diff --git a/runtime.h b/src/runtime.h
index 3572391..3572391 100644
--- a/runtime.h
+++ b/src/runtime.h
diff --git a/token.cpp b/src/token.cpp
index 6e9e5e2..6e9e5e2 100644
--- a/token.cpp
+++ b/src/token.cpp
diff --git a/token.h b/src/token.h
index 8ccb975..8ccb975 100644
--- a/token.h
+++ b/src/token.h