aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5614832..903aadb 100644
--- a/Makefile
+++ b/Makefile
@@ -26,12 +26,22 @@ OBJECTS = $(notdir $(CC_SOURCES:.cc=.o)) $(notdir $(C_SOURCES:.c=.o))
OBJPRE = $(addprefix $(OBJDIR)/,$(OBJECTS))
MAKEFILE_LIST = Makefile
-all: $(OBJDIR)/bench_loop
+all: $(OBJDIR)/bench_loop $(OBJDIR)/memusage $(OBJDIR)/bench_conprod
bench: all
@if test \( ! \( -d bench.d \) \) ;then mkdir -p bench.d;fi
bash -c "./bench.py"
+$(OBJDIR)/memusage: $(OBJDIR)/memusage.o
+ @echo "ld $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(CC) -o $@ $^
+
+$(OBJDIR)/bench_conprod: $(OBJDIR)/bench_conprod.o
+ @echo "ld $@"
+ @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
+ $(VERBOSE) $(CC) -pthread -o $@ $^
+
$(OBJDIR)/bench_loop: $(OBJDIR)/bench_loop.o
@echo "ld $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi