-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
27 lines (21 loc) · 803 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
CC = gcc
CFLAGS = -Wall -pedantic -std=c99
all: ttt1.o ttt2.o show_node count_nodes alphatoe
ttt1.o: ttt1.c
$(CC) $(CFLAGS) -c ttt1.c -o ttt1.o
ttt2.o: ttt2.c
$(CC) $(CFLAGS) -c ttt2.c -o ttt2.o
show_node: show_node.o ttt1.o ttt2.o
$(CC) $(CFLAGS) show_node.o ttt1.o ttt2.o -o show_node
show_node.o: show_node.c
$(CC) $(CFLAGS) -c show_node.c -o show_node.o
count_nodes: count_nodes.o ttt1.o ttt2.o
$(CC) $(CFLAGS) count_nodes.o ttt1.o ttt2.o -o count_nodes
count_nodes.o: count_nodes.c
$(CC) $(CFLAGS) -c count_nodes.c -o count_nodes.o
alphatoe: alphatoe.o ttt1.o ttt2.o
$(CC) $(CFLAGS) alphatoe.o ttt1.o ttt2.o -o alphatoe
alphatoe.o: alphatoe.c
$(CC) $(CFLAGS) -c alphatoe.c -o alphatoe.o
clean:
rm -r ttt1.o ttt2.o show_node show_node.o count_nodes count_nodes.o alphatoe alphatoe.o