aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorpacien2018-02-23 01:13:38 +0100
committerpacien2018-02-23 01:13:38 +0100
commitf83fee146e1159344ee30711652b0ae6ebf07a5d (patch)
tree1ac4743960117aeb35332f1e0cb2dba3518a56ce /makefile
parent806dd4ff649a1fb9a28dc469cc17d7dd5dbc1da5 (diff)
downloadtpc-compiler-f83fee146e1159344ee30711652b0ae6ebf07a5d.tar.gz
Rename output binary
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/makefile b/makefile
index 9bcb33a..30c573a 100644
--- a/makefile
+++ b/makefile
@@ -16,7 +16,6 @@ LEX_GEN := tpc.yy
16YACC_GEN := tpc.tab 16YACC_GEN := tpc.tab
17 17
18# OUTPUT 18# OUTPUT
19PARSER_BIN := tparser
20COMPIL_BIN := tcompil 19COMPIL_BIN := tcompil
21COMMIT_LOG := commits.log 20COMMIT_LOG := commits.log
22REPORT_PDF := rapport.pdf 21REPORT_PDF := rapport.pdf
@@ -30,7 +29,7 @@ LFLAGS := -lfl -ly
30IFLAGS += -I$(SRC_DIR) -I$(OUT_DIR) 29IFLAGS += -I$(SRC_DIR) -I$(OUT_DIR)
31 30
32# RULES 31# RULES
33all: clean $(OUT_DIR)/$(PARSER_BIN) 32all: clean $(OUT_DIR)/$(COMPIL_BIN)
34 33
35$(OUT_DIR)/$(LEX_GEN).c: $(SRC_DIR)/$(LEX_SRC) 34$(OUT_DIR)/$(LEX_GEN).c: $(SRC_DIR)/$(LEX_SRC)
36 $(LEX) -o $@ $^ 35 $(LEX) -o $@ $^
@@ -44,7 +43,7 @@ $(OUT_DIR)/$(LEX_GEN).o: $(OUT_DIR)/$(LEX_GEN).c $(OUT_DIR)/$(YACC_GEN).h
44$(OUT_DIR)/$(YACC_GEN).o: $(OUT_DIR)/$(YACC_GEN).c 43$(OUT_DIR)/$(YACC_GEN).o: $(OUT_DIR)/$(YACC_GEN).c
45 $(CC) -o $@ -c $^ $(IFLAGS) $(LFLAGS) $(CFLAGS) 44 $(CC) -o $@ -c $^ $(IFLAGS) $(LFLAGS) $(CFLAGS)
46 45
47$(OUT_DIR)/$(PARSER_BIN): $(OUT_DIR)/$(LEX_GEN).o $(OUT_DIR)/$(YACC_GEN).o 46$(OUT_DIR)/$(COMPIL_BIN): $(OUT_DIR)/$(LEX_GEN).o $(OUT_DIR)/$(YACC_GEN).o
48 $(CC) -o $@ $^ $(IFLAGS) $(LFLAGS) $(CFLAGS) 47 $(CC) -o $@ $^ $(IFLAGS) $(LFLAGS) $(CFLAGS)
49 48
50$(OUT_DIR)/$(REPORT_PDF): $(DOC_DIR)/$(PDF_SRC) 49$(OUT_DIR)/$(REPORT_PDF): $(DOC_DIR)/$(PDF_SRC)