aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a81a37ea07c2702d33c76cb08af04f41b6fa7381 (plain) (blame)
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
.PHONY: all clean

CC = clang
CFLAGS = -std=c90 -Weverything

all : hostname ls pwd sort whoami

hostname : hostname.c hostname.h
	$(CC) $(CFLAGS) hostname.c -o hostname

ls : ls.c ls.h
	$(CC) $(CFLAGS) ls.c -o ls

pwd : pwd.c pwd.h
	$(CC) $(CFLAGS) pwd.c -o pwd

sort : sort.c sort.h
	$(CC) $(CFLAGS) sort.c -o sort

whoami : whoami.c whoami.h
	$(CC) $(CFLAGS) whoami.c -o whoami

clean :
	rm -f -- *.o
	rm -f hostname ls pwd sort whoami