forked from rajatkhanduja/MIPS-simulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
28 lines (20 loc) · 904 Bytes
/
makefile
File metadata and controls
28 lines (20 loc) · 904 Bytes
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
OBJ=obj
INCLUDE=include
BIN=bin
SRC=src
all: clean ${OBJ}/instruct_mem.o ${OBJ}/file_functions.o ${OBJ}/registers.o ${OBJ}/operations.o ${OBJ}/data_mem.o ${OBJ}/main.o
gcc -g ${OBJ}/instruct_mem.o ${OBJ}/file_functions.o ${OBJ}/registers.o ${OBJ}/data_mem.o ${OBJ}/operations.o ${OBJ}/main.o -o ${BIN}/simulator
${OBJ}/data_mem.o: ${SRC}/data_mem.c
gcc -g -c ${SRC}/data_mem.c -o ${OBJ}/data_mem.o
${OBJ}/instruct_mem.o: ${SRC}/instruct_mem.c
gcc -g -c ${SRC}/instruct_mem.c -o ${OBJ}/instruct_mem.o
${OBJ}/file_functions.o: ${SRC}/file_functions.c
gcc -g -c ${SRC}/file_functions.c -o ${OBJ}/file_functions.o
${OBJ}/registers.o: ${SRC}/registers.c
gcc -g -c ${SRC}/registers.c -o ${OBJ}/registers.o
${OBJ}/operations.o: ${SRC}/operations.c
gcc -g -c ${SRC}/operations.c -o ${OBJ}/operations.o
${OBJ}/main.o:${SRC}/main.c
gcc -g -c ${SRC}/main.c -o ${OBJ}/main.o
clean:
rm -f ${OBJ}/*