github.com/Bytom/bytom@v1.1.2-0.20210127130405-ae40204c0b09/mining/tensority/cgo_algorithm/lib/Makefile (about) 1 TARGET = cSimdTs 2 3 UNAME_S := $(shell uname -s) 4 ifeq ($(UNAME_S),Darwin) 5 CXX = /usr/local/opt/llvm/bin/clang++ 6 else 7 CXX = g++ 8 endif 9 10 CXXFLAGS = -std=c++11 -pthread -mavx2 -O3 -fopenmp -fPIC 11 12 .PHONY: clean 13 14 all: $(TARGET) 15 16 $(TARGET): $(TARGET).cpp 17 $(CXX) -o $@.o -c $^ $(CXXFLAGS) 18 19 clean: 20 rm -f *.o *.so *.a