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.

18 lines
590B

  1. NAME = glew32
  2. # use gcc for linking, with ld it does not work
  3. CC := gcc -fno-builtin
  4. LD := gcc
  5. LN :=
  6. LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
  7. LDFLAGS.EXTRA = -L/mingw/lib
  8. CFLAGS.EXTRA += -fno-builtin -fno-stack-protector
  9. LDFLAGS.EXTRA += -nostdlib
  10. WARN = -Wall -W
  11. POPT = -O2
  12. BIN.SUFFIX = .exe
  13. LIB.SONAME = lib$(NAME).dll
  14. LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
  15. LIB.SHARED = $(NAME).dll
  16. LIB.STATIC = lib$(NAME).a # the static lib will be broken
  17. LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)