aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
blob: 457b58907ab0603c3ad6dd1ed036ac68000276c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
INCLUDE_DIRS=-I .
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 ${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}
	
clear: 
	rm -rf lexer.o main.exe queue.o print.o program.o