Repository navigation
Expand file tree
/
Copy pathMakefile.dist
More file actions
110 lines (59 loc) · 2.39 KB
/
Copy pathMakefile.dist
File metadata and controls
110 lines (59 loc) · 2.39 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
# 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
SRCS=tests/length.c tests/enqueue.c tests/free.c tests/addremov.c tests/is_empty.c tests/peek.c tests/init.c tests/dequeue.c
TESTS=tests/length tests/enqueue tests/free tests/addremov tests/is_empty tests/peek tests/init tests/dequeue
EXAMPLES=
DOCS=doc/M4QUEUE_DEQUEUE.cware doc/m4queue-intro.cware doc/M4QUEUE_PEEK.cware doc/M4QUEUE_INIT.cware doc/M4QUEUE_LENGTH.cware doc/M4QUEUE_DECLARE.cware doc/M4QUEUE_ENQUEUE.cware doc/m4queue-example-tree.cware doc/M4QUEUE_IS_EMPTY.cware doc/m4queue.cware doc/M4QUEUE_FREE.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/length.c: tests/length.m4c
$(M4) tests/length.m4c > tests/length.c
tests/enqueue.c: tests/enqueue.m4c
$(M4) tests/enqueue.m4c > tests/enqueue.c
tests/free.c: tests/free.m4c
$(M4) tests/free.m4c > tests/free.c
tests/addremov.c: tests/addremov.m4c
$(M4) tests/addremov.m4c > tests/addremov.c
tests/is_empty.c: tests/is_empty.m4c
$(M4) tests/is_empty.m4c > tests/is_empty.c
tests/peek.c: tests/peek.m4c
$(M4) tests/peek.m4c > tests/peek.c
tests/init.c: tests/init.m4c
$(M4) tests/init.m4c > tests/init.c
tests/dequeue.c: tests/dequeue.m4c
$(M4) tests/dequeue.m4c > tests/dequeue.c
tests/length: tests/length.c
$(CC) tests/length.c $(CFLAGS) -o tests/length
tests/enqueue: tests/enqueue.c
$(CC) tests/enqueue.c $(CFLAGS) -o tests/enqueue
tests/free: tests/free.c
$(CC) tests/free.c $(CFLAGS) -o tests/free
tests/addremov: tests/addremov.c
$(CC) tests/addremov.c $(CFLAGS) -o tests/addremov
tests/is_empty: tests/is_empty.c
$(CC) tests/is_empty.c $(CFLAGS) -o tests/is_empty
tests/peek: tests/peek.c
$(CC) tests/peek.c $(CFLAGS) -o tests/peek
tests/init: tests/init.c
$(CC) tests/init.c $(CFLAGS) -o tests/init
tests/dequeue: tests/dequeue.c
$(CC) tests/dequeue.c $(CFLAGS) -o tests/dequeue
.PHONY: all clean dist dist_clean install maninstall