Repository navigation
Expand file tree
/
Copy pathMakefile.next
More file actions
92 lines (48 loc) · 2.01 KB
/
Copy pathMakefile.next
File metadata and controls
92 lines (48 loc) · 2.01 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
# 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
# Makefile for 4.3 BSD
M4=m4
CC=cc
CPP=/lib/cpp
CFLAGS=
CPPFLAGS=-I/usr/include
TESTS=tests/length tests/enqueue tests/free tests/addremov tests/is_empty tests/peek tests/init tests/dequeue
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: $(TESTS)
install: maninstall
maninstall:
mkdir -p $(PREFIX)/share/man/mancware
cp $(DOCS) $(PREFIX)/share/man/mancware
clean:
rm -f $(TESTS)
rm -f $(EXAMPLES)
.SUFFIXES:
tests/dequeue: tests/dequeue.c
$(CPP) $(CPPFLAGS) tests/dequeue.c > tests/dequeue.c.i
$(CC) tests/dequeue.c.i $(CFLAGS) -o tests/dequeue
tests/addremov: tests/addremov.c
$(CPP) $(CPPFLAGS) tests/addremov.c > tests/addremov.c.i
$(CC) tests/addremov.c.i $(CFLAGS) -o tests/addremov
tests/enqueue: tests/enqueue.c
$(CPP) $(CPPFLAGS) tests/enqueue.c > tests/enqueue.c.i
$(CC) tests/enqueue.c.i $(CFLAGS) -o tests/enqueue
tests/init: tests/init.c
$(CPP) $(CPPFLAGS) tests/init.c > tests/init.c.i
$(CC) tests/init.c.i $(CFLAGS) -o tests/init
tests/peek: tests/peek.c
$(CPP) $(CPPFLAGS) tests/peek.c > tests/peek.c.i
$(CC) tests/peek.c.i $(CFLAGS) -o tests/peek
tests/is_empty: tests/is_empty.c
$(CPP) $(CPPFLAGS) tests/is_empty.c > tests/is_empty.c.i
$(CC) tests/is_empty.c.i $(CFLAGS) -o tests/is_empty
tests/free: tests/free.c
$(CPP) $(CPPFLAGS) tests/free.c > tests/free.c.i
$(CC) tests/free.c.i $(CFLAGS) -o tests/free
tests/length: tests/length.c
$(CPP) $(CPPFLAGS) tests/length.c > tests/length.c.i
$(CC) tests/length.c.i $(CFLAGS) -o tests/length
.PHONY: all clean install maninstall