Make all modules configurable

pull/112/head
Timo Wischer 9 years ago
parent 9ecfb2a0a5
commit 1a3167bf3c
  1. 22
      Makefile

@ -84,7 +84,7 @@ LED_SERIAL_PIN ?= 14
# --------------- esp-link modules config options ---------------
# Optional Modules mqtt
#MODULES ?= mqtt rest syslog cmd
#MODULES ?= mqtt rest syslog cmd esp-link/cgiadv esp-link/log serial/console serial/serbridge
# --------------- esphttpd config options ---------------
@ -216,6 +216,26 @@ ifneq (,$(findstring syslog,$(MODULES)))
CFLAGS += -DSYSLOG
endif
ifneq (,$(findstring cmd,$(MODULES)))
CFLAGS += -DCMD
endif
ifneq (,$(findstring esp-link/cgiadv,$(MODULES)))
CFLAGS += -DCGI_ADVANCED
endif
ifneq (,$(findstring esp-link/log,$(MODULES)))
CFLAGS += -DLOG
endif
ifneq (,$(findstring serial/console,$(MODULES)))
CFLAGS += -DCONSOLE
endif
ifneq (,$(findstring serial/serbridge,$(MODULES)))
CFLAGS += -DSERIAL_BRIDGE
endif
# which modules (subdirectories) of the project to include in compiling
LIBRARIES_DIR = libraries
MODULES += espfs httpd user serial esp-link

Loading…
Cancel
Save