aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c7da232..05e04da 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,12 @@ MAKEFILE_LIST = Makefile
TARGETS = $(OBJPRE:.o=)
-all: $(TARGETS)
+all: $(TARGETS) $(OBJDIR)/chattymalloc.so
+
+$(OBJDIR)/chattymalloc.so: chattymalloc.c $(MAKEFILE_LIST)
+ @echo "cc $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(CC) -shared $(CFLAGS) -o $@ $< -ldl
$(OBJDIR)/cache-thrash: $(OBJDIR)/cache-thrash.o
@echo "ld $@"