Makefile.cygwin 739 Bytes
Newer Older
ikits's avatar
ikits committed
1
2
3
NAME = GLEW
GLEW_DEST ?= /usr/X11R6
CC = cc
4
# use gcc for linking, with ld it does not work
ikits's avatar
ikits committed
5
6
7
8
9
10
LD = cc
LDFLAGS.EXTRA = -L/usr/X11R6/lib
LIBDIR = $(GLEW_DEST)/lib
LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
LDFLAGS.STATIC = -Wl,-Bstatic
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
11
12
WARN = -Wall -W
POPT = -O2
13
BIN.SUFFIX = .exe
Nigel Stewart's avatar
Nigel Stewart committed
14
15
16
17
LIB.SONAME    = cyg$(NAME)-$(SO_MAJOR).dll
LIB.DEVLNK    = lib$(NAME).dll.a
LIB.SHARED    = cyg$(NAME)-$(SO_MAJOR).dll
LIB.STATIC    = lib$(NAME).a
18
LDFLAGS.SO    = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK)
Nigel Stewart's avatar
Nigel Stewart committed
19
20
21
22
LIB.SONAME.MX = cyg$(NAME)mx-$(SO_MAJOR).dll
LIB.DEVLNK.MX = lib$(NAME)mx.dll.a
LIB.SHARED.MX = cyg$(NAME)mx-$(SO_MAJOR).dll
LIB.STATIC.MX = lib$(NAME)mx.a
23
LDFLAGS.SO.MX = -shared -Wl,--out-implib,lib/$(LIB.DEVLNK.MX)