Corrected warnings and errors for Linux compile.

This commit is contained in:
skarg
2007-10-11 18:17:38 +00:00
parent 4e3769b6b4
commit 02a0554ed8
3 changed files with 3 additions and 7 deletions
+1 -3
View File
@@ -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}
-3
View File
@@ -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;
+2 -1
View File
@@ -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