openbsd-ports/graphics/glew/files/Makefile.openbsd
sthen a4318369a4 - don't strip the shared lib when installing
- make sure to pass the PIC flag to the compiler when linking
the shared lib

from Brad (maintainer)
2009-08-02 12:32:36 +00:00

20 lines
451 B
Makefile

NAME = $(GLEW_NAME)
CC ?= cc
LD ?= cc
ifneq (undefined, $(origin GLEW_MX))
CFLAGS.EXTRA = -DGLEW_MX
endif
LDFLAGS.SO = -shared
LDFLAGS.EXTRA = -L$(X11BASE)/lib
LDFLAGS.GL = -lm -lXmu -lXi -lGLU -lGL -lXext -lX11
LDFLAGS.STATIC = -Wl,-Bstatic
LDFLAGS.DYNAMIC = -Wl,-Bdynamic
CFLAGS.EXTRA += -I$(X11BASE)/include
NAME = GLEW
WARN = -Wall -W
POPT =
BIN.SUFFIX =
LIB.SHARED = lib$(NAME).so.$(LIBGLEW_VERSION)
LIB.STATIC = lib$(NAME).a
SHARED_OBJ_EXT = so