From 6171a0adfacdc5834f2fc2a9d885ba3ef3cc15d8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 4 Jan 2024 11:59:27 +0100 Subject: tools: working on compiler installer. mpcc: output .64x for 64x0 assembly. Signed-off-by: Amlal El Mahrouss --- CompilerTools/.gitignore | 1 + CompilerTools/install.d | 35 +++++++++++++++++++++++++++++++++++ CompilerTools/makefile | 13 +++++++++++++ CompilerTools/test/.gitkeep | 0 4 files changed, 49 insertions(+) create mode 100644 CompilerTools/.gitignore create mode 100644 CompilerTools/install.d create mode 100644 CompilerTools/makefile create mode 100644 CompilerTools/test/.gitkeep (limited to 'CompilerTools') diff --git a/CompilerTools/.gitignore b/CompilerTools/.gitignore new file mode 100644 index 0000000..3ad4db2 --- /dev/null +++ b/CompilerTools/.gitignore @@ -0,0 +1 @@ +test/*.txt \ No newline at end of file diff --git a/CompilerTools/install.d b/CompilerTools/install.d new file mode 100644 index 0000000..3770eaf --- /dev/null +++ b/CompilerTools/install.d @@ -0,0 +1,35 @@ +/* + * ======================================================== + * + * MP-UX C Compiler + * Copyright Western Company, all rights reserved. + * + * ======================================================== + */ + +module mpcc.install; + +///Author: amlel +///This helps install the mp-ux toolchain. +class InstallFactory +{ + this(string where, string from) + { + import std; + import std.file; + + try + { + from.copy(where); + } + catch(Exception e) + { + writeln("install.d: error: ", e.msg); + } + } +} + +void main(string[] args) +{ + auto factory = new InstallFactory(args[1], args[2]); +} diff --git a/CompilerTools/makefile b/CompilerTools/makefile new file mode 100644 index 0000000..b3a1aef --- /dev/null +++ b/CompilerTools/makefile @@ -0,0 +1,13 @@ + # + # ======================================================== + # + # MP-UX Tools + # Copyright Western Company, all rights reserved. + # + # ======================================================== + # + +# build mpcc +.PHONY: build-installer +build-installer: + dmd -I../ install.d -ofinstall.out \ No newline at end of file diff --git a/CompilerTools/test/.gitkeep b/CompilerTools/test/.gitkeep new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3