-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
68 lines (61 loc) · 1.65 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
JFLAGS = -g
JRUNNER = java
MAIN = OS
CONFIG = config_1.conf
OSNUM = 5
JC = javac
.SUFFIXES: .java .class
.java.class:
$(JC) $(JFLAGS) $*.java
CLASSES = \
Console.java\
WriteFile.java\
ReadFile.java\
StringHelper.java\
ValidKeys.java\
Task.java\
ConfigFile.java\
TaskStackQueue.java\
FileHandler.java\
PCB.java\
Clock.java\
TaskProcessor.java\
OSThread.java\
OSSemaphore.java\
OSMutex.java\
Locks.java\
MemoryBlock.java\
Scheduler.java
default: classes
classes: $(CLASSES:.java=.class)
clear
@echo "✓ OS Compiled - Runtime Dependencies Now Available [$(MAIN)]"
@echo "✓ OS Executed - Operating System will Initialize"
@($(JC) $(MAIN).java)
@($(JRUNNER) $(MAIN) $(CONFIG))
norun: $(CLASSES:.java=.class)
clear
@echo "✓ OS Compiled - Runtime Dependencies Now Available [$(MAIN)]"
@echo ""
clean:
$(RM) *.class
$(RM) *.lgf
$(RM) *.zip
clear
@echo "✓ OS Cleaned - Runtime Dependencies No Longer Available"
@echo ""
export:
@(zip -r "SimO$(OSNUM)_ErdelyiStephen.zip" . -x "*.mdf" "*.conf" ".git/*" "*.class" "*.lgf" "*.zip")
clear
@echo "✓ OS Exported - ZIP File Now Available [SimO$(OSNUM)]"
@echo ""
commands:
clear
@echo "///////////////////////////////////////////////////////////////"
@echo "// MAKEFILE COMMANDS //"
@echo "///////////////////////////////////////////////////////////////"
@echo "make makes the executable and runs the program"
@echo "make norun makes the executable w/o running the program"
@echo "make clean removes the executable and unnecessary files"
@echo "make export makes a packaged .zip for submission"
@echo ""