diff options
author | Galin Simeonov <gts@volconst.com> | 2021-05-31 22:02:10 +0300 |
---|---|---|
committer | Galin Simeonov <gts@volconst.com> | 2021-07-15 18:00:15 +0300 |
commit | 255a49ba5a41b3854dbdfebdec75fb6229450507 (patch) | |
tree | 616ea5786cb91d03ef609d32b402941dc30e926b | |
parent | f768d9bdb84e846d89aac66a4f3433a44241c298 (diff) | |
download | MEGATRON-255a49ba5a41b3854dbdfebdec75fb6229450507.tar.gz |
added cmake file
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 27 | ||||
-rw-r--r-- | makefile | 20 | ||||
-rw-r--r-- | src/backend/print.c (renamed from print.c) | 0 | ||||
-rw-r--r-- | src/backend/print.h (renamed from print.h) | 0 | ||||
-rw-r--r-- | src/frontend/lexer.c (renamed from lexer.c) | 0 | ||||
-rw-r--r-- | src/frontend/lexer.h (renamed from lexer.h) | 0 | ||||
-rw-r--r-- | src/frontend/parser.c (renamed from parser.c) | 0 | ||||
-rw-r--r-- | src/frontend/parser.h (renamed from parser.h) | 0 | ||||
-rw-r--r-- | src/main.c (renamed from main.c) | 0 | ||||
-rw-r--r-- | src/misc/map.c (renamed from map.c) | 0 | ||||
-rw-r--r-- | src/misc/map.h (renamed from map.h) | 0 | ||||
-rw-r--r-- | src/misc/queue.c (renamed from queue.c) | 0 | ||||
-rw-r--r-- | src/misc/queue.h (renamed from queue.h) | 0 | ||||
-rw-r--r-- | src/misc/stack.c (renamed from stack.c) | 0 | ||||
-rw-r--r-- | src/misc/stack.h (renamed from stack.h) | 0 | ||||
-rw-r--r-- | src/program/program.c (renamed from program.c) | 0 | ||||
-rw-r--r-- | src/program/program.h (renamed from program.h) | 0 | ||||
-rw-r--r-- | tests/test (renamed from test) | 0 | ||||
-rw-r--r-- | tests/test2 (renamed from test2) | 0 | ||||
-rw-r--r-- | tests/test3 (renamed from test3) | 0 |
21 files changed, 28 insertions, 20 deletions
@@ -1,3 +1,4 @@ tags *.exe *.o +build diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..415816f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required (VERSION 3.13.4) +project (AUTOMATA) + +include_directories(src/) +include_directories(src/backend/) +include_directories(src/frontend/) +include_directories(src/misc/) +include_directories(src/program/) + +set(SOURCES + src/program/program.h + src/program/program.c + src/misc/queue.h + src/misc/stack.h + src/misc/map.h + src/misc/queue.c + src/misc/map.c + src/misc/stack.c + src/frontend/lexer.h + src/frontend/parser.c + src/frontend/lexer.c + src/frontend/parser.h + src/backend/print.h + src/backend/print.c + src/main.c + ) +add_executable(main ${SOURCES}) diff --git a/makefile b/makefile deleted file mode 100644 index 354eed1..0000000 --- a/makefile +++ /dev/null @@ -1,20 +0,0 @@ -INCLUDE_DIRS=-I . -CFLAGS="-g" -main.exe : main.c lexer.o queue.o print.o program.o parser.o map.o stack.o - gcc ${CFLAGS} main.c lexer.o queue.o print.o program.o parser.o map.o stack.o -o main.exe ${INCLUDE_DIRS} -lexer.o : lexer.c lexer.h - gcc ${CFLAGS} -c lexer.c -o lexer.o ${INCLUDE_DIRS} -queue.o : queue.c queue.h - gcc ${CFLAGS} -c queue.c -o queue.o ${INCLUDE_DIRS} -print.o : print.c print.h - gcc ${CFLAGS} -c print.c -o print.o ${INCLUDE_DIRS} -program.o : program.c program.h - gcc ${CFLAGS} -c program.c -o program.o ${INCLUDE_DIRS} -parser.o : parser.c parser.h - gcc ${CFLAGS} -c parser.c -o parser.o ${INCLUDE_DIRS} -map.o : map.c map.h - gcc ${CFLAGS} -c map.c -o map.o ${INCLUDE_DIRS} -stack.o : stack.c stack.h - gcc ${CFLAGS} -c stack.c -o stack.o ${INCLUDE_DIRS} -clear: - rm -rf lexer.o main.exe queue.o print.o program.o parser.o map.o stack.o diff --git a/print.c b/src/backend/print.c index 614a6c9..614a6c9 100644 --- a/print.c +++ b/src/backend/print.c diff --git a/print.h b/src/backend/print.h index 54d47ce..54d47ce 100644 --- a/print.h +++ b/src/backend/print.h diff --git a/lexer.c b/src/frontend/lexer.c index 6dc348d..6dc348d 100644 --- a/lexer.c +++ b/src/frontend/lexer.c diff --git a/lexer.h b/src/frontend/lexer.h index 320146c..320146c 100644 --- a/lexer.h +++ b/src/frontend/lexer.h diff --git a/parser.c b/src/frontend/parser.c index 3e4e449..3e4e449 100644 --- a/parser.c +++ b/src/frontend/parser.c diff --git a/parser.h b/src/frontend/parser.h index ef82184..ef82184 100644 --- a/parser.h +++ b/src/frontend/parser.h diff --git a/queue.c b/src/misc/queue.c index b395acf..b395acf 100644 --- a/queue.c +++ b/src/misc/queue.c diff --git a/queue.h b/src/misc/queue.h index 651d4b0..651d4b0 100644 --- a/queue.h +++ b/src/misc/queue.h diff --git a/stack.c b/src/misc/stack.c index 272732f..272732f 100644 --- a/stack.c +++ b/src/misc/stack.c diff --git a/stack.h b/src/misc/stack.h index 14e557a..14e557a 100644 --- a/stack.h +++ b/src/misc/stack.h diff --git a/program.c b/src/program/program.c index 5cf8cc3..5cf8cc3 100644 --- a/program.c +++ b/src/program/program.c diff --git a/program.h b/src/program/program.h index d5e45b7..d5e45b7 100644 --- a/program.h +++ b/src/program/program.h |