2002-05-13 19:35:10 +00:00
|
|
|
|
|
|
|
OBJS1 = mytest.o
|
|
|
|
TARGET1 = mytest
|
|
|
|
|
|
|
|
OBJS2 = Malloc.o
|
|
|
|
TARGET2 = mtest
|
|
|
|
|
|
|
|
OBJS3 = dmytest.o
|
|
|
|
TARGET3 = dmytest
|
|
|
|
|
|
|
|
# define this to talk a lot in runtime
|
|
|
|
# -DDEBUG_VERBOSE
|
2002-05-14 08:19:57 +00:00
|
|
|
CFLAGS = -g -Wall -DDEBUG -I../../malloc
|
2002-05-13 19:35:10 +00:00
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
|
2002-05-14 08:19:57 +00:00
|
|
|
LDFLAGS = -L../../malloc -ldmalloc
|
2002-05-13 19:35:10 +00:00
|
|
|
|
2002-05-14 08:19:57 +00:00
|
|
|
all: $(TARGET1) $(TARGET2) $(TARGET3)
|
2002-05-13 19:35:10 +00:00
|
|
|
|
|
|
|
clean:
|
2002-05-14 08:19:57 +00:00
|
|
|
rm -f core *~ $(TARGET1) $(TARGET2) $(TARGET3) \
|
|
|
|
$(OBJS1) $(OBJS2) $(OBJS3)
|
2002-05-13 19:35:10 +00:00
|
|
|
|
|
|
|
$(TARGET1): $(OBJS1)
|
|
|
|
$(CC) -g -o $(TARGET1) $(OBJS1) $(LDFLAGS)
|
|
|
|
|
|
|
|
$(TARGET2): $(OBJS2)
|
|
|
|
$(CC) -g -o $(TARGET2) $(OBJS2) $(LDFLAGS)
|
|
|
|
|
|
|
|
$(TARGET3): $(OBJS3)
|
|
|
|
$(CC) -g -o $(TARGET3) $(OBJS3) $(LDFLAGS)
|
|
|
|
|
2002-05-14 08:19:57 +00:00
|
|
|
dmytest.o: dmytest.c
|
2002-05-13 19:35:10 +00:00
|
|
|
Malloc.o: Malloc.c
|
2002-05-14 08:19:57 +00:00
|
|
|
mytest.o: mytest.c
|