-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile.am
54 lines (44 loc) · 1.9 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
# Copyright (C) 2012 Anders Sundman <anders@4zm.org>
#
# This file is part of mfterm.
#
# mfterm is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# mfterm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with mfterm. If not, see <http://www.gnu.org/licenses/>.
AM_CFLAGS = -g -Wall -Wconversion -std=c99 -Werror
SUBDIRS = .
bin_PROGRAMS = mfterm
mfterm_SOURCES = \
mfterm.h mfterm.c \
term_cmd.h term_cmd.c \
util.h util.c \
tag.h tag.c \
mifare.h mifare.c \
mifare_ctrl.h mifare_ctrl.c \
dictionary.h dictionary.c \
spec_syntax.h spec_syntax.c \
mac.h mac.c
mfterm_LDADD = libdp.a libsp.a -lreadline -lnfc -lcrypto
man1_MANS = mfterm.man
dist_man1_MANS = mfterm.man
# We create two convenience libraries fot the parser targets. This is
# to allow us to use different flags (since automake doesn't support
# per file, but only per target flags).
noinst_LIBRARIES = libdp.a libsp.a
libdp_a_SOURCES = dictionary_parser.l
libdp_a_LFLAGS = --prefix=dp_ -o$(LEX_OUTPUT_ROOT).c
libdp_a_CFLAGS = -g -std=c99 -Wall -Wno-unused-function -Wno-unused-but-set-variable -Wno-implicit-function-declaration
libsp_a_SOURCES = spec_tokenizer.l spec_parser.y
libsp_a_LFLAGS = --prefix=sp_ -o$(LEX_OUTPUT_ROOT).c
libsp_a_YFLAGS = --name-prefix=sp_ -d
libsp_a_CFLAGS = -g -std=c99 -Wall -Wno-unused-function -Wno-unused-but-set-variable -Wno-implicit-function-declaration
BUILT_SOURCES = libsp_a-spec_parser.h