Makefile.am 1.47 KB
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4

Romain Tartiere's avatar
Romain Tartiere committed
3 4
AM_CFLAGS = $(LIBNFC_CFLAGS)

5
SUBDIRS = libnfc utils examples include contrib cmake test
6 7 8 9

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libnfc.pc

10 11 12
EXTRA_DIST = \
	CMakeLists.txt \
	Doxyfile \
13 14
	README-Windows.txt \
	libnfc.conf.sample
15

16
CLEANFILES = Doxygen.log coverage.info libnfc.pc
17

18 19
clean-local: clean-local-doc clean-local-coverage

Philippe Teuwen's avatar
Philippe Teuwen committed
20
.PHONY: clean-local-coverage clean-local-doc doc style
21 22 23 24
clean-local-coverage:
	-rm -rf coverage

clean-local-doc:
25 26
	rm -rf doc

27
doc : Doxyfile
28 29
	@DOXYGEN@ $(builddir)/Doxyfile

30 31
DISTCHECK_CONFIGURE_FLAGS="--with-drivers=all"

Philippe Teuwen's avatar
Philippe Teuwen committed
32 33 34 35 36 37 38
style:
	find . -name "*.[ch]" -exec perl -pi -e 's/[ \t]+$$//' {} \;
	find . -name "*.[ch]" -exec astyle --formatted --mode=c --suffix=none \
	    --indent=spaces=2 --indent-switches --indent-preprocessor \
	    --keep-one-line-blocks --max-instatement-indent=60 \
	    --brackets=linux --pad-oper --unpad-paren --pad-header \
	    --align-pointer=name {} \;
39 40 41 42 43 44 45 46 47 48 49

cppcheck:
	cppcheck --quiet \
	    -I include -I libnfc -I libnfc/buses -I libnfc/chips -I libnfc/drivers \
	    --check-config .
	cppcheck --quiet --enable=all --std=posix --std=c99 \
	    -I include -I libnfc -I libnfc/buses -I libnfc/chips -I libnfc/drivers \
	    -DLOG -D__linux__ \
	    -DDRIVER_PN53X_USB_ENABLED -DDRIVER_ACR122_PCSC_ENABLED \
	    -DDRIVER_ACR122_USB_ENABLED -DDRIVER_ACR122S_ENABLED \
	    -DDRIVER_PN532_UART_ENABLED -DDRIVER_ARYGON_ENABLED \
50
	    -DDRIVER_PN532_SPI_ENABLED -DDRIVER_PN532_I2C_ENABLED \
51
	    --force --inconclusive .