Allowing switching HTTPS builds on/off using the HTTPS Makefile parameter

This commit is contained in:
2025-10-17 11:36:23 +02:00
parent 13c578d347
commit e26042e2e7
2 changed files with 9 additions and 7 deletions
+8 -4
View File
@@ -21,10 +21,14 @@ else
LFLAGS += -lssl -lcrypto
endif
HTTPS = 1
ifeq ($(HTTPS),1)
CFLAGS += -DHTTPS_ENABLED
LFLAGS += -lssl -lcrypto
HTTPS ?= 0
ifneq ($(HTTPS),0)
ifeq ($(OS),Windows_NT)
$(error "HTTPS not supported on Windows")
else
CFLAGS += -DHTTPS_ENABLED
LFLAGS += -lssl -lcrypto
endif
endif
# Installation directories