From f0d35eb314ac52e4ec0f45f150de3d5224610c3b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 28 Apr 2019 18:42:07 +0200 Subject: add bumptr allocator implementation --- src/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index e29af5d..9858cdf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -12,12 +12,19 @@ LDFLAGS ?= -pthread -static-libgcc .PHONY: all clean -all: $(OBJDIR)/print_status_on_exit.so +all: $(OBJDIR)/print_status_on_exit.so $(OBJDIR)/allocators/bumpptr_alloc.so -$(OBJDIR)/print_status_on_exit.so: print_status_on_exit.c | $(OBJDIR) +$(OBJDIR)/allocators/bumpptr_alloc.so: bumpptr_alloc.c | $(OBJDIR)/allocators @echo "Compiling $@..."; $(CC) $(LDFLAGS) -shared $(CFLAGS) -o $@ $< +$(OBJDIR)/print_status_on_exit.so: print_status_on_exit.c | $(OBJDIR) + @echo "Compiling $@..."; + $(CC) $(LDFLAGS) -shared -O2 $(CFLAGS) -o $@ $< + +$(OBJDIR)/allocators: + mkdir -p $@ + $(OBJDIR): mkdir $@ -- cgit v1.2.3