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.

20 lines
615B

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