Spaces:
Running
Running
Download Makefile from pgg-engineering/guardshift: direct link, hf CLI and curl.
- Browser
- Download file 657 Bytes
-
https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/Makefile
- Command line
-
hf download hf://spaces/pgg-engineering/guardshift/Makefile
-
curl -L -o Makefile https://huggingface.co/spaces/pgg-engineering/guardshift/resolve/main/Makefile
657 Bytes
| CXX ?= c++ | |
| CXXFLAGS ?= -O3 -std=c++17 -Wall -Wextra | |
| CPPFLAGS += -Iinclude | |
| BUILD := build/native | |
| TESTS := $(patsubst tests/%.cpp,$(BUILD)/%,$(wildcard tests/test*.cpp)) | |
| test: $(TESTS) | |
| @set -e; for test in $(TESTS); do "$$test"; done | |
| $(TESTS): $(BUILD)/%: tests/%.cpp include/guardshift.hpp | |
| @mkdir -p $(BUILD) | |
| $(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ | |
| $(BUILD)/bench: bench/bench.cpp include/guardshift.hpp | |
| @mkdir -p $(BUILD) | |
| $(CXX) $(CPPFLAGS) $(CXXFLAGS) -DNDEBUG $< -o $@ | |
| quick: $(BUILD)/bench | |
| $(BUILD)/bench --quick --trace replay/azure-code.csv | |
| bench: $(BUILD)/bench | |
| $(BUILD)/bench --full --trace replay/azure-code.csv | |