diff options
author | pacien | 2018-02-23 01:13:38 +0100 |
---|---|---|
committer | pacien | 2018-02-23 01:13:38 +0100 |
commit | f83fee146e1159344ee30711652b0ae6ebf07a5d (patch) | |
tree | 1ac4743960117aeb35332f1e0cb2dba3518a56ce /makefile | |
parent | 806dd4ff649a1fb9a28dc469cc17d7dd5dbc1da5 (diff) | |
download | tpc-compiler-f83fee146e1159344ee30711652b0ae6ebf07a5d.tar.gz |
Rename output binary
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -16,7 +16,6 @@ LEX_GEN := tpc.yy | |||
16 | YACC_GEN := tpc.tab | 16 | YACC_GEN := tpc.tab |
17 | 17 | ||
18 | # OUTPUT | 18 | # OUTPUT |
19 | PARSER_BIN := tparser | ||
20 | COMPIL_BIN := tcompil | 19 | COMPIL_BIN := tcompil |
21 | COMMIT_LOG := commits.log | 20 | COMMIT_LOG := commits.log |
22 | REPORT_PDF := rapport.pdf | 21 | REPORT_PDF := rapport.pdf |
@@ -30,7 +29,7 @@ LFLAGS := -lfl -ly | |||
30 | IFLAGS += -I$(SRC_DIR) -I$(OUT_DIR) | 29 | IFLAGS += -I$(SRC_DIR) -I$(OUT_DIR) |
31 | 30 | ||
32 | # RULES | 31 | # RULES |
33 | all: clean $(OUT_DIR)/$(PARSER_BIN) | 32 | all: 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) |