From 08493d67d24b61f1a55ab9b0ed7dd6de28dc7825 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Thu, 26 Jan 2023 15:35:30 +0100 Subject: Initial commit parser module --- parser/Makefile | 29 +++++++++++++++++++++++++++++ parser/Parser.java | 5 +++++ parser/config.mk | 28 ++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 parser/Makefile create mode 100644 parser/Parser.java create mode 100644 parser/config.mk diff --git a/parser/Makefile b/parser/Makefile new file mode 100644 index 0000000..94cd847 --- /dev/null +++ b/parser/Makefile @@ -0,0 +1,29 @@ +# Copyright (C) 2022-2023 Alessandro Iezzi +# +# This file is part of desiderio. +# +# desiderio is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# desiderio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with desiderio. If not, see . + +include config.mk + +all: ${DEPS} ${OBJ} + +clean: + rm -f ${OBJ} + +.java.class: + ${CC} $< + +${FREEMARKER}: + wget ${FREEMARKER_URL} \ No newline at end of file diff --git a/parser/Parser.java b/parser/Parser.java new file mode 100644 index 0000000..0d83e22 --- /dev/null +++ b/parser/Parser.java @@ -0,0 +1,5 @@ +public class Parser { + public static void main(String[] args) { + System.out.println("Hello, World from Java!"); + } +} diff --git a/parser/config.mk b/parser/config.mk new file mode 100644 index 0000000..512ed46 --- /dev/null +++ b/parser/config.mk @@ -0,0 +1,28 @@ +# Copyright (C) 2022-2023 Alessandro Iezzi +# +# This file is part of desiderio. +# +# desiderio is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# desiderio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with desiderio. If not, see . + +.SUFFIXES: .java .class + +CC = javac +SRC != find * -name '*.java' +OBJ = ${SRC:java=class} + +FREEMARKER_VER = 2.3.32 +FREEMARKER = apache-freemarker-${FREEMARKER_VER}-bin.tar.gz +FREEMARKER_URL = https://dlcdn.apache.org/freemarker/engine/${FREEMARKER_VER}/binaries/${FREEMARKER} + +DEPS = ${FREEMARKER} \ No newline at end of file -- cgit v1.2.3