Add table version of popcount and popcount8
[SXSI/libbp.git] / Makefile
index 64c98b3..23cd4f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,7 @@ POPCOUNT=$(shell grep -q popcnt /proc/cpuinfo && echo 1)
 ifeq ($(POPCOUNT), 1)
        POPCOUNT_FLAG=-DHAS_NATIVE_POPCOUNT
 else
+       #POPCOUNT_FLAG=-DHAS_POPCOUNT_TABLE
        POPCOUNT_FLAG=
 endif
 
@@ -26,14 +27,14 @@ CXXFLAGS= $(INC_FLAGS) $(OPT_FLAGS)
 CC=gcc
 
 
-OBJECTS_BP=bp.o darray.o bpcore.o
-LIB_BP=libbpa.a
+OBJECTS_BP=bp.o bp-utils.o bp-darray.o bp-core.o
+LIB_BP=libbp.a
 
 all: depend $(LIB_BP)
 
 $(LIB_BP): $(OBJECTS_BP)
-       @echo [BP]
-       $(HIDE) ar rcs libbp.a $(OBJECTS_BP)
+       @echo [Link] $@
+       $(HIDE) ar rcs $@ $(OBJECTS_BP)
 
 %o: %c
        @echo [C] $@