diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-28 18:42:07 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-04-28 18:42:07 +0200 |
| commit | f0d35eb314ac52e4ec0f45f150de3d5224610c3b (patch) | |
| tree | 6d6d1eb8481e5bdc8741e3ec5826933ca1b0ddc6 /src/Makefile | |
| parent | 3fce1d3f3c616eae0c319050276072932dd04d83 (diff) | |
| download | allocbench-f0d35eb314ac52e4ec0f45f150de3d5224610c3b.tar.gz allocbench-f0d35eb314ac52e4ec0f45f150de3d5224610c3b.zip | |
add bumptr allocator implementation
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
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 $@ |
