summaryrefslogtreecommitdiffhomepage
path: root/CompilerDriver/makefile
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-03 23:40:16 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-03 23:40:16 +0100
commitb03f3d83efcbc012c4153da14eaf158bb50031d2 (patch)
treedc004f8d0ef866c77fff7aa4ec271363b5417f9d /CompilerDriver/makefile
parent05c51485d56b14f7cd3c05afebd920157d7a0b8b (diff)
tools: incremental changes, support for a C compiler will soon be here.
alongside the 32x0. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CompilerDriver/makefile')
-rw-r--r--CompilerDriver/makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/CompilerDriver/makefile b/CompilerDriver/makefile
index f22ded6..e1060d5 100644
--- a/CompilerDriver/makefile
+++ b/CompilerDriver/makefile
@@ -9,30 +9,31 @@
LINK_CC=g++ -std=c++20
LINK_INC=-I../ -I../C++Kit
-LINK_SRC=ld.cxx
+LINK_SRC=ld.cc
LINK_OUTPUT=bin/ld
+LINK_ALT_OUTPUT=bin/mld
-PP_SRC=cpp.cxx
+PP_SRC=cpp.cc
PP_OUTPUT=bin/cpp
CC2_OUTPUT=bin/cppfront
CC2_SRC=cc2/source/cppfront.cpp
-CC_SRC=ccplus.cxx ../C++Kit/StdKit/*.cpp ../C++Kit/AsmKit/*.cpp
+CC_SRC=ccplus.cc ../C++Kit/StdKit/*.cc ../C++Kit/AsmKit/*.cc
CC_OUTPUT=bin/ccplus
-CC_SRC=cc.cxx ../C++Kit/StdKit/*.cpp ../C++Kit/AsmKit/*.cpp
+CC_SRC=cc.cc ../C++Kit/StdKit/*.cc ../C++Kit/AsmKit/*.cc
CC_OUTPUT=bin/cc
-CXX_SRC=ccplus.cxx ../C++Kit/StdKit/*.cpp ../C++Kit/AsmKit/*.cpp
+CXX_SRC=ccplus.cc ../C++Kit/StdKit/*.cc ../C++Kit/AsmKit/*.cc
CXX_OUTPUT=bin/ccplus
-MASM_SRC=masm.cxx ../C++Kit/StdKit/*.cpp ../C++Kit/AsmKit/*.cpp
+MASM_SRC=masm.cc ../C++Kit/StdKit/*.cc ../C++Kit/AsmKit/*.cc
MASM_OUTPUT=bin/masm
.PHONY: all
all: cxx
- @echo "[make] done build"
+ @echo "[make] done build."
.PHONY: cxx
cxx: ld
@@ -45,6 +46,7 @@ cxx: ld
.PHONY: ld
ld:
$(LINK_CC) $(LINK_INC) $(LINK_SRC) -o $(LINK_OUTPUT)
+ cp $(LINK_OUTPUT) $(LINK_ALT_OUTPUT)
.PHONY: help
help: