aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorAdam Branes <adam@adam>2021-05-02 17:46:29 +0300
committerGalin Simeonov <gts@volconst.com>2021-07-15 18:00:07 +0300
commit679cbe58c4e53f0163588a7731154f3afe2d25aa (patch)
treea2dbc2317a3f107899d60f5e68c8d6cf8d27e146 /makefile
parenta3e36c1918e63761dfc4d2221cca3636b98e93aa (diff)
downloadMEGATRON-679cbe58c4e53f0163588a7731154f3afe2d25aa.tar.gz
lexer formed
Diffstat (limited to 'makefile')
-rw-r--r--makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/makefile b/makefile
index 23fd10a..457b589 100644
--- a/makefile
+++ b/makefile
@@ -1,9 +1,15 @@
INCLUDE_DIRS=-I .
-main.exe : main.c lexer.o queue.o
- gcc main.c lexer.o queue.o -o main.exe ${INCLUDE_DIRS}
+CFLAGS="-g"
+main.exe : main.c lexer.o queue.o print.o program.o
+ gcc ${CFLAGS} main.c lexer.o queue.o print.o program.o -o main.exe ${INCLUDE_DIRS}
lexer.o : lexer.c lexer.h
- gcc -c lexer.c -o lexer.o ${INCLUDE_DIRS}
+ gcc ${CFLAGS} -c lexer.c -o lexer.o ${INCLUDE_DIRS}
queue.o : queue.c queue.h
- gcc -c queue.c -o queue.o ${INCLUDE_DIRS}
+ 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}
+
clear:
- rm -rf lexer.o main.exe queue.o
+ rm -rf lexer.o main.exe queue.o print.o program.o