Makefile 228 B

1234567891011121314151617
  1. UNAME:=WIN32
  2. UNAME:=$(shell uname)
  3. # Win下使用Git Bash运行make
  4. ifeq ($(UNAME), Linux)
  5. all:linux
  6. linux:
  7. make -f linux.mk package
  8. else
  9. all:
  10. make -f win.mk all
  11. msvc:
  12. make -f win.mk msvc
  13. mingw:
  14. make -f win.mk mingw
  15. endif