File: Makefile.am

package info (click to toggle)
psensor 1.1.3-2%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 3,748 kB
  • sloc: ansic: 7,194; sh: 4,979; perl: 3,922; makefile: 335; xml: 210; sed: 16
file content (46 lines) | stat: -rw-r--r-- 1,358 bytes parent folder | download | duplicates (5)
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
check-local: checkpatch.pl
	find $(top_srcdir)/src -name \*.c -exec $(srcdir)/checkpatch.pl --ignore FUNCTION_WITHOUT_ARGS,SPLIT_STRING --show-types -q --no-tree  -emacs -f {} \;
	find $(top_srcdir)/src -name \*.h -exec $(srcdir)/checkpatch.pl --ignore FUNCTION_WITHOUT_ARGS,SPLIT_STRING --show-types -q --no-tree  -emacs -f {} \;

DEFS = -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" @DEFS@

EXTRA_DIST = checkpatch.pl \
	test-cppcheck.sh \
	test-io-dir-list.sh

check_PROGRAMS = test-io-dir-list \
	test-psensor-type-to-unit-str \
	test-psensor-value-to-str \
	test-url-encode \
	test-url-normalize

AM_CPPFLAGS = -Wall -Werror

LIBS += ../src/lib/libpsensor.a \
	$(SENSORS_LIBS)

if ATASMART
LIBS += $(ATASMART_LIBS)
endif

if GTOP
LIBS += $(GTOP_LIBS)
endif

test_io_dir_list_SOURCES = test_io_dir_list.c
test_psensor_type_to_unit_str_SOURCES = test_psensor_type_to_unit_str.c
test_psensor_type_to_unit_str_CFLAGS = -I$(top_srcdir)/src/lib
test_psensor_value_to_str_SOURCES = test_psensor_value_to_str.c
test_psensor_value_to_str_CFLAGS = -I$(top_srcdir)/src/lib
test_url_encode_SOURCES = test_url_encode.c
test_url_normalize_SOURCES = test_url_normalize.c

TESTS = test-io-dir-list.sh \
	test-psensor-type-to-unit-str \
	test-psensor-value-to-str \
	test-url-encode \
	test-url-normalize

if CPPCHECK
TESTS += test-cppcheck.sh
endif