Repository navigation
Expand file tree
/
Copy pathMakefile.dist
More file actions
122 lines (71 loc) · 2.91 KB
/
Copy pathMakefile.dist
File metadata and controls
122 lines (71 loc) · 2.91 KB
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
112
113
114
115
116
117
118
119
120
121
122
# A collection of m4 macros to make writing Makefiles easier.
# Recommended for a two-pass m4 system.
# Define the implicit rules
# A collection of m4 macros to make writing Makefiles easier.
# Recommended for a two-pass m4 system.
# Define the implicit rules
M4=m4
CC=cc
PREFIX=/usr/local
CFLAGS=-Wall -Wextra -Wpedantic -Wno-unused-but-set-variable -g -DLIBERROR_ENABLED -DLIBERROR_STREAM=stderr
SRCS=tests/append.c tests/filter.c tests/free.c tests/clear.c tests/resize.c tests/map.c tests/pop.c tests/foreach.c tests/init.c tests/insert.c tests/find.c
TESTS=tests/append tests/filter tests/free tests/clear tests/resize tests/map tests/pop tests/foreach tests/init tests/insert tests/find
EXAMPLES=
DOCS=doc/M4ARRAY_INSERT.cware doc/m4array-intro.cware doc/M4ARRAY_POP.cware doc/M4ARRAY_DECLARE.cware doc/M4ARRAY_FIND.cware doc/m4array-examples-join.cware doc/M4ARRAY_FOREACH.cware doc/m4array.cware doc/M4ARRAY_INIT.cware doc/M4ARRAY_MAP.cware doc/M4ARRAY_CLEAR.cware doc/M4ARRAY_FREE.cware doc/M4ARRAY_FILTER.cware doc/M4ARRAY_APPEND.cware
all: $(SRCS) $(TESTS) $(EXAMPLES)
install: maninstall
clean:
rm -f $(TESTS)
rm -f $(EXAMPLES)
maninstall:
mkdir -p $(PREFIX)/share/man/mancware
cp $(DOCS) $(PREFIX)/share/man/mancware
dist: $(SRCS)
dist_clean:
rm -rf $(SRCS)
.SUFFIXES:
tests/append.c: tests/append.m4c
$(M4) tests/append.m4c > tests/append.c
tests/filter.c: tests/filter.m4c
$(M4) tests/filter.m4c > tests/filter.c
tests/free.c: tests/free.m4c
$(M4) tests/free.m4c > tests/free.c
tests/clear.c: tests/clear.m4c
$(M4) tests/clear.m4c > tests/clear.c
tests/resize.c: tests/resize.m4c
$(M4) tests/resize.m4c > tests/resize.c
tests/map.c: tests/map.m4c
$(M4) tests/map.m4c > tests/map.c
tests/pop.c: tests/pop.m4c
$(M4) tests/pop.m4c > tests/pop.c
tests/foreach.c: tests/foreach.m4c
$(M4) tests/foreach.m4c > tests/foreach.c
tests/init.c: tests/init.m4c
$(M4) tests/init.m4c > tests/init.c
tests/insert.c: tests/insert.m4c
$(M4) tests/insert.m4c > tests/insert.c
tests/find.c: tests/find.m4c
$(M4) tests/find.m4c > tests/find.c
tests/append: tests/append.c
$(CC) tests/append.c $(CFLAGS) -o tests/append
tests/filter: tests/filter.c
$(CC) tests/filter.c $(CFLAGS) -o tests/filter
tests/free: tests/free.c
$(CC) tests/free.c $(CFLAGS) -o tests/free
tests/clear: tests/clear.c
$(CC) tests/clear.c $(CFLAGS) -o tests/clear
tests/resize: tests/resize.c
$(CC) tests/resize.c $(CFLAGS) -o tests/resize
tests/map: tests/map.c
$(CC) tests/map.c $(CFLAGS) -o tests/map
tests/pop: tests/pop.c
$(CC) tests/pop.c $(CFLAGS) -o tests/pop
tests/foreach: tests/foreach.c
$(CC) tests/foreach.c $(CFLAGS) -o tests/foreach
tests/init: tests/init.c
$(CC) tests/init.c $(CFLAGS) -o tests/init
tests/insert: tests/insert.c
$(CC) tests/insert.c $(CFLAGS) -o tests/insert
tests/find: tests/find.c
$(CC) tests/find.c $(CFLAGS) -o tests/find
.PHONY: all clean dist dist_clean install maninstall