-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (35 loc) · 988 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
41
42
43
44
45
46
47
48
49
50
51
52
ASFLAGS := -m32
CFLAGS := -m32 -g -std=c99 -Wall -Werror -D_GNU_SOURCE
LDFLAGS := -m32
LDLIBS := -lcrypto
PROGS := zookld zookfs zookd
all: $(PROGS)
.PHONY: all
zookld zookd zookfs: %: %.o http.o
.PHONY: check
check:
./check_lab3.py
.PHONY: fix-flask
fix-flask: fix-flask.sh
./fix-flask.sh
.PHONY: clean
clean:
rm -f *.o *.pyc *.bin $(PROGS)
lab%-handin.tar.gz: clean
tar cf - `find . -type f | grep -v '^\.*$$' | grep -v '/CVS/' | grep -v '/\.svn/' | grep -v '/\.git/' | grep -v 'lab[0-9].*\.tar\.gz' | grep -v '/submit.token$$' | grep -v libz3str.so` | gzip > $@
.PHONY: prepare-submit
prepare-submit: lab3-handin.tar.gz
.PHONY: prepare-submit-a
prepare-submit-a: lab3a-handin.tar.gz
.PHONY: prepare-submit-b
prepare-submit-b: lab3b-handin.tar.gz
.PHONY: submit-a
submit-a: lab3a-handin.tar.gz
./submit.py $<
.PHONY: submit-b
submit-b: lab3b-handin.tar.gz
./submit.py $<
.PHONY: submit
submit: lab3-handin.tar.gz
./submit.py $<
.PRECIOUS: lab3-handin.tar.gz