aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/tests/Makefile.am
blob: 38580c145b80640a5c6b185e64b132b9debc550a (plain)
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
NULL =

# This defines libsamsung_ipc_la_SOURCES so it can be shared between
# samsung-ipc/Makefile.am (for the libsamsung-ipc library) and this Makefile.am.
include $(top_srcdir)/samsung-ipc/common/Makefile.am

AM_CFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/samsung-ipc \
        $(OPENSSL_CFLAGS) \
        $(NULL)

if WANT_DEBUG
AM_CFLAGS += -ggdb -O0 -DDEBUG
endif

bin_PROGRAMS = \
	libsamsung-ipc-test \
	$(NULL)

libsamsung_ipc_test_SOURCES = \
	$(top_srcdir)/samsung-ipc/tests/main.c \
	$(top_srcdir)/samsung-ipc/tests/partitions/android.c \
	$(top_srcdir)/samsung-ipc/tests/partitions/android.h \
	$(NULL)

libsamsung_ipc_test_SOURCES += $(libsamsung_ipc_la_SOURCES)

libsamsung_ipc_test_LDADD = \
	$(OPENSSL_LIBS) \
	$(NULL)

libsamsung_ipc_test_LDFLAGS =

# As we reuse $(libsamsung_ipc_la_SOURCES) in the libsamsung-ipc-test test
# program, we need to tell the autotools to separate the libsamsung-ipc and
# libsamsung-ipc-test .o, otherwise libsamsung-ipc' .o will be linked
# directoy in libsamsung-ipc-test.
# As they need to be compiled with different options, this is an issue.
# Without that we might have errors like this one during autogen.sh:
# error: object 'ipc.$(OBJEXT)' created both with libtool and without
libsamsung_ipc_test_CPPFLAGS = ${AM_CPPFLAGS}

# TODO: Find a way to make test more modular and represent each run of
# libsamsung-ipc-test in TEST while having it implemented in a single
# python file
PY_LOG_COMPILER = $(PYTHON)
TEST_EXTENSIONS = .py
TESTS = libsamsung-ipc-test.py