updated makefile for gateway example.

Fixed compiler warnings in gateway main.c file.
This commit is contained in:
skarg
2013-10-02 22:25:20 +00:00
parent 0bdfeb2ecf
commit 827cd8aa66
2 changed files with 20 additions and 4 deletions
+18 -2
View File
@@ -14,7 +14,23 @@ TARGET_BIN = ${TARGET}$(TARGET_EXT)
SRCS = main.c \ SRCS = main.c \
$(BACNET_OBJECT)/gw_device.c \ $(BACNET_OBJECT)/gw_device.c \
$(BACNET_HANDLER)/h_routed_npdu.c \ $(BACNET_HANDLER)/h_routed_npdu.c \
$(BACNET_HANDLER)/s_router.c $(BACNET_HANDLER)/s_router.c \
$(BACNET_OBJECT)/device.c \
$(BACNET_OBJECT)/ai.c \
$(BACNET_OBJECT)/ao.c \
$(BACNET_OBJECT)/av.c \
$(BACNET_OBJECT)/bi.c \
$(BACNET_OBJECT)/bo.c \
$(BACNET_OBJECT)/bv.c \
$(BACNET_OBJECT)/csv.c \
$(BACNET_OBJECT)/lc.c \
$(BACNET_OBJECT)/lsp.c \
$(BACNET_OBJECT)/ms-input.c \
$(BACNET_OBJECT)/mso.c \
$(BACNET_OBJECT)/msv.c \
$(BACNET_OBJECT)/nc.c \
$(BACNET_OBJECT)/trendlog.c \
$(BACNET_OBJECT)/bacfile.c
OBJS = ${SRCS:.c=.o} OBJS = ${SRCS:.c=.o}
@@ -24,7 +40,7 @@ CFLAGS = $(WARNINGS) $(DEBUGGING) $(OPTIMIZATION) $(STANDARDS) $(INCLUDES) $(DE
all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN} all: ${BACNET_LIB_TARGET} Makefile ${TARGET_BIN}
${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET} ${TARGET_BIN}: ${OBJS} Makefile ${BACNET_LIB_TARGET}
${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@ ${CC} ${PFLAGS} ${OBJS} ${LFLAGS} -o $@
size $@ size $@
cp $@ ../../bin cp $@ ../../bin
+2 -2
View File
@@ -85,7 +85,7 @@ int DNET_list[2] = {
* @param first_object_instance Set the first (gateway) Device to this * @param first_object_instance Set the first (gateway) Device to this
instance number, and subsequent devices to incremented values. instance number, and subsequent devices to incremented values.
*/ */
void Devices_Init( static void Devices_Init(
uint32_t first_object_instance) uint32_t first_object_instance)
{ {
int i; int i;
@@ -176,7 +176,7 @@ static void Init_Service_Handlers(
* device.) This is sure to be unique! The port number stays the same. * device.) This is sure to be unique! The port number stays the same.
* - For MS/TP, [Steve inserts a good idea here] * - For MS/TP, [Steve inserts a good idea here]
*/ */
void Initialize_Device_Addresses( static void Initialize_Device_Addresses(
) )
{ {
int i = 0; /* First entry is Gateway Device */ int i = 0; /* First entry is Gateway Device */