forked from katef/libfsm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
112 lines (102 loc) · 2.23 KB
/
Makefile
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
109
110
111
.MAKEFLAGS: -r -m share/mk
.MAKE.JOB.PREFIX=
# targets
all:: mkdir .WAIT dep .WAIT lib prog
dep::
gen::
test:: all
fuzz:: all
install:: all
uninstall::
clean::
# things to override
CC ?= gcc
DOT ?= dot
RE ?= re
BUILD ?= build
PREFIX ?= /usr/local
.if make(fuzz) || make(${BUILD}/theft/theft)
PKG += libtheft
.endif
# layout
SUBDIR += include/fsm
SUBDIR += include/re
SUBDIR += include
SUBDIR += src/adt
SUBDIR += src/print
SUBDIR += src/libfsm/cost
SUBDIR += src/libfsm/pred
SUBDIR += src/libfsm/print
SUBDIR += src/libfsm/walk
SUBDIR += src/libfsm/vm
SUBDIR += src/libfsm
SUBDIR += src/libre/class
SUBDIR += src/libre/dialect
SUBDIR += src/libre/print
SUBDIR += src/libre
SUBDIR += src/fsm
SUBDIR += src/re
SUBDIR += src/retest
SUBDIR += src/lx/print
SUBDIR += src/lx
SUBDIR += src
SUBDIR += tests/capture
SUBDIR += tests/complement
SUBDIR += tests/intersect
SUBDIR += tests/ir
SUBDIR += tests/eclosure
SUBDIR += tests/subtract
SUBDIR += tests/determinise
SUBDIR += tests/epsilons
SUBDIR += tests/glob
SUBDIR += tests/like
SUBDIR += tests/literal
# FIXME: commenting this out for now due to Makefile error
#SUBDIR += tests/lxpos
SUBDIR += tests/minimise
SUBDIR += tests/native
SUBDIR += tests/pcre
SUBDIR += tests/pcre-classes
SUBDIR += tests/pcre-anchor
SUBDIR += tests/pcre-flags
SUBDIR += tests/pcre-repeat
SUBDIR += tests/pred
SUBDIR += tests/reverse
SUBDIR += tests/trim
SUBDIR += tests/union
SUBDIR += tests/set
SUBDIR += tests/stateset
SUBDIR += tests/internedstateset
SUBDIR += tests/sql
SUBDIR += tests/hashset
SUBDIR += tests/queue
SUBDIR += tests/aho_corasick
SUBDIR += tests/retest
SUBDIR += tests
.if make(fuzz) || make(${BUILD}/theft/theft)
SUBDIR += theft
.endif
SUBDIR += pc
INCDIR += include
.include <subdir.mk>
.include <pc.mk>
.include <sid.mk>
.include <pkgconf.mk>
.include <lx.mk>
.include <obj.mk>
.include <dep.mk>
.include <ar.mk>
.include <so.mk>
.include <part.mk>
.include <prog.mk>
.include <mkdir.mk>
# these are internal tools for development; we don't install them to $PREFIX
STAGE_BUILD := ${STAGE_BUILD:Nbin/retest}
STAGE_BUILD := ${STAGE_BUILD:Nbin/reperf}
STAGE_BUILD := ${STAGE_BUILD:Nbin/cvtpcre}
.include <install.mk>
.include <clean.mk>
.if make(test)
.END::
grep FAIL ${BUILD}/tests/*/res*; [ $$? -ne 0 ]
.endif