Corrected warnings and errors for Linux compile.
This commit is contained in:
@@ -24,9 +24,7 @@ LIBRARIES=-lc,-lgcc,-lm,-L=$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME)
|
||||
CFLAGS = -Wall -g $(INCLUDES) $(DEFINES)
|
||||
LFLAGS = -Wl,-Map=$(TARGET).map,$(LIBRARIES)
|
||||
|
||||
SRCS = main.c \
|
||||
$(BACNET_ROOT)/key.c \
|
||||
$(BACNET_ROOT)/keylist.c
|
||||
SRCS = main.c
|
||||
|
||||
OBJS = ${SRCS:.c=.o}
|
||||
|
||||
|
||||
@@ -58,9 +58,6 @@ static uint8_t Rx_Buf[MAX_MPDU] = { 0 };
|
||||
static uint32_t Target_Device_Object_Instance = BACNET_MAX_INSTANCE;
|
||||
static bool Error_Detected = false;
|
||||
static BACNET_ADDRESS Target_Address;
|
||||
/* use this parameter to set a special interface:
|
||||
"eth0" on Linux, or dotted IP address on Windows */
|
||||
static char *Network_Interface = NULL;
|
||||
|
||||
typedef struct BACnet_RP_Service_Data_t {
|
||||
bool new_data;
|
||||
|
||||
@@ -16,7 +16,8 @@ DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE)
|
||||
# Directories
|
||||
BACNET_PORT = ../../ports/linux
|
||||
BACNET_INCLUDE = ../../include
|
||||
BACnet Library
|
||||
|
||||
# BACnet Library
|
||||
BACNET_LIB_DIR = ../../lib
|
||||
BACNET_LIB_NAME = bacnet
|
||||
BACNET_LIB_TARGET = $(BACNET_LIB_DIR)/lib$(BACNET_LIB_NAME).a
|
||||
|
||||
Reference in New Issue
Block a user