2008-06-08 22:18:52 +00:00
|
|
|
## -*- mode: makefile; tab-width: 4 -*-
|
2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.incl
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if ENABLE_LIBRARIES
|
2004-12-28 15:58:24 +00:00
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
# library for both main and graphics apps
|
2004-10-18 01:54:28 +00:00
|
|
|
api_files= \
|
2009-01-13 23:06:02 +00:00
|
|
|
boinc_api.cpp \
|
2011-08-31 15:54:41 +00:00
|
|
|
graphics2_util.cpp \
|
|
|
|
reduce_main.cpp
|
2003-06-11 22:42:42 +00:00
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
# library for graphics apps
|
2007-05-22 20:12:45 +00:00
|
|
|
graphics2_files = \
|
2009-01-13 23:06:02 +00:00
|
|
|
gutil.cpp \
|
|
|
|
gutil_text.cpp \
|
|
|
|
reduce_lib.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
graphics2.cpp \
|
|
|
|
graphics2_unix.cpp
|
2008-01-24 01:06:55 +00:00
|
|
|
|
2008-01-23 20:26:09 +00:00
|
|
|
if OS_DARWIN
|
2008-09-26 18:20:24 +00:00
|
|
|
graphics2_files += mac_icon.cpp
|
2008-01-28 22:42:05 +00:00
|
|
|
graphics2_files += macglutfix.m
|
2008-01-23 20:26:09 +00:00
|
|
|
endif
|
2007-05-22 20:12:45 +00:00
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
# library for OpenCL apps
|
|
|
|
opencl_files = \
|
|
|
|
boinc_opencl.cpp
|
|
|
|
|
2005-07-19 19:05:50 +00:00
|
|
|
EXTRA_DIST = *.h
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2004-11-26 17:45:13 +00:00
|
|
|
if BUILD_GRAPHICS_API
|
2009-02-26 00:23:23 +00:00
|
|
|
AM_CXXFLAGS += @GLUT_CFLAGS@
|
2004-11-26 17:45:13 +00:00
|
|
|
endif
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
lib_LTLIBRARIES = libboinc_api.la
|
|
|
|
libboinc_api_la_SOURCES = $(api_files)
|
2013-07-07 23:35:46 +00:00
|
|
|
libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION) -lpthread
|
2011-10-19 06:37:03 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if BUILD_GRAPHICS_API
|
|
|
|
lib_LTLIBRARIES += libboinc_graphics2.la
|
|
|
|
libboinc_graphics2_la_SOURCES = $(graphics2_files)
|
2012-11-05 18:03:20 +00:00
|
|
|
# libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib
|
2013-07-07 23:35:46 +00:00
|
|
|
libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION) -ljpeg
|
2009-01-13 23:06:02 +00:00
|
|
|
endif #BUILD_GRAPHICS_API
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
lib_LTLIBRARIES += libboinc_opencl.la
|
|
|
|
libboinc_opencl_la_SOURCES = $(opencl_files)
|
|
|
|
libboinc_opencl_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if INSTALL_HEADERS
|
2004-12-04 00:56:22 +00:00
|
|
|
## install only headers that are meant for exporting the API !!
|
2008-05-28 01:38:39 +00:00
|
|
|
pkginclude_HEADERS = \
|
2004-12-04 00:56:22 +00:00
|
|
|
boinc_api.h \
|
2011-10-17 17:02:05 +00:00
|
|
|
boinc_opencl.h \
|
2008-01-09 17:32:02 +00:00
|
|
|
graphics2.h \
|
|
|
|
gutil.h
|
2009-01-13 23:06:02 +00:00
|
|
|
endif ## INSTALL_HEADERS
|
|
|
|
|
2011-09-27 19:45:27 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
2009-02-26 00:23:23 +00:00
|
|
|
# For example OS2
|
|
|
|
if OS_OS2
|
|
|
|
LIBBOINC_API_STATIC=boinc_api.${LIBEXT}
|
|
|
|
LIBBOINC_GRAPHICS2_STATIC=boinc_graphics2.${LIBEXT}
|
2011-10-19 06:37:03 +00:00
|
|
|
LIBBOINC_OPENCL_STATIC=boinc_opencl.${LIBEXT}
|
2009-02-26 00:23:23 +00:00
|
|
|
else
|
|
|
|
LIBBOINC_API_STATIC=libboinc_api.${LIBEXT}
|
|
|
|
LIBBOINC_GRAPHICS2_STATIC=libboinc_graphics2.${LIBEXT}
|
2011-10-19 06:37:03 +00:00
|
|
|
LIBBOINC_OPENCL_STATIC=libboinc_opencl.${LIBEXT}
|
2009-02-26 00:23:23 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
if BUILD_STATIC_LIBS
|
2009-02-26 00:23:23 +00:00
|
|
|
all_local = $(LIBBOINC_API_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
if BUILD_GRAPHICS_API
|
2009-02-26 00:23:23 +00:00
|
|
|
all_local += $(LIBBOINC_GRAPHICS2_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
2011-10-19 06:37:03 +00:00
|
|
|
all_local += $(LIBBOINC_OPENCL_STATIC)
|
2009-01-13 23:06:02 +00:00
|
|
|
endif
|
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
all-local: $(all_local)
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
$(LIBBOINC_API_STATIC): libboinc_api.la
|
|
|
|
rm -f $(LIBBOINC_API_STATIC)
|
2009-05-05 09:16:57 +00:00
|
|
|
$(LN) .libs/$(LIBBOINC_API_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
$(LIBBOINC_GRAPHICS2_STATIC): libboinc_graphics2.la
|
|
|
|
rm -f $(LIBBOINC_GRAPHICS2_STATIC)
|
2009-05-05 09:16:57 +00:00
|
|
|
$(LN) .libs/$(LIBBOINC_GRAPHICS2_STATIC) .
|
2009-01-13 23:06:02 +00:00
|
|
|
|
2011-10-19 06:37:03 +00:00
|
|
|
$(LIBBOINC_OPENCL_STATIC): libboinc_opencl.la
|
|
|
|
rm -f $(LIBBOINC_OPENCL_STATIC)
|
|
|
|
$(LN) .libs/$(LIBBOINC_OPENCL_STATIC) .
|
2004-12-04 00:56:22 +00:00
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
endif ## ENABLE_LIBRARIES
|
2003-10-13 21:29:42 +00:00
|
|
|
|
2008-01-09 17:32:02 +00:00
|
|
|
.PHONY:
|