diff --git a/Makefile b/Makefile index f74b13a..ada4317 100644 --- a/Makefile +++ b/Makefile @@ -16,12 +16,14 @@ $(TARGET): make -C util make -C shapes make -C main - $(CXX) -o $@ main/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS) + make -C parser + $(CXX) -o $@ main/*.o util/*.o shapes/*.o parser/*.o $(CXXFLAGS) $(LDFLAGS) make -C test - $(CXX) -o tests test/*.o util/*.o shapes/*.o $(CXXFLAGS) $(LDFLAGS) + $(CXX) -o tests test/*.o util/*.o shapes/*.o parser/*.o $(CXXFLAGS) $(LDFLAGS) clean: make -C test clean + make -C parser clean make -C main clean make -C shapes clean make -C util clean diff --git a/parser/Makefile b/parser/Makefile index d4d5b6d..9b47c15 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -6,7 +6,6 @@ PARSER := parser COBJS := lex.yy.o CXXOBJS := $(PARSER).tab.o -CXXOBJS += ASTNode.o all: $(COBJS) $(CXXOBJS)