From 4f90efb9a08b697b7ef270a4d2ee067dc853f251 Mon Sep 17 00:00:00 2001 From: Teddy Date: Tue, 25 Mar 2014 04:11:54 +0800 Subject: move out the main function to a seperate file --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 04edd68..cfb1849 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,19 @@ all: cibic run: - ./cibic + ./cibic --ast -debug: +db: gdb cibic -cibic: lex.yy.o cibic.tab.o ast.o - gcc -o cibic lex.yy.o cibic.tab.o ast.o +cibic: lex.yy.o cibic.tab.o ast.o main.o + gcc -o cibic lex.yy.o cibic.tab.o ast.o main.o lex.yy.o: lex.yy.c gcc -c lex.yy.c cibic.tab.o: cibic.tab.c gcc -c cibic.tab.c +main.o: main.c + gcc -c main.c -g -Wall -Wextra ast.o: ast.c gcc -c ast.c -g -Wall -Wextra -DCNODE_DEBUG lex.yy.c: cibic.l -- cgit v1.2.3