-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (29 loc) · 952 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
40
# Makefile for userMode memory management program
#
# Jason Wang
# Summer/Fall 2020
CURRPROG = usermodeMemoryManager
PROGS = $(CURRPROG).exe
OBJS = *.obj
DATASTRUCTURES = ./dataStructures/PTEpermissions.c ./dataStructures/VApermissions.c ./dataStructures/VADNodes.c
COREFUNCTIONS = ./coreFunctions/pageFault.c ./coreFunctions/pageFile.c ./coreFunctions/getPage.c ./coreFunctions/pageTrade.c
INFRASTRUCTURE = ./infrastructure/bitOps.c ./infrastructure/enqueue-dequeue.c ./infrastructure/jLock.c
SOURCES = $(CURRPROG).c $(DATASTRUCTURES) $(COREFUNCTIONS) $(INFRASTRUCTURE)
CFLAGS = /DEBUG:FULL /Zi
WFLAGS = /W4 /wd4214 /wd4127 /wd4090 /wd4204 /wd4057
CC = cl
MAKE = make
DEL = del /Q ## for windows makefile
# DEL = rm -f ## for bash makefile
# .PHONY: all clean
all:
$(CC) $(CFLAGS) $(SOURCES)
no-debug:
$(CC) $(SOURCES)
warning:
$(CC) $(CFLAGS) $(WFLAGS) $(SOURCES)
clean:
$(DEL) $(PROGS)
$(DEL) *.obj
$(DEL) *.pdb
$(DEL) *.ilk