HWBTutorials/aes-performance/aes-intrinsic/Makefile

16 lines
283 B
Makefile
Raw Normal View History

2023-12-19 16:03:14 +00:00
CPPFLAGS ?= -Ofast
CPPFLAGS := -maes $(CPPFLAGS)
2023-12-19 12:50:31 +00:00
BUILD_DIR = bin
$(BUILD_DIR)/aes: $(BUILD_DIR)/aes.o
mkdir -p $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) $< -o $@
$(BUILD_DIR)/%.o: %.cpp
mkdir -p $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@
clean:
rm -rf $(BUILD_DIR)