Added splintrc and lint checking.

This commit is contained in:
skarg
2008-09-26 15:21:13 +00:00
parent 9a61f79a72
commit 437de29ce7
3 changed files with 25 additions and 7 deletions
+11 -7
View File
@@ -12,6 +12,7 @@ AR = avr-ar
OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump
SIZE = avr-size
LINT = splint
# Source locations
BACNET_CORE = ../../src
@@ -24,21 +25,21 @@ CSRC = main.c \
rs485.c \
dlmstp.c \
apdu.c \
$(BACNET_CORE)/crc.c
# common demo files needed
DEMOSRC = h_rp.c \
h_rp.c \
device.c \
av.c \
bv.c \
$(BACNET_DEMO)/handler/txbuf.c \
$(BACNET_DEMO)/handler/h_npdu.c \
$(BACNET_DEMO)/handler/noserv.c \
h_whois.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
CORESRC = \
$(BACNET_CORE)/crc.c \
$(BACNET_CORE)/apdu.c \
$(BACNET_CORE)/npdu.c \
$(BACNET_CORE)/bacdcode.c \
@@ -171,6 +172,9 @@ size: ${TARGET_ELF}
@echo
@${SIZE} -C --mcu=${MCU} ${TARGET_ELF}
lint:
$(LINT) $(BFLAGS) $(CSRC)
## Clean target
.PHONY: clean
clean: