Makefile.cygwin 691 Bytes
Newer Older
1
NAME = glew32
ikits's avatar
ikits committed
2
CC = gcc -mno-cygwin
3
# use gcc for linking, with ld it does not work
ikits's avatar
ikits committed
4
LD = gcc -mno-cygwin
5
6
7
8
9
10
11
12
13
14
15
ifneq (undefined, $(origin GLEW_MX))
CFLAGS.EXTRA = -DGLEW_MX
endif
CFLAGS.SO = -DGLEW_BUILD
#LDFLAGS.SO = -shared -soname $(LIB.SONAME) --out-implib lib/$(LIB.DEVLNK)
LDFLAGS.SO = -shared -Wl,-soname,$(LIB.SONAME) -Wl,--out-implib,lib/$(LIB.DEVLNK)
LDFLAGS.GL = -lglu32 -lopengl32 -lgdi32 -luser32 -lkernel32
LDFLAGS.EXTRA = -L/mingw/lib
WARN = -Wall -W
POPT = -O2
BIN.SUFFIX = .exe
ikits's avatar
ikits committed
16
LIB.SONAME = lib$(NAME).dll
17
18
19
LIB.DEVLNK = lib$(NAME).dll.a    # for mingw this is the dll import lib
LIB.SHARED = $(NAME).dll
LIB.STATIC = lib$(NAME).a     # the static lib will be broken (see CFLAGS.SO)