-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
54 lines (37 loc) · 1.47 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
JAVADOCPARAMS = -doctitle "Nachos 5.0 Java" -protected \
-link http://java.sun.com/j2se/1.5.0/docs/api/
machine = Lib Config Stats Machine TCB \
Interrupt Timer \
Processor TranslationEntry \
SerialConsole StandardConsole \
OpenFile OpenFileWithPosition ArrayFile FileSystem StubFileSystem \
ElevatorBank ElevatorTest ElevatorGui \
ElevatorControls ElevatorEvent ElevatorControllerInterface \
RiderControls RiderEvent RiderInterface \
Kernel Coff CoffSection \
NetworkLink Packet MalformedPacketException
security = Privilege NachosSecurityManager
ag = AutoGrader BoatGrader
threads = ThreadedKernel KThread Alarm \
Scheduler ThreadQueue RoundRobinScheduler \
Semaphore Lock Condition SynchList \
Condition2 Communicator Rider ElevatorController \
PriorityScheduler LotteryScheduler Boat
userprog = UserKernel UThread UserProcess SynchConsole
vm = VMKernel VMProcess
network = NetKernel NetProcess PostOffice MailMessage
ALLDIRS = machine security ag threads userprog vm network
PACKAGES := $(patsubst %,nachos.%,$(ALLDIRS))
CLASSFILES := $(foreach dir,$(DIRS),$(patsubst %,nachos/$(dir)/%.class,$($(dir))))
.PHONY: all rmtemp clean doc hwdoc swdoc
all: $(CLASSFILES)
nachos/%.class: ../%.java
javac -Xlint -classpath . -d . -sourcepath ../.. -g $<
clean:
rm -f */*/*.class
doc:
mkdir -p ../doc
javadoc $(JAVADOCPARAMS) -d ../doc -sourcepath .. $(PACKAGES)
test:
cd ../test ; gmake
ag: $(patsubst ../ag/%.java,nachos/ag/%.class,$(wildcard ../ag/*.java))