File: Makefile.am

package info (click to toggle)
libnfc 1.8.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,864 kB
  • sloc: ansic: 18,590; makefile: 406; sh: 211
file content (55 lines) | stat: -rw-r--r-- 1,570 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ACLOCAL_AMFLAGS = -I m4

AM_CFLAGS = $(LIBNFC_CFLAGS)

SUBDIRS = libnfc utils examples include contrib cmake test

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

EXTRA_DIST = \
	CMakeLists.txt \
	Doxyfile \
	HACKING.md \
	NEWS.md \
	README.md \
	README-Windows.md \
	libnfc.conf.sample \
	mingw-cross-compile.sh

CLEANFILES = Doxygen.log coverage.info libnfc.pc

clean-local: clean-local-doc clean-local-coverage

.PHONY: clean-local-coverage clean-local-doc doc style
clean-local-coverage:
	-rm -rf coverage

clean-local-doc:
	rm -rf doc

doc : Doxyfile
	@DOXYGEN@ $(builddir)/Doxyfile

DISTCHECK_CONFIGURE_FLAGS="--with-drivers=all"

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 \
	    --style=linux --pad-oper --unpad-paren --pad-header \
	    --align-pointer=name {} \;

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 \
	    -DDRIVER_PN532_SPI_ENABLED -DDRIVER_PN532_I2C_ENABLED \
	    --force --inconclusive .