Repository navigation
Expand file tree
/
Copy pathMakefile.ult
More file actions
84 lines (39 loc) · 1.57 KB
/
Copy pathMakefile.ult
File metadata and controls
84 lines (39 loc) · 1.57 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
# 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 VAX ULTRIX.
M4=m4
CC=cc
PREFIX=/usr/local
CFLAGS=-D__ULTRIX__
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
$(CC) tests/dequeue.c $(CFLAGS) -o tests/dequeue
tests/addremov: tests/addremov.c
$(CC) tests/addremov.c $(CFLAGS) -o tests/addremov
tests/enqueue: tests/enqueue.c
$(CC) tests/enqueue.c $(CFLAGS) -o tests/enqueue
tests/init: tests/init.c
$(CC) tests/init.c $(CFLAGS) -o tests/init
tests/peek: tests/peek.c
$(CC) tests/peek.c $(CFLAGS) -o tests/peek
tests/is_empty: tests/is_empty.c
$(CC) tests/is_empty.c $(CFLAGS) -o tests/is_empty
tests/free: tests/free.c
$(CC) tests/free.c $(CFLAGS) -o tests/free
tests/length: tests/length.c
$(CC) tests/length.c $(CFLAGS) -o tests/length
.PHONY: all clean install maninstall