2020-09-26 22:17:23 +02:00
|
|
|
############################################################
|
|
|
|
# Launch5j, by LoRd_MuldeR <MuldeR2@GMX.de> #
|
|
|
|
# Java JAR wrapper for creating Windows native executables #
|
|
|
|
# https://github.com/lordmulder/ #
|
|
|
|
# #
|
|
|
|
# This work has been released under the MIT license. #
|
|
|
|
# Please see LICENSE.TXT for details! #
|
|
|
|
# #
|
|
|
|
# ACKNOWLEDGEMENT #
|
|
|
|
# This project is partly inspired by the Launch4j project: #
|
|
|
|
# https://sourceforge.net/p/launch4j/ #
|
|
|
|
############################################################
|
|
|
|
|
2020-09-30 14:15:06 +02:00
|
|
|
MACHINE := $(patsubst %-w64-mingw32,[%],$(shell $(CXX) -dumpmachine))
|
|
|
|
|
|
|
|
ifeq ($(MACHINE),[i686])
|
|
|
|
CPU_ARCH := x86
|
|
|
|
MARCH ?= i586
|
|
|
|
else ifeq ($(MACHINE),[x86_64])
|
|
|
|
CPU_ARCH := x64
|
|
|
|
MARCH ?= x86-64
|
2020-09-27 20:33:49 +02:00
|
|
|
else
|
2020-09-30 14:15:06 +02:00
|
|
|
$(error Unknown target machine "$(MACHINE)" encountered!)
|
2020-09-27 20:33:49 +02:00
|
|
|
endif
|
|
|
|
|
2020-09-30 14:15:06 +02:00
|
|
|
DEBUG ?= 0
|
2020-09-28 01:23:40 +02:00
|
|
|
MTUNE ?= generic
|
|
|
|
|
2020-09-30 14:15:06 +02:00
|
|
|
ifeq ($(DEBUG),0)
|
|
|
|
CFLAGS = -Os -static -static-libgcc -D_FORTIFY_SOURCE=2 -DNDEBUG
|
|
|
|
SUFFIX = exe
|
|
|
|
else
|
|
|
|
CFLAGS = -Og -g
|
|
|
|
SUFFIX = g.exe
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS += -municode -mwindows -march=$(MARCH) -mtune=$(MTUNE)
|
2020-09-30 21:23:06 +02:00
|
|
|
LDFLAGS = -lcomctl32
|
2020-09-26 22:17:23 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
# ==========================================================
|
|
|
|
# Targets
|
|
|
|
# ==========================================================
|
2020-09-26 22:17:23 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
.PHONY: default
|
|
|
|
default: all
|
2020-09-26 22:17:23 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
.PHONY: init
|
2020-09-26 22:17:23 +02:00
|
|
|
init:
|
|
|
|
mkdir -p bin
|
|
|
|
mkdir -p obj
|
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
.PHONY: resources
|
2020-09-26 22:17:23 +02:00
|
|
|
resources: init
|
2020-09-28 17:09:31 +02:00
|
|
|
windres -o obj/common.$(CPU_ARCH).o res/common.rc
|
2020-09-28 13:30:57 +02:00
|
|
|
windres -o obj/splash_screen.$(CPU_ARCH).o res/splash_screen.rc
|
2020-09-29 12:01:43 +02:00
|
|
|
windres -o obj/registry.$(CPU_ARCH).o res/registry.rc
|
2020-09-28 01:23:40 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
.PHONY: clean
|
|
|
|
clean: init
|
|
|
|
$(RM) bin/*.$(SUFFIX)
|
|
|
|
$(RM) obj/*.o
|
2020-09-26 22:17:23 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# Binaries
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.PHONY: l5j
|
|
|
|
l5j: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH).exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH).exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_noenc
|
|
|
|
l5j_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nosplash
|
|
|
|
l5j_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nosplash_noenc
|
|
|
|
l5j_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nowait
|
|
|
|
l5j_nowait: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nowait.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nowait_noenc
|
|
|
|
l5j_nowait_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nowait_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nowait_nosplash
|
|
|
|
l5j_nowait_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nowait_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_nowait_nosplash_noenc
|
|
|
|
l5j_nowait_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_nowait_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry
|
|
|
|
l5j_registry: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_noenc
|
|
|
|
l5j_registry_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nosplash
|
|
|
|
l5j_registry_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nosplash_noenc
|
|
|
|
l5j_registry_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nowait
|
|
|
|
l5j_registry_nowait: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nowait.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nowait_noenc
|
|
|
|
l5j_registry_nowait_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nowait_nosplash
|
|
|
|
l5j_registry_nowait_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_registry_nowait_nosplash_noenc
|
|
|
|
l5j_registry_nowait_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=0 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_registry_nowait_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped
|
|
|
|
l5j_wrapped: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_noenc
|
|
|
|
l5j_wrapped_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nosplash
|
|
|
|
l5j_wrapped_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nosplash_noenc
|
|
|
|
l5j_wrapped_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nowait
|
|
|
|
l5j_wrapped_nowait: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nowait_noenc
|
|
|
|
l5j_wrapped_nowait_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nowait_nosplash
|
|
|
|
l5j_wrapped_nowait_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_nowait_nosplash_noenc
|
|
|
|
l5j_wrapped_nowait_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=0 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_nowait_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry
|
|
|
|
l5j_wrapped_registry: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_noenc
|
|
|
|
l5j_wrapped_registry_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nosplash
|
|
|
|
l5j_wrapped_registry_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nosplash_noenc
|
|
|
|
l5j_wrapped_registry_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=1 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nowait
|
|
|
|
l5j_wrapped_registry_nowait: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nowait_noenc
|
|
|
|
l5j_wrapped_registry_nowait_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=1 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/splash_screen.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nowait_nosplash
|
|
|
|
l5j_wrapped_registry_nowait_nosplash: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=1 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-09-30 21:23:06 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: l5j_wrapped_registry_nowait_nosplash_noenc
|
|
|
|
l5j_wrapped_registry_nowait_nosplash_noenc: resources
|
|
|
|
$(CC) $(CFLAGS) -DL5J_JAR_FILE_WRAPPED=1 -DL5J_DETECT_REGISTRY=1 -DL5J_STAY_ALIVE=0 -DL5J_ENABLE_SPLASH=0 -DL5J_ENCODE_ARGS=0 -o bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash_noenc.exe src/head.c obj/common.$(CPU_ARCH).o obj/registry.$(CPU_ARCH).o $(LDFLAGS)
|
|
|
|
ifeq ($(DEBUG),0)
|
2020-10-02 16:00:22 +02:00
|
|
|
strip bin/launch5j_$(CPU_ARCH)_wrapped_registry_nowait_nosplash_noenc.exe
|
2020-10-02 19:01:29 +02:00
|
|
|
endif
|
2020-09-26 22:17:23 +02:00
|
|
|
|
2020-10-02 19:01:29 +02:00
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
# ALL
|
|
|
|
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: \
|
|
|
|
l5j \
|
|
|
|
l5j_noenc \
|
|
|
|
l5j_nosplash \
|
|
|
|
l5j_nosplash_noenc \
|
|
|
|
l5j_nowait \
|
|
|
|
l5j_nowait_noenc \
|
|
|
|
l5j_nowait_nosplash \
|
|
|
|
l5j_nowait_nosplash_noenc \
|
|
|
|
l5j_registry \
|
|
|
|
l5j_registry_noenc \
|
|
|
|
l5j_registry_nosplash \
|
|
|
|
l5j_registry_nosplash_noenc \
|
|
|
|
l5j_registry_nowait \
|
|
|
|
l5j_registry_nowait_noenc \
|
|
|
|
l5j_registry_nowait_nosplash \
|
|
|
|
l5j_registry_nowait_nosplash_noenc \
|
|
|
|
l5j_wrapped \
|
|
|
|
l5j_wrapped_noenc \
|
|
|
|
l5j_wrapped_nosplash \
|
|
|
|
l5j_wrapped_nosplash_noenc \
|
|
|
|
l5j_wrapped_nowait \
|
|
|
|
l5j_wrapped_nowait_noenc \
|
|
|
|
l5j_wrapped_nowait_nosplash \
|
|
|
|
l5j_wrapped_nowait_nosplash_noenc \
|
|
|
|
l5j_wrapped_registry \
|
|
|
|
l5j_wrapped_registry_noenc \
|
|
|
|
l5j_wrapped_registry_nosplash \
|
|
|
|
l5j_wrapped_registry_nosplash_noenc \
|
|
|
|
l5j_wrapped_registry_nowait \
|
|
|
|
l5j_wrapped_registry_nowait_noenc \
|
|
|
|
l5j_wrapped_registry_nowait_nosplash \
|
|
|
|
l5j_wrapped_registry_nowait_nosplash_noenc
|
2020-09-30 21:23:06 +02:00
|
|
|
|