-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 782 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 782 Bytes
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 Malloc Lab
#
TEAM = bovik
VERSION = 1
HANDINDIR = /afs/cs.cmu.edu/academic/class/15213-f01/malloclab/handin
CC = gcc
# CFLAGS = -Wall -O2 -m32
CFLAGS = -Wall -g -O2
ifeq ($(shell uname -m), x86_64)
CFLAGS += -m64
else ifeq ($(shell uname -m), aarch64)
CFLAGS += -march=armv8-a
endif
OBJS = mdriver.o mm.o memlib.o fsecs.o fcyc.o clock.o ftimer.o
LDFLAGS = -lm -lrt
mdriver: $(OBJS)
$(CC) $(CFLAGS) -o mdriver $(OBJS) $(LDFLAGS)
mdriver.o: mdriver.c fsecs.h fcyc.h clock.h memlib.h config.h mm.h
memlib.o: memlib.c memlib.h
mm.o: mm.c mm.h memlib.h
fsecs.o: fsecs.c fsecs.h config.h
fcyc.o: fcyc.c fcyc.h
ftimer.o: ftimer.c ftimer.h config.h
clock.o: clock.c clock.h
clean:
rm -f *~ *.o mdriver
submit:
zip ${USER}-handin.zip mm.c