16 lines
283 B
Makefile
16 lines
283 B
Makefile
CPPFLAGS ?= -Ofast
|
|
CPPFLAGS := -maes $(CPPFLAGS)
|
|
|
|
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)
|