mirror of
https://github.com/fletcher/MultiMarkdown-6.git
synced 2024-10-04 18:47:31 +03:00
36 lines
781 B
Makefile
36 lines
781 B
Makefile
BUILD_DIR = build
|
|
|
|
$(BUILD_DIR_):
|
|
-mkdir $(BUILD_DIR_) 2>/dev/null
|
|
-cd $(BUILD_DIR); rm -rf *
|
|
|
|
# The release target will perform additional optimization
|
|
release: $(BUILD_DIR)
|
|
cd $(BUILD_DIR); \
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
# Enables CuTest unit testing
|
|
debug: $(BUILD_DIR)
|
|
cd $(BUILD_DIR); \
|
|
cmake -DTEST=1 ..
|
|
|
|
# For Mac only
|
|
xcode: $(BUILD_DIR)
|
|
cd $(BUILD_DIR); \
|
|
cmake -G Xcode ..
|
|
|
|
# Cross-compile for Windows
|
|
windows: $(BUILD_DIR)
|
|
cd $(BUILD_DIR); \
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=../tools/Toolchain-mingw32.cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
# Build the documentation using doxygen
|
|
documentation: $(BUILD_DIR)
|
|
cd $(BUILD_DIR); \
|
|
cmake -DDOCUMENTATION=1 ..; cd ..; \
|
|
doxygen build/doxygen.conf
|
|
|
|
# Clean out the build directory
|
|
clean:
|
|
rm -rf $(BUILD_DIR)/*
|