aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-04-27 20:05:56 +0200
committerJonas Smedegaard <dr@jones.dk>2025-04-27 20:05:56 +0200
commit359fd78ea57154f88787499cdc771b31c012bbf1 (patch)
treeaf0b1eccb1bca4983fd8f4f847e024e1e2267ecb /Makefile
parent48758609f9c4e8ac1a273a0f22acd375b09a0caa (diff)
fixup! refine make dependency quirk to improve use with OpenJDK 21
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 659df38..98b4a42 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,13 @@ ifeq ($(shell expr $(JAVA_MAJOR_VERSION) \>= 23), 1)
JAVAFLAGS += --sun-misc-unsafe-memory-access=allow
endif
+# loading as modules works with JDK 22+, and is required with JDK 23+
+ifeq ($(shell expr $(JAVA_MAJOR_VERSION) \>= 22), 1)
+JAVA_MODULEPATHS_bachelorizer += mods/com.example.portfolio3
+else
+JAVA_CLASSPATHS_bachelorizer += mods/com.example.portfolio3
+endif
+
# TODO: fix properly declare and resolve local interdependencies
-JAVA_CLASSPATHS_bachelorizer = mods/com.example.portfolio3
runsrc-dk.biks.bachelorizer build-dk.biks.bachelorizer: \
build-com.example.portfolio3