diff --git a/CMakeLists.txt b/CMakeLists.txt index 01a845fd9..ac92c9394 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,12 +16,16 @@ project(chiapos C CXX ASM) # CMake 3.14+ include(FetchContent) +if (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") +include(${CMAKE_INSTALL_PREFIX}/share/cmake/pybind11/pybind11Config.cmake) +else() FetchContent_Declare( pybind11-src GIT_REPOSITORY https://github.com/pybind/pybind11.git GIT_TAG v2.6.2 ) FetchContent_MakeAvailable(pybind11-src) +endif() FetchContent_Declare( cxxopts diff --git a/hellman_example/Makefile b/hellman_example/Makefile new file mode 100644 index 000000000..e44416fad --- /dev/null +++ b/hellman_example/Makefile @@ -0,0 +1,14 @@ +all: HellmanAttacks + +OBJ = aes.o bits.o calculate_bucket.o cxxopts.o encoding.o hellman.o picosha2.o plotter_disk.o pos_constants.o prover_disk.o sort_on_disk.o util.o verifier.o + +.SUFFIXES:.hpp .o + +.hpp.o: + $(CC) -c $(CXXFLAGS) $(DFLAGS) $(INCLUDES) $< -o $@ + +HellmanAttacks: ${OBJ} + ${CC} -o HellmanAttacks ${OBJ} + +clean: + rm -f HellmanAttacks ${OBJ} diff --git a/setup.py b/setup.py index d30252519..94d96cd13 100644 --- a/setup.py +++ b/setup.py @@ -209,7 +209,7 @@ def build_extensions(self): python_requires=">=3.7", long_description=open("README.md").read(), long_description_content_type="text/markdown", - url="https://github.com/Chia-Network/chiavdf", + url="https://github.com/Chia-Network/chiapos", ext_modules=[CMakeExtension("chiapos", ".")], cmdclass=dict(build_ext=CMakeBuild), zip_safe=False,