-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile
35 lines (24 loc) · 1.04 KB
/
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
CC=gcc
CFLAGS=-std=c99 -pedantic -Wall -pedantic-errors -Wundef -Wstrict-prototypes -Wmissing-declarations
all: tis
run: tis
./tis
tis: src/tis.c build/program.o build/node.o build/util.o build/input_code.o build/node_list.o build/output.o
$(CC) $(CFLAGS) -o tis src/tis.c build/program.o build/node.o build/util.o build/input_code.o build/node_list.o build/output.o -lncurses -lm
build/program.o: src/program.c src/program.h src/node.h src/node_list.h
$(CC) $(CFLAGS) -c src/program.c -o build/program.o
build/node.o: src/node.c src/node.h
$(CC) $(CFLAGS) -c src/node.c -o build/node.o
build/util.o: src/util.h src/util.c
$(CC) $(CFLAGS) -c src/util.c -o build/util.o
build/input_code.o: src/input_code.h src/input_code.c
$(CC) $(CFLAGS) -c src/input_code.c -o build/input_code.o
build/node_list.o: src/node_list.h src/node_list.c
$(CC) $(CFLAGS) -c src/node_list.c -o build/node_list.o
build/output.o: src/output.h src/output.c
$(CC) $(CFLAGS) -c src/output.c -o build/output.o
valgrind: tis
valgrind ./tis
clean:
rm build/*.o
rm -f tis