Added splintrc and lint checking.
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
-sysdirs C:\WinAVR~1\avr\include;C:\WinAVR~1\lib\gcc\avr\4.2.2\include;C:\WinAVR~1\avr\include\avr;C:\WinAVR~1\avr\include\compat;C:\WinAVR~1\avr\include\util
|
||||||
|
-IC:\WinAVR~1\avr\include
|
||||||
|
-IC:\WinAVR~1\avr\include\avr
|
||||||
|
-IC:\WinAVR~1\avr\include\compat
|
||||||
|
-IC:\WinAVR~1\avr\include\util
|
||||||
|
-IC:\WinAVR~1\lib\gcc\avr\4.2.2\include
|
||||||
|
-I../../include
|
||||||
|
-I.
|
||||||
|
-castfcnptr
|
||||||
|
-fullinitblock
|
||||||
|
-weak
|
||||||
|
-D__AVR_ATmega168__
|
||||||
|
-D__GNUC__
|
||||||
@@ -12,6 +12,7 @@ AR = avr-ar
|
|||||||
OBJCOPY = avr-objcopy
|
OBJCOPY = avr-objcopy
|
||||||
OBJDUMP = avr-objdump
|
OBJDUMP = avr-objdump
|
||||||
SIZE = avr-size
|
SIZE = avr-size
|
||||||
|
LINT = splint
|
||||||
|
|
||||||
# Source locations
|
# Source locations
|
||||||
BACNET_CORE = ../../src
|
BACNET_CORE = ../../src
|
||||||
@@ -24,21 +25,21 @@ CSRC = main.c \
|
|||||||
rs485.c \
|
rs485.c \
|
||||||
dlmstp.c \
|
dlmstp.c \
|
||||||
apdu.c \
|
apdu.c \
|
||||||
$(BACNET_CORE)/crc.c
|
h_rp.c \
|
||||||
|
|
||||||
# common demo files needed
|
|
||||||
DEMOSRC = h_rp.c \
|
|
||||||
device.c \
|
device.c \
|
||||||
av.c \
|
av.c \
|
||||||
bv.c \
|
bv.c \
|
||||||
$(BACNET_DEMO)/handler/txbuf.c \
|
|
||||||
$(BACNET_DEMO)/handler/h_npdu.c \
|
|
||||||
$(BACNET_DEMO)/handler/noserv.c \
|
|
||||||
h_whois.c \
|
h_whois.c \
|
||||||
h_wp.c
|
h_wp.c
|
||||||
|
|
||||||
|
# common demo files needed
|
||||||
|
DEMOSRC = $(BACNET_DEMO)/handler/txbuf.c \
|
||||||
|
$(BACNET_DEMO)/handler/h_npdu.c \
|
||||||
|
$(BACNET_DEMO)/handler/noserv.c
|
||||||
|
|
||||||
# core BACnet stack files
|
# core BACnet stack files
|
||||||
CORESRC = \
|
CORESRC = \
|
||||||
|
$(BACNET_CORE)/crc.c \
|
||||||
$(BACNET_CORE)/apdu.c \
|
$(BACNET_CORE)/apdu.c \
|
||||||
$(BACNET_CORE)/npdu.c \
|
$(BACNET_CORE)/npdu.c \
|
||||||
$(BACNET_CORE)/bacdcode.c \
|
$(BACNET_CORE)/bacdcode.c \
|
||||||
@@ -171,6 +172,9 @@ size: ${TARGET_ELF}
|
|||||||
@echo
|
@echo
|
||||||
@${SIZE} -C --mcu=${MCU} ${TARGET_ELF}
|
@${SIZE} -C --mcu=${MCU} ${TARGET_ELF}
|
||||||
|
|
||||||
|
lint:
|
||||||
|
$(LINT) $(BFLAGS) $(CSRC)
|
||||||
|
|
||||||
## Clean target
|
## Clean target
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include "rs485.h"
|
#include "rs485.h"
|
||||||
#include "datalink.h"
|
#include "datalink.h"
|
||||||
#include "npdu.h"
|
#include "npdu.h"
|
||||||
|
#include "handlers.h"
|
||||||
#include "txbuf.h"
|
#include "txbuf.h"
|
||||||
#include "iam.h"
|
#include "iam.h"
|
||||||
#include "device.h"
|
#include "device.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user