2013-04-11 14:38:40 +00:00
|
|
|
include ../common_pre.mk
|
|
|
|
|
|
|
|
OBJPATH = ${BUILDPATH}/lib_paysages
|
2012-01-28 17:24:19 +00:00
|
|
|
RESULT = ${BUILDPATH}/libpaysages.so
|
2013-04-11 14:38:40 +00:00
|
|
|
SOURCES += $(wildcard *.c atmosphere/*.c clouds/*.c terrain/*.c textures/*.c water/*.c tools/*.c shared/*.c)
|
|
|
|
|
|
|
|
LIBS += glib-2.0 gthread-2.0 IL ILU
|
|
|
|
CC_FLAGS += -DHAVE_GLIB=1
|
|
|
|
CC_LDFLAGS += -shared
|
2011-12-23 22:00:19 +00:00
|
|
|
|
2012-12-01 16:39:47 +00:00
|
|
|
CHECK_OPENCL = $(shell pkg-config --modversion --silence-errors OpenCL)
|
|
|
|
ifneq (,${CHECK_OPENCL})
|
|
|
|
LIBS += OpenCL
|
|
|
|
CC_FLAGS += -DHAVE_OPENCL=1
|
|
|
|
endif
|
|
|
|
|
|
|
|
CC_FLAGS += $(shell pkg-config --cflags ${LIBS})
|
2013-04-11 14:38:40 +00:00
|
|
|
CC_LDFLAGS += $(shell pkg-config --libs ${LIBS})
|
2011-12-23 22:00:19 +00:00
|
|
|
|
2013-04-11 14:38:40 +00:00
|
|
|
include ../common_post.mk
|