-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·39 lines (22 loc) · 949 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
28
29
30
31
32
33
34
35
36
37
38
39
CC = gcc
CFLAGS = -Wall -g -D_POSIX_SOURCE -D_BSD_SOURCE -std=c99 -Werror -pedantic
.SUFFIXES: .c .o
.PHONY: all clean
all: assemble emulate
assemble: assemble.o utils.o dataprocessing.o multiply.o singledatatransfer.o branch.o input.o
emulate: emulate.o utils.o outputReg.o dataprocessing.o singledatatransfer.o input.o execute.o decode.o
assemble.o: utils.h dataprocessing.h multiply.h singledatatransfer.h branch.h map.h input.h
emulate.o: emulate.h utils.h outputReg.h dataprocessing.h singledatatransfer.h input.h execute.h decode.h
branch.o: branch.h map.h utils.h
dataprocessing.o: utils.h dataprocessing.h
decode.o: utils.h decode.h
execute.o: execute.h utils.h dataprocessing.h singledatatransfer.h
input.o: input.h utils.h
multiply.o: multiply.h utils.h
outputReg.o: outputReg.h utils.h
singledatatransfer.o: singledatatransfer.h utils.h
utils.o: utils.h
clean:
rm -f $(wildcard *.o)
rm -f assemble
rm -f emulate