malloc-lab/Makefile

25 lines
501 B
Makefile
Raw Permalink Normal View History

2021-01-13 14:07:35 +01:00
#
# Students' Makefile for the Malloc Lab
#
CC = gcc
2021-01-24 22:53:37 +01:00
CFLAGS = -Wall -O2 -m32
# CFLAGS = -Wall -O0 -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