-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.am
108 lines (92 loc) · 2.53 KB
/
Makefile.am
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
ACLOCAL_AMFLAGS=-I m4
EXTRA_DIST=bootstrap COPYING KEYDB.cfg README.txt ChangeLog
SET_FEATURES = @SET_FEATURES@
SET_INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src/libaacs
AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
AM_YFLAGS = -d -p libaacs_yy
lib_LTLIBRARIES = libaacs.la
libaacs_la_SOURCES=\
src/libaacs/aacs.h \
src/libaacs/aacs.c \
src/libaacs/cci_data.h \
src/libaacs/cci.h \
src/libaacs/cci.c \
src/libaacs/content_cert.h \
src/libaacs/content_cert.c \
src/libaacs/crypto.h \
src/libaacs/crypto.c \
src/libaacs/mkb.h \
src/libaacs/mkb.c \
src/libaacs/mmc.h \
src/libaacs/mmc.c \
src/libaacs/unit_key.h \
src/libaacs/unit_key.c \
src/file/dirs.h \
src/file/file.h \
src/file/file.c \
src/file/filesystem.h \
src/file/filesystem.c \
src/file/keydbcfg.c \
src/file/keydbcfg.h \
src/file/keydb.h \
src/file/keydbcfg-parser.y \
src/file/keydbcfg-lexer.l \
src/file/mmc_device.h \
src/file/path.h \
src/util/attributes.h \
src/util/macro.h \
src/util/logging.c \
src/util/logging.h \
src/util/strutl.c \
src/util/strutl.h
EXTRA_libaacs_la_SOURCES=\
src/libaacs/ec.c
if HAVE_DARWIN
libaacs_la_SOURCES+= \
src/file/dirs_darwin.c \
src/file/file_posix.c \
src/file/mmc_device_darwin.c
else
if HAVE_WIN32
libaacs_la_SOURCES+= \
src/file/dirs_win32.c \
src/file/file_win32.c \
src/file/mmc_device_win32.c
else
libaacs_la_SOURCES+= \
src/file/dirs_xdg.c \
src/file/file_posix.c \
src/file/mmc_device_linux.c \
src/file/path.c
endif
endif
pkginclude_HEADERS = \
src/libaacs/aacs.h \
src/file/filesystem.h \
src/libaacs/aacs-version.h
libaacs_la_LDFLAGS= -no-undefined -version-info $(LT_VERSION_INFO)
libaacs_la_LIBADD = $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = src/libaacs.pc
BUILT_SOURCES = src/libaacs.pc src/libaacs/aacs-version.h src/file/keydbcfg-parser.h src/file/keydbcfg-parser.c src/file/keydbcfg-lexer.c
CLEANFILES = $(BUILT_SOURCES)
clean-lex-yacc:
-rm -f $(BUILT_SOURCES)
# do not distribute files that should be generated by lex/yacc locally
dist-hook:
(cd $(distdir) && rm -f $(BUILT_SOURCES))
#
# programs
#
noinst_PROGRAMS = parser_test
bin_PROGRAMS = aacs_info
parser_test_SOURCES = \
src/examples/parser_test.c \
src/file/keydbcfg-parser.y \
src/file/keydbcfg-lexer.l \
src/util/strutl.c \
src/util/logging.c
parser_test_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
aacs_info_SOURCES = src/examples/aacs_info.c
aacs_info_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_INCLUDES)
aacs_info_LDADD = libaacs.la