diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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 |