2021-01-13 14:07:35 +01:00
|
|
|
#
|
|
|
|
# Students' Makefile for the Malloc Lab
|
|
|
|
#
|
|
|
|
CC = gcc
|
2021-01-14 15:44:12 +01:00
|
|
|
CFLAGS = -Wall -O2 -m32 -g03 -pg
|
2021-01-13 14:07:35 +01:00
|
|
|
|
|
|
|
OBJS = mdriver.o mm.o memlib.o fsecs.o fcyc.o clock.o ftimer.o
|
|
|
|
|
|
|
|
mdriver: $(OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o mdriver $(OBJS)
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|