-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathMakefile
41 lines (33 loc) · 981 Bytes
/
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
CC = gcc
CFLAGS = -g -Wall -Wno-parentheses
CPPFLAGS =
TARGETS = hello echo segv args bell \
cat0 cat cat2 cat3 cat-escape cat4 cat5 getcperf feof-bug \
wc-l-stdio wc-l-syscall \
head head2 head3 head4 \
tail tail2 \
grep grep2 grep3 array wgrep slice slice2 \
ls ls2 catdir rm mkdir mkpath rmdir ln symlink mv stat touch chmod chown chgrp traverse \
mapwrite \
exec spawn dupread sh1 sh2 \
sig sigqueue-test isatty trap \
pwd pwd2 pwd3 env showenv user id timefmt strftime \
daytime daytimed echoclient \
httpd httpd2 logging
DLLIB = -ldl
NETLIB =
.SUFFIXES:
.SUFFIXES: .c .
.c:
$(CC) $(CFLAGS) $(CPPFLAGS) $< -o $@
all: $(TARGETS)
show-vmmap: show-vmmap.c
$(CC) $(CFLAGS) $(CPPFLAGS) show-vmmap.c $(DLLIB) -o $@
daytime: daytime.c
$(CC) $(CFLAGS) daytime.c $(NETLIB) -o $@
daytimed: daytimed.c
$(CC) $(CFLAGS) daytimed.c $(NETLIB) -o $@
test: all
@sh test-scripts.sh
clean:
rm -f $(TARGETS)