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 LFLAGS += -lssl -lcrypto
endif endif
HTTPS = 1 HTTPS ?= 0
ifeq ($(HTTPS),1) ifneq ($(HTTPS),0)
CFLAGS += -DHTTPS_ENABLED ifeq ($(OS),Windows_NT)
LFLAGS += -lssl -lcrypto $(error "HTTPS not supported on Windows")
else
CFLAGS += -DHTTPS_ENABLED
LFLAGS += -lssl -lcrypto
endif
endif endif
# Installation directories # Installation directories
+1 -3
View File
@@ -5,7 +5,5 @@ handle 3xx client redirections
add discussion on string management add discussion on string management
add discussion on error management add discussion on error management
check that virtual hosts over HTTPS work check that virtual hosts over HTTPS work
add timers add timers
add debug and release builds add debug and release builds
make it easy to switch on and off HTTPS when building