-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (26 loc) · 977 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
####################################################
# Students' Makefile for the CS:APP Architecture Lab
####################################################
# Default team name and version number
TEAM = YHan
VERSION = 1
# Where are the different parts of the lab should be copied to when they
# are handed in.
all: handin-parta handin-partb handin-partc pack
handin-parta:
mkdir $(TEAM)
mkdir $(TEAM)/parta
cp sim/misc/sum.ys $(TEAM)/parta/$(TEAM)-$(VERSION)-sum.ys
cp sim/misc/rsum.ys $(TEAM)/parta/$(TEAM)-$(VERSION)-rsum.ys
cp sim/misc/copy.ys $(TEAM)/parta/$(TEAM)-$(VERSION)-copy.ys
handin-partb:
mkdir $(TEAM)/partb
cp sim/seq/seq-full.hcl $(TEAM)/partb/$(TEAM)-$(VERSION)-seq-full.hcl
handin-partc:
mkdir $(TEAM)/partc
cp sim/pipe/ncopy.ys $(TEAM)/partc/$(TEAM)-$(VERSION)-ncopy.ys
cp sim/pipe/pipe-full.hcl $(TEAM)/partc/$(TEAM)-$(VERSION)-pipe-full.hcl
pack:
tar cvf $(TEAM).tar $(TEAM)
clean:
(rm -f *~ *.o $(TEAM).tar;rm -rf $(TEAM) )