-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (45 loc) · 1.41 KB
/
Copy pathMakefile
File metadata and controls
60 lines (45 loc) · 1.41 KB
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
# # # # # # #
# Makefile for assignment 2
#
# created 24 Apr 2017
# Matt Farrugia <matt.farrugia@unimelb.edu.au>
#
# Modified, Ben Tomlin
#
CC = gcc
# -lm for math library. -g -O1 for valgrind
CFLAGS = -Wall -Wno-format -std=c99 -lm
EXE = a2
OBJ = main.o inthash.o hashtbl.o tables/linear.o tables/cuckoo.o \
tables/xtndbl1.o tables/xtndbln.o tables/xuckoo.o
# add any new files here ^
# MAIN PROGRAM
$(EXE): $(OBJ)
$(CC) $(CFLAGS) -o $(EXE) $(OBJ)
main.o: inthash.h hashtbl.h
hashtbl.o: inthash.h tables/linear.h tables/cuckoo.h tables/xtndbl1.h \
tables/xtndbln.h tables/xuckoo.h
tables/linear.o: inthash.h
tables/cuckoo.o: inthash.h
tables/xtndbl1.o: inthash.h
tables/xtndbln.o: inthash.h
tables/xuckoo.o: inthash.h
# COMMAND GENERATOR TARGETS
cmdgen: cmdgen.o
$(CC) $(CFLAGS) -o cmdgen cmdgen.o
cmdgen.o: inthash.h
# CLEANING TARGETS
clean:
rm -f $(OBJ) cmdgen.o $(STUDENTNUM).tar.gz $(EXE) cmdgen.o cmdgen
clobber: clean
rm -f $(EXE)
cleanly: $(EXE) clean
# SUBMISSION TARGET
STUDENTNUM = '834198'
SUBMISSION = Makefile report.pdf main.c hashtbl.c hashtbl.h inthash.c inthash.h\
tables/linear.h tables/linear.c tables/cuckoo.h tables/cuckoo.c \
tables/xtndbl1.h tables/xtndbl1.c tables/xtndbln.h tables/xtndbln.c \
tables/xuckoo.h tables/xuckoo.c Part4.ipynb gendata.sh/gen_xuckoon.sh
# add any new files here ^
submission: $(SUBMISSION)
tar -czvf $(STUDENTNUM).tar.gz $(SUBMISSION)