You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
# NOTE: This file only exists as a convenience for cleaning and building |
|
# products for release. To build, use CMake. Instructions in README.md |
|
|
|
.PHONY: clean |
|
clean: |
|
rm -rf bin build products tmp |
|
rm -f *.o *.s *.exp *.lib .depend* *.core core |
|
rm -rf .depend |
|
find . -type f \( -name '*.a' -o -name '*.o' -o -name '*.so' -o -name \ |
|
'*.o.d' -o -name '*.out' -o -name '*.log' -o -name '*.dSYM' -o -name '*.dylib' -o -name '*.class' \) -delete |
|
|
|
# Build and package everything |
|
# This command shall be run twice: |
|
# (1) Generates projects |
|
# <perform any required modifications> |
|
# (2) Build products and package everything |
|
.PHONY: dist |
|
dist: patch |
|
./packages/dist.sh |
|
.PHONY: dist_win |
|
dist_win: patch |
|
packages\dist.bat |
|
|
|
# Initialize submodules and apply patches |
|
.PHONY: all |
|
all: update patch |
|
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release |
|
cmake --build build |
|
|
|
# Clean build paths |
|
clean_win: |
|
-"rd /S /Q bin" |
|
-"rd /S /Q build" |
|
-"rd /S /Q WinBuild32" |
|
-"rd /S /Q WinBuild64" |
|
|
|
# Remove any CMake-generated library-building projects |
|
clean_packages: |
|
rm -rf packages/xcode_ios |
|
rm -rf packages/xcode_macos |
|
|
|
.PHONY: update |
|
update: |
|
git submodule update --init --recursive |
|
|
|
# Patch submodules |
|
patch: |
|
-git -C ext/lwip apply ../lwip.patch |
|
-git -C ext/lwip-contrib apply ../lwip-contrib.patch
|