@@ -38,65 +38,65 @@ ifneq ($(filter noloc,$(MAKECMDGOALS)),) | |||||
O_NOLOC := 1 | O_NOLOC := 1 | ||||
endif | endif | ||||
ifeq ($(O_DEBUG),1) | |||||
ifeq ($(strip $(O_DEBUG)),1) | |||||
CPPFLAGS += -DDBGMODE | CPPFLAGS += -DDBGMODE | ||||
CFLAGS += -g | CFLAGS += -g | ||||
endif | endif | ||||
ifeq ($(O_NORL),1) | |||||
ifeq ($(strip $(O_NORL)),1) | |||||
CPPFLAGS += -DNORL | CPPFLAGS += -DNORL | ||||
else ifeq ($(O_STATIC),1) | |||||
else ifeq ($(strip $(O_STATIC)),1) | |||||
CPPFLAGS += -DNORL | CPPFLAGS += -DNORL | ||||
else | else | ||||
LDLIBS += -lreadline | LDLIBS += -lreadline | ||||
endif | endif | ||||
ifeq ($(O_PCRE),1) | |||||
ifeq ($(strip $(O_PCRE)),1) | |||||
CPPFLAGS += -DPCRE | CPPFLAGS += -DPCRE | ||||
LDLIBS += -lpcre | LDLIBS += -lpcre | ||||
endif | endif | ||||
ifeq ($(O_NOLOC),1) | |||||
ifeq ($(strip $(O_NOLOC)),1) | |||||
CPPFLAGS += -DNOLOCALE | CPPFLAGS += -DNOLOCALE | ||||
endif | endif | ||||
ifeq ($(O_NOMOUSE),1) | |||||
ifeq ($(strip $(O_NOMOUSE)),1) | |||||
CPPFLAGS += -DNOMOUSE | CPPFLAGS += -DNOMOUSE | ||||
endif | endif | ||||
ifeq ($(O_NOBATCH),1) | |||||
ifeq ($(strip $(O_NOBATCH)),1) | |||||
CPPFLAGS += -DNOBATCH | CPPFLAGS += -DNOBATCH | ||||
endif | endif | ||||
ifeq ($(O_NOFIFO),1) | |||||
ifeq ($(strip $(O_NOFIFO)),1) | |||||
CPPFLAGS += -DNOFIFO | CPPFLAGS += -DNOFIFO | ||||
endif | endif | ||||
ifeq ($(O_CTX8),1) | |||||
ifeq ($(strip $(O_CTX8)),1) | |||||
CPPFLAGS += -DCTX8 | CPPFLAGS += -DCTX8 | ||||
endif | endif | ||||
ifeq ($(O_ICONS),1) | |||||
ifeq ($(strip $(O_ICONS)),1) | |||||
CPPFLAGS += -DICONS | CPPFLAGS += -DICONS | ||||
endif | endif | ||||
ifeq ($(O_NERD),1) | |||||
ifeq ($(strip $(O_NERD)),1) | |||||
CPPFLAGS += -DNERD | CPPFLAGS += -DNERD | ||||
endif | endif | ||||
ifeq ($(O_QSORT),1) | |||||
ifeq ($(strip $(O_QSORT)),1) | |||||
CPPFLAGS += -DTOURBIN_QSORT | CPPFLAGS += -DTOURBIN_QSORT | ||||
endif | endif | ||||
ifeq ($(O_BENCH),1) | |||||
ifeq ($(strip $(O_BENCH)),1) | |||||
CPPFLAGS += -DBENCH | CPPFLAGS += -DBENCH | ||||
endif | endif | ||||
ifeq ($(O_NOSSN),1) | |||||
ifeq ($(strip $(O_NOSSN)),1) | |||||
CPPFLAGS += -DNOSSN | CPPFLAGS += -DNOSSN | ||||
endif | endif | ||||
ifeq ($(O_NOUG),1) | |||||
ifeq ($(strip $(O_NOUG)),1) | |||||
CPPFLAGS += -DNOUG | CPPFLAGS += -DNOUG | ||||
endif | endif | ||||
@@ -117,7 +117,7 @@ CFLAGS += $(CFLAGS_CURSES) | |||||
LDLIBS += $(LDLIBS_CURSES) | LDLIBS += $(LDLIBS_CURSES) | ||||
# static compilation needs libgpm development package | # static compilation needs libgpm development package | ||||
ifeq ($(O_STATIC),1) | |||||
ifeq ($(strip $(O_STATIC)),1) | |||||
LDFLAGS += -static | LDFLAGS += -static | ||||
LDLIBS += -lgpm | LDLIBS += -lgpm | ||||
endif | endif | ||||
@@ -36,66 +36,66 @@ ifneq ($(filter noloc,$(MAKECMDGOALS)),) | |||||
O_NOLOC := 1 | O_NOLOC := 1 | ||||
endif | endif | ||||
ifeq ($(O_DEBUG),1) | |||||
ifeq ($(strip $(O_DEBUG)),1) | |||||
CPPFLAGS += -DDBGMODE | CPPFLAGS += -DDBGMODE | ||||
CFLAGS += -g | CFLAGS += -g | ||||
LDLIBS += -lrt | LDLIBS += -lrt | ||||
endif | endif | ||||
ifeq ($(O_NORL),1) | |||||
ifeq ($(strip $(O_NORL)),1) | |||||
CPPFLAGS += -DNORL | CPPFLAGS += -DNORL | ||||
else ifeq ($(O_STATIC),1) | |||||
else ifeq ($(strip $(O_STATIC)),1) | |||||
CPPFLAGS += -DNORL | CPPFLAGS += -DNORL | ||||
else | else | ||||
LDLIBS += -lreadline | LDLIBS += -lreadline | ||||
endif | endif | ||||
ifeq ($(O_PCRE),1) | |||||
ifeq ($(strip $(O_PCRE)),1) | |||||
CPPFLAGS += -DPCRE | CPPFLAGS += -DPCRE | ||||
LDLIBS += -lpcre | LDLIBS += -lpcre | ||||
endif | endif | ||||
ifeq ($(O_NOLOC),1) | |||||
ifeq ($(strip $(O_NOLOC)),1) | |||||
CPPFLAGS += -DNOLOCALE | CPPFLAGS += -DNOLOCALE | ||||
endif | endif | ||||
ifeq ($(O_NOMOUSE),1) | |||||
ifeq ($(strip $(O_NOMOUSE)),1) | |||||
CPPFLAGS += -DNOMOUSE | CPPFLAGS += -DNOMOUSE | ||||
endif | endif | ||||
ifeq ($(O_NOBATCH),1) | |||||
ifeq ($(strip $(O_NOBATCH)),1) | |||||
CPPFLAGS += -DNOBATCH | CPPFLAGS += -DNOBATCH | ||||
endif | endif | ||||
ifeq ($(O_NOFIFO),1) | |||||
ifeq ($(strip $(O_NOFIFO)),1) | |||||
CPPFLAGS += -DNOFIFO | CPPFLAGS += -DNOFIFO | ||||
endif | endif | ||||
ifeq ($(O_CTX8),1) | |||||
ifeq ($(strip $(O_CTX8)),1) | |||||
CPPFLAGS += -DCTX8 | CPPFLAGS += -DCTX8 | ||||
endif | endif | ||||
ifeq ($(O_ICONS),1) | |||||
ifeq ($(strip $(O_ICONS)),1) | |||||
CPPFLAGS += -DICONS | CPPFLAGS += -DICONS | ||||
endif | endif | ||||
ifeq ($(O_NERD),1) | |||||
ifeq ($(strip $(O_NERD)),1) | |||||
CPPFLAGS += -DNERD | CPPFLAGS += -DNERD | ||||
endif | endif | ||||
ifeq ($(O_QSORT),1) | |||||
ifeq ($(strip $(O_QSORT)),1) | |||||
CPPFLAGS += -DTOURBIN_QSORT | CPPFLAGS += -DTOURBIN_QSORT | ||||
endif | endif | ||||
ifeq ($(O_BENCH),1) | |||||
ifeq ($(strip $(O_BENCH)),1) | |||||
CPPFLAGS += -DBENCH | CPPFLAGS += -DBENCH | ||||
endif | endif | ||||
ifeq ($(O_NOSSN),1) | |||||
ifeq ($(strip $(O_NOSSN)),1) | |||||
CPPFLAGS += -DNOSSN | CPPFLAGS += -DNOSSN | ||||
endif | endif | ||||
ifeq ($(O_NOUG),1) | |||||
ifeq ($(strip $(O_NOUG)),1) | |||||
CPPFLAGS += -DNOUG | CPPFLAGS += -DNOUG | ||||
endif | endif | ||||
@@ -122,7 +122,7 @@ CFLAGS += $(CFLAGS_CURSES) | |||||
LDLIBS += $(LDLIBS_CURSES) $(LDLIBS_HAIKU) | LDLIBS += $(LDLIBS_CURSES) $(LDLIBS_HAIKU) | ||||
# static compilation needs libgpm development package | # static compilation needs libgpm development package | ||||
ifeq ($(O_STATIC),1) | |||||
ifeq ($(strip $(O_STATIC)),1) | |||||
LDFLAGS += -static | LDFLAGS += -static | ||||
LDLIBS += -lgpm | LDLIBS += -lgpm | ||||
endif | endif | ||||