-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·52 lines (41 loc) · 1.68 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
####################################################
# Students' Makefile for the CS:APP Architecture Lab
####################################################
# Default team name and version number
TEAM = cosmo
VERSION = 1
# Where are the different parts of the lab should be copied to when they
# are handed in.
#HANDINDIR-PARTA = /afs/cs/academic/class/15349-s02/archlab/handin-parta
#HANDINDIR-PARTB = /afs/cs/academic/class/15349-s02/archlab/handin-partb
#HANDINDIR-PARTC = /afs/cs/academic/class/15349-s02/archlab/handin-partc
sim:
(cd sim; make)
# Use this rule to hand in the lab
handin:
mkdir handin
mkdir handin/parta
mkdir handin/partb
mkdir handin/partc
cp sim/misc/sum.ys handin/parta/$(TEAM)-sum.ys
cp sim/misc/rsum.ys handin/parta/$(TEAM)-rsum.ys
cp sim/misc/copy.ys handin/parta/$(TEAM)-copy.ys
cp sim/seq/seq-full.hcl handin/partb/$(TEAM)-seq-full.hcl
cp sim/pipe/ncopy.ys handin/partc/$(TEAM)-ncopy.ys
cp sim/pipe/pipe-full.hcl handin/partc/$(TEAM)-pipe-full.hcl
tar -cvf $(TEAM)-handin.tar handin/
rm -rf handin
# Use this rule to hand in Part A ("make handin-parta")
#handin-parta:
# cp sim/misc/sum.ys $(HANDINDIR-PARTA)/$(TEAM)-$(VERSION)-sum.ys
# cp sim/misc/rsum.ys $(HANDINDIR-PARTA)/$(TEAM)-$(VERSION)-rsum.ys
# cp sim/misc/copy.ys $(HANDINDIR-PARTA)/$(TEAM)-$(VERSION)-copy.ys
# Use this rule to handin Part B ("make handin-partb")
#handin-partb:
# cp sim/seq/seq-full.hcl $(HANDINDIR-PARTB)/$(TEAM)-$(VERSION)-seq-full.hcl
# Use this rule to handin Part C ("make handin-partc")
#handin-partc:
# cp sim/pipe/ncopy.ys $(HANDINDIR-PARTC)/$(TEAM)-$(VERSION)-ncopy.ys
# cp sim/pipe/pipe-full.hcl $(HANDINDIR-PARTC)/$(TEAM)-$(VERSION)-pipe-full.hcl
clean:
rm -f *~ *.o