aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-03-02 23:22:51 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-03-02 23:22:51 +0000
commit446c2394ec8970198d645bbbb462c67b9e3f1b1e (patch)
treefc85d32c2b68efa80910d0a4ce4c1bed78ec4717 /makefile
parent34d69709e621b9609833a3d6bae31195b425f2f8 (diff)
downloadCompiler-446c2394ec8970198d645bbbb462c67b9e3f1b1e.tar.gz
Compiler-446c2394ec8970198d645bbbb462c67b9e3f1b1e.zip
Changing ast structure again
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefile b/makefile
index 9cef91e..cf2b7e1 100644
--- a/makefile
+++ b/makefile
@@ -21,7 +21,7 @@ all : bin/c_lexer bin/c_parser
bin/c_lexer : $(LEXBUILDDIR)/main.o $(LEXBUILDDIR)/c_lexer.o $(LEXBUILDDIR)/c_lexer.yy.o
@echo "Linking..."
@echo " mkdir -p bin"; mkdir -p bin
- @echo " $(CC) $^ -o bin/c_lexer"; $(CC) $^ -o bin/c_lexer
+ @echo " $(CC) $^ -o $@"; $(CC) $^ -o $@
$(LEXBUILDDIR)/%.o : $(LEXSRCDIR)/%.cpp
@echo "Building sources..."
@@ -41,7 +41,7 @@ $(LEXSRCDIR)/c_lexer.yy.cpp : $(LEXSRCDIR)/c_lexer.flex
bin/c_parser : $(PARBUILDDIR)/parser_main.o $(PARBUILDDIR)/c_parser.tab.o $(PARBUILDDIR)/c_lexer.yy.o
@echo "Linking..."
@echo " mkdir -p bin"; mkdir -p bin
- @echo " $(CC) $^ -o bin/c_parser"; $(CC) $^ -o bin/c_parser
+ @echo " $(CC) $^ -o $@"; $(CC) $^ -o $@
$(PARBUILDDIR)/%.o : $(PARSRCDIR)/%.cpp
@echo "Building sources..."
@@ -70,7 +70,7 @@ $(PARSRCDIR)/c_parser.tab.cpp $(PARSRCDIR)/c_parser.tab.hpp : $(PARSRCDIR)/c_par
bin/c_compiler : $(COMPBUILDDIR)/parser_main.o $(COMPBUILDDIR)/c_parser.tab.o $(COMPBUILDDIR)/c_lexer.yy.o
@echo "Linking..."
@echo " mkdir -p bin"; mkdir -p bin
- @echo " $(CC) $^ -o bin/c_parser"; $(CC) $^ -o bin/c_parser
+ @echo " $(CC) $^ -o $@"; $(CC) $^ -o $@
$(COMPBUILDDIR)/%.o : $(COMPSRCDIR)/%.cpp
@echo "Building sources..."