-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
21 lines (14 loc) · 808 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
default:
@echo "make targets are: stack, table, instruction, cwici, clean"
stack: teststack.c stack.h stack.c
gcc teststack.c stack.c -o teststack
table: testtable.c table.h table.c
gcc testtable.c table.c -o testtable
instruction: testinstructions.c instructions.c instructions.h stack.c stack.h table.c table.h
gcc testinstructions.c instructions.c instructions.h stack.c stack.h table.c table.h -o testinstructions
cwici: main.c instructions.h instructions.c table.h table.c stack.h stack.c
gcc main.c instructions.h instructions.c table.h table.c stack.h stack.c -o cwici
clean:
rm -f cwici testtable teststack testinstructions
debug:main.c instructions.c instructions.h stack.c stack.h table.c table.h
gcc main.c instructions.h instructions.c table.h table.c stack.h stack.c -o cwici -g