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
675B

  1. # For cross-compiling from Linux to Windows x86 using mingw32
  2. # http://www.mingw.org/
  3. #
  4. # $ make SYSTEM=linux-mingw32
  5. NAME := glew32
  6. HOST := i586-mingw32msvc
  7. CC := $(HOST)-gcc
  8. LD := $(HOST)-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)