1
1
#
2
2
# Options
3
- # make DEBUG=true // Turn on timing statments
3
+
4
+ # Valid flags for AQ_FLAGS
5
+ # AQ_DEBUG = true
6
+ AQ_RS16 = true
7
+ AQ_PDA = true
8
+
9
+
4
10
# make EXFLAGS="-D BETA_PDA_AUTOLABEL" // Add compile flags
5
11
#
12
+
6
13
# define the C compiler to use
7
14
CC = gcc
8
15
@@ -12,9 +19,7 @@ LIBS := -l pthread -l m
12
19
13
20
# debug of not
14
21
# DBG = -g -O0 -fsanitize=address
15
- # DBG = -g -O0
16
- # DBG = -D ONETOUCH
17
- # DBG =
22
+
18
23
19
24
# USe below to remove unused functions and global variables.
20
25
# LFLAGS = -Wl,--gc-sections,--print-gc-sections
@@ -27,20 +32,37 @@ GCCFLAGS = -Wall -O3 $(EXFLAGS)
27
32
28
33
# CFLAGS = -Wall -g $(LIBS)
29
34
# CFLAGS = -Wall -g $(LIBS) -std=gnu11
35
+ # CFLAGS = $(GCCFLAGS) $(DBG) $(AQ_FLAGS) $(LIBS) -D MG_DISABLE_MD5 -D MG_DISABLE_HTTP_DIGEST_AUTH -D MG_DISABLE_MD5 -D MG_DISABLE_JSON_RPC
30
36
CFLAGS = $(GCCFLAGS ) $(DBG ) $(LIBS ) -D MG_DISABLE_MD5 -D MG_DISABLE_HTTP_DIGEST_AUTH -D MG_DISABLE_MD5 -D MG_DISABLE_JSON_RPC
31
37
32
38
33
39
# Add inputs and outputs from these tool invocations to the build variables
34
40
35
41
# define the C source files
36
- SRCS = aqualinkd.c utils.c config.c aq_serial.c init_buttons.c aq_programmer.c net_services.c json_messages.c pda.c pda_menu.c \
37
- pda_aq_programmer.c devices_jandy.c onetouch.c onetouch_aq_programmer.c packetLogger.c devices_pentair.c color_lights.c mongoose.c
42
+ # SRCS = aqualinkd.c utils.c config.c aq_serial.c init_buttons.c aq_programmer.c net_services.c json_messages.c pda.c pda_menu.c \
43
+ # pda_aq_programmer.c devices_jandy.c onetouch.c onetouch_aq_programmer.c packetLogger.c devices_pentair.c color_lights.c mongoose.c
44
+
45
+ SRCS = aqualinkd.c utils.c config.c aq_serial.c init_buttons.c aq_programmer.c net_services.c json_messages.c \
46
+ devices_jandy.c onetouch.c onetouch_aq_programmer.c packetLogger.c devices_pentair.c color_lights.c mongoose.c
38
47
DBG_SRC = timespec_subtract.c
39
48
49
+ ifeq ($(AQ_PDA ) , true)
50
+ SRCS := $(SRCS ) pda.c pda_menu.c pda_aq_programmer.c
51
+ CFLAGS := $(CFLAGS ) -D AQ_PDA
52
+ endif
53
+
54
+ ifeq ($(AQ_RS16 ) , true)
55
+ CFLAGS := $(CFLAGS ) -D AQ_RS16
56
+ endif
57
+
58
+ ifeq ($(AQ_DEBUG ) , true)
59
+ DEBUG =true
60
+ endif
61
+
40
62
# If run with `make DEBUG=true` add debug files and pass parameter for compile
41
63
ifeq ($(DEBUG ) , true)
42
64
SRCS := $(SRCS ) $(DBG_SRC )
43
- CFLAGS := -g -O0 $(CFLAGS ) -D AQ_DEBUG
65
+ CFLAGS := -g -O0 $(CFLAGS ) -D AQ_DEBUG
44
66
endif
45
67
46
68
SL_SRC = serial_logger.c aq_serial.c utils.c packetLogger.c
0 commit comments