parser/c_compiler/Makefile
changeset 66 2b4f786d9073
parent 37 0fbbe329c3a2
--- a/parser/c_compiler/Makefile
+++ b/parser/c_compiler/Makefile
@@ -1,17 +1,21 @@
-CC=gcc
-LD=ld
-YACC=bison -v
-FLEX=flex
-CFLAGS=-Wall -O2 -ansi -D_XOPEN_SOURCE=500
-LDFLAGS=
-INCLUDE=include
-OBJECTS=main.o parser.o lexer.o
+      CC = gcc
+      LD = ld
+    YACC = bison -v
+    FLEX = flex
+  CFLAGS = -Wall -O2 -ansi -D_XOPEN_SOURCE=500
+ LDFLAGS =
+ INCLUDE = -Iinclude
+
+OBJECTS  = main.o
+OBJECTS += parser.o
+OBJECTS += lexer.o
+
 TARGET=mcc
 
 .SUFFIXES: .c .y .l
 
 .c.o:
-	$(CC) -c $(CFLAGS) -I$(INCLUDE) $(CONFIG) $<
+	$(CC) -c $(CFLAGS) $(INCLUDE) $(CONFIG) $<
 
 .y.c:
 	$(YACC) -d $< -o $@