Makefile.am 1.71 KB
Newer Older
1
SET_FEATURES = @SET_FEATURES@
2
SET_INCLUDES = -I$(top_srcdir) -Ifile -Ilibaacs
3

4
AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS)
5
AM_YFLAGS = -d -p libaacs_yy
Accident's avatar
 
Accident committed
6

Ano Nymous's avatar
Ano Nymous committed
7
lib_LTLIBRARIES = libaacs.la
npzacs's avatar
npzacs committed
8
9
libaacs_la_SOURCES=\
	libaacs/aacs.h \
Ano Nymous's avatar
Ano Nymous committed
10
11
12
13
14
15
16
	libaacs/mmc.h \
	libaacs/mkb.h \
	libaacs/aacs.c \
	libaacs/mmc.c \
	libaacs/crypto.c \
	libaacs/crypto.h \
	libaacs/mkb.c \
17
	file/dirs.h \
18
	file/file.h \
19
	file/filesystem.h \
20
	file/file_posix.c \
npzacs's avatar
npzacs committed
21
	file/keydbcfg.c \
Ano Nymous's avatar
Ano Nymous committed
22
23
24
	file/keydbcfg.h \
	file/keydbcfg-parser.y \
	file/keydbcfg-lexer.l \
25
26
27
	util/attributes.h \
	util/macro.h \
	util/logging.c \
28
	util/logging.h \
Ano Nymous's avatar
Ano Nymous committed
29
30
	util/strutl.c \
	util/strutl.h
31

npzacs's avatar
npzacs committed
32
33
EXTRA_libaacs_la_SOURCES=\
	libaacs/ec.c
npzacs's avatar
npzacs committed
34

35
36
if HAVE_DARWIN
libaacs_la_SOURCES+= \
npzacs's avatar
npzacs committed
37
	file/dirs_darwin.c
38
else
39
40
if HAVE_WIN32
libaacs_la_SOURCES+= \
npzacs's avatar
npzacs committed
41
	file/dirs_win32.c
42
43
else
libaacs_la_SOURCES+= \
npzacs's avatar
npzacs committed
44
	file/dirs_xdg.c
45
endif
46
endif
47

npzacs's avatar
npzacs committed
48
49
50
51
52
pkginclude_HEADERS = \
	libaacs/aacs.h \
	file/filesystem.h \
	libaacs/aacs-version.h

npzacs's avatar
npzacs committed
53
libaacs_la_LDFLAGS= -no-undefined -version-info $(LT_VERSION_INFO)
hpi1's avatar
hpi1 committed
54
libaacs_la_LIBADD = $(LIBGCRYPT_LIBS)
gates's avatar
gates committed
55
pkgconfigdir = $(libdir)/pkgconfig
Ano Nymous's avatar
Ano Nymous committed
56
57
58
pkgconfig_DATA = libaacs.pc

BUILT_SOURCES = keydbcfg-parser.h keydbcfg-parser.c keydbcfg-lexer.c
59

60
61
CLEANFILES = $(BUILT_SOURCES)

62
63
clean-lex-yacc:
	-rm -f $(BUILT_SOURCES)
64
65
66
67

# do not distribute files that should be generated by lex/yacc locally
dist-hook:
	(cd $(distdir) && rm -f $(BUILT_SOURCES))
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83

#
# programs
#

noinst_PROGRAMS = parser_test
bin_PROGRAMS = aacs_info

parser_test_SOURCES = examples/parser_test.c \
	file/keydbcfg-parser.y \
	file/keydbcfg-lexer.l
parser_test_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)

aacs_info_SOURCES = examples/aacs_info.c
aacs_info_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
aacs_info_LDADD = libaacs.la