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.
 
 

23 regels
448 B

  1. include ../common.mk
  2. BUILD_DIR = src/build
  3. MAKE = cmake --build .
  4. all: prepare build
  5. prepare:
  6. rm -rf $(BUILD_DIR)
  7. mkdir -p $(BUILD_DIR)
  8. cd $(BUILD_DIR); \
  9. cmake -DCMAKE_BUILD_TYPE=Release \
  10. -DCMAKE_BUILD_TYPE=Release \
  11. -DOPENSSL_SMALL=1 \
  12. -DCMAKE_C_FLAGS_RELEASE="-Os -fdata-sections" \
  13. -DCMAKE_CXX_FLAGS_RELEASE="-Os -fdata-sections" \
  14. -DCMAKE_EXE_LINKER_FLAGS="-Wl,--gc-sections" \
  15. ..
  16. build:
  17. cd $(BUILD_DIR); \
  18. $(MAKE)