mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-23 11:24:34 +00:00
Change from Sparse to Clang's scan-build for make check target
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
82d0b0dcb8
commit
55f92d25ba
1 file changed
+3
-6
@@ -33,13 +33,9 @@ ARCHIVE = $(PKG).tar.xz
|
||||
CC ?= $(CROSS)gcc
|
||||
AR ?= $(CROSS)ar
|
||||
STRIP ?= $(CROSS)strip
|
||||
CHECK ?= sparse
|
||||
CFLAGS += -fPIC -Os
|
||||
CPPFLAGS += -W -Wall -Werror
|
||||
ARFLAGS = crus
|
||||
CHECK_FLAGS = -Wcast-to-as -Wdefault-bitfield-sign -Wdo-while -Wparen-string \
|
||||
-Wptr-subtraction-blows -Wreturn-void -Wshadow -Wtypesign -Wbitwise \
|
||||
-std=gnu99 -D__x86_64__ -D__LP64__ -I/usr/include/x86_64-linux-gnu
|
||||
JUNK = *~ *.bak *.map .*.d DEADJOE *.gdb *.elf core core.*
|
||||
|
||||
LIBNAME = $(NAME)
|
||||
@@ -115,8 +111,9 @@ joystick: Makefile joystick.o $(STATICLIB)
|
||||
@printf " JOTST %s\n" $(STATICLIB)
|
||||
@$(CC) $(CPPFLAGS) -g -o joystick joystick.c $(STATICLIB) && ./joystick
|
||||
|
||||
check:
|
||||
@$(CHECK) $(CHECK_FLAGS) $(CPPFLAGS) $(SRCS) bench.c
|
||||
# Runs Clang scan-build on the whole tree
|
||||
check: clean
|
||||
@scan-build $(MAKE) all
|
||||
|
||||
clean:
|
||||
-@$(RM) $(TARGET) *.o test
|
||||
|
||||
Reference in new issue
Block a user