-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (35 loc) · 1.08 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
36
37
38
39
40
41
42
43
44
45
46
47
48
CC = gcc
CFLAGS = -O3 -Wall
default: linked_list.o dictionary.o parse.o compile.o translate.o allocate.o include68k.o optimize1.o optimize2.o main.o
$(CC) $(CFLAGS) linked_list.o dictionary.o parse.o compile.o translate.o allocate.o include68k.o optimize1.o optimize2.o main.o -o TiBc
clean:
del linked_list.o
del dictionary.o
del parse.o
del compile.o
del translate.o
del allocate.o
del include68k.o
del optimize1.o
del optimize2.o
del main.o
linked_list.o: linked_list.c linked_list.h
$(CC) $(CFLAGS) -c linked_list.c
dictionary.o: dictionary.c dictionary.h
$(CC) $(CFLAGS) -c dictionary.c
parse.o: parse.c parse.h
$(CC) $(CFLAGS) -c parse.c
compile.o: compile.c compile.h
$(CC) $(CFLAGS) -c compile.c
translate.o: translate.c translate.h
$(CC) $(CFLAGS) -c translate.c
allocate.o: allocate.c allocate.h
$(CC) $(CFLAGS) -c allocate.c
include68k.o: include68k.c
$(CC) $(CFLAGS) -c include68k.c
optimize1.o: optimize1.c optimize1.h
$(CC) $(CFLAGS) -c optimize1.c
optimize2.o: optimize2.c optimize2.h
$(CC) $(CFLAGS) -c optimize2.c
main.o: main.c
$(CC) $(CFLAGS) -c main.c