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 lines
684B

  1. # For cross-compiling from Linux to Windows x86 using mingw-w64
  2. # http://mingw-w64.sourceforge.net/
  3. #
  4. # $ make SYSTEM=linux-mingw-w64
  5. #
  6. NAME := glew32
  7. CC := i686-w64-mingw32-gcc
  8. LD := i686-w64-mingw32-ld
  9. LN :=
  10. STRIP :=
  11. LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
  12. CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
  13. LDFLAGS.EXTRA += -nostdlib
  14. WARN = -Wall -W
  15. POPT = -O2
  16. BIN.SUFFIX = .exe
  17. LIB.SONAME = lib$(NAME).dll
  18. LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
  19. LIB.SHARED = $(NAME).dll
  20. LIB.STATIC = lib$(NAME).a # the static lib will be broken
  21. LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)