From 679cbe58c4e53f0163588a7731154f3afe2d25aa Mon Sep 17 00:00:00 2001 From: Adam Branes Date: Sun, 2 May 2021 17:46:29 +0300 Subject: lexer formed --- makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.3