-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathMakefile.am
38 lines (29 loc) · 1.22 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
SUBDIRS = src test
CTAGSFLAGS= -R src
.PHONY: parser doc
parser: src/lib/amipack_parser_detect.c \
src/lib/amipack_parser_prompt.c \
src/lib/amipack_parser_message.c \
src/lib/amipack_parser_command.c \
src/lib/amipack_parser_queue.c \
src/lib/config_parser.c
src/lib/amipack_parser_detect.c: src/lib/amipack_parser_detect.re
@echo "Generating AMI packet detect parser with re2c..."
@re2c --no-generation-date -o $@ $^
src/lib/amipack_parser_prompt.c: src/lib/amipack_parser_prompt.re
@echo "Generating AMI Prompt parser with re2c"
@re2c --no-generation-date -c -o $@ $^
src/lib/amipack_parser_message.c: src/lib/amipack_parser_message.re
@echo "Generating AMI Standard message parser with re2c"
@re2c --no-generation-date --tags -o $@ $^
src/lib/amipack_parser_command.c: src/lib/amipack_parser_command.re
@echo "Generating AMI Command output parser with re2c"
@re2c --no-generation-date --tags -o $@ $^
src/lib/amipack_parser_queue.c: src/lib/amipack_parser_queue.re
@echo "Generating AMI Queue output parser with re2c"
@re2c --no-generation-date -c --tags -o $@ $^
src/lib/config_parser.c: src/lib/config_parser.y
@echo "Generating config file parser"
@lemon $^
doc:
cd doc && doxygen