From 08606832f833d9acf2c7c980871d2ea708ce8ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C3=A6l=C5=8Drum=20spect=C4=81tr=C4=ABx?= Date: Mon, 1 Dec 2025 19:52:38 +0100 Subject: [PATCH] Add skeleton --- .gitignore | 2 ++ 1/GNUmakefile | 2 ++ 1/makefile | 2 ++ GNUmakefile.common | 14 ++++++++++++++ common.scm | 6 ++++++ makefile.common | 18 ++++++++++++++++++ 6 files changed, 44 insertions(+) create mode 100644 .gitignore create mode 100644 1/GNUmakefile create mode 100644 1/makefile create mode 100644 GNUmakefile.common create mode 100644 common.scm create mode 100644 makefile.common diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be45f39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/**/sample.txt +/**/input.txt diff --git a/1/GNUmakefile b/1/GNUmakefile new file mode 100644 index 0000000..211f586 --- /dev/null +++ b/1/GNUmakefile @@ -0,0 +1,2 @@ +# -*- makefile-gmake -*- +include ../GNUmakefile.common diff --git a/1/makefile b/1/makefile new file mode 100644 index 0000000..1191f1d --- /dev/null +++ b/1/makefile @@ -0,0 +1,2 @@ +# -*- makefile-bsdmake -*- +.include "../makefile.common" diff --git a/GNUmakefile.common b/GNUmakefile.common new file mode 100644 index 0000000..60f7f77 --- /dev/null +++ b/GNUmakefile.common @@ -0,0 +1,14 @@ +# -*- makefile-gmake -*- +all: + @echo "\"I use Linux as my operating system,\" I state proudly to the unkempt, bearded man. He swivels" + @echo "around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme" + @echo "precision. \"Actually\", he says with a grin, \"Linux is just the kernel. You use GNU+Linux!\" I" + @echo "don't miss a beat and reply with a smirk, \"I use Alpine, a distro that doesn't include the GNU" + @echo "Coreutils, or any other GNU code. It's Linux, but it's not GNU+Linux.\" The smile quickly drops from" + @echo "the man's face. His body begins convulsing and he foams at the mouth and drops to the floor with a" + @echo "sickly thud. As he writhes around he screams \"I-IT WAS COMPILED WITH GCC! THAT MEANS IT'S STILL GNU!" + @echo "Coolly, I reply \"If windows were compiled with GCC, would that make it GNU?\" I interrupt his" + @echo "response with \"-and work is being made on the kernel to make it more compiler-agnostic. Even if you" + @echo "were correct, you won't be for long.\" With a sickly wheeze, the last of the man's life is ejected" + @echo "from his body. He lies on the floor, cold and limp. I've womansplained him to death." + bmake diff --git a/common.scm b/common.scm new file mode 100644 index 0000000..094a23f --- /dev/null +++ b/common.scm @@ -0,0 +1,6 @@ +(define (print . args) + (display (apply string-append args)) + (newline)) + +(define (command-line-arguments) + (cdr (command-line))) diff --git a/makefile.common b/makefile.common new file mode 100644 index 0000000..3fddf49 --- /dev/null +++ b/makefile.common @@ -0,0 +1,18 @@ +# -*- makefile-bsdmake -*- +INPUTS=sample.txt input.txt +SCHEMES=chicken guile chibi racket gauche loko skint +all: $(SCHEMES) +chicken: main.scm + csi -script main.scm $(INPUTS) +guile: main.scm + guile --no-auto-compile main.scm $(INPUTS) +chibi: main.scm + chibi-scheme main.scm $(INPUTS) +racket: main.scm + racket -I r7rs --script main.scm $(INPUTS) +gauche: main.scm + gosh main.scm $(INPUTS) +loko: main.scm + loko --script main.scm $(INPUTS) +skint: main.scm + skint --script main.scm $(INPUTS)