Blame thirdparty/glew/glew-1.9.0/config/Makefile.mingw
|
kusano |
7d535a |
NAME = glew32
|
|
kusano |
7d535a |
# use gcc for linking, with ld it does not work
|
|
kusano |
7d535a |
CC := gcc
|
|
kusano |
7d535a |
LD := gcc
|
|
kusano |
7d535a |
LN :=
|
|
kusano |
7d535a |
CFLAGS.SO = -DGLEW_BUILD
|
|
kusano |
7d535a |
LDFLAGS.GL = -lopengl32 -lgdi32 -luser32 -lkernel32
|
|
kusano |
7d535a |
LDFLAGS.EXTRA = -L/mingw/lib
|
|
kusano |
7d535a |
WARN = -Wall -W
|
|
kusano |
7d535a |
POPT = -O2
|
|
kusano |
7d535a |
BIN.SUFFIX = .exe
|
|
kusano |
7d535a |
LIB.SONAME = lib$(NAME).dll
|
|
kusano |
7d535a |
LIB.DEVLNK = lib$(NAME).dll.a # for mingw this is the dll import lib
|
|
kusano |
7d535a |
LIB.SHARED = $(NAME).dll
|
|
kusano |
7d535a |
LIB.STATIC = lib$(NAME).a # the static lib will be broken (see CFLAGS.SO)
|
|
kusano |
7d535a |
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
|
|
kusano |
7d535a |
LIB.SONAME.MX = lib$(NAME)mx.dll
|
|
kusano |
7d535a |
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a # for mingw this is the dll import lib
|
|
kusano |
7d535a |
LIB.SHARED.MX = $(NAME)mx.dll
|
|
kusano |
7d535a |
LIB.STATIC.MX = lib$(NAME)mx.a # the static lib will be broken (see CFLAGS.SO)
|
|
kusano |
7d535a |
LDFLAGS.SO.MX = -shared -Wl,-soname,$(LIB.SONAME.MX) -Wl,--out-implib,lib/$(LIB.DEVLNK.MX)
|