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
|
|
|
|
2008-01-28 22:42:05 +00:00
|
|
|
# stuff linked into both main app and graphics app
|
2004-10-18 01:54:28 +00:00
|
|
|
api_files= \
|
2009-01-13 23:06:02 +00:00
|
|
|
boinc_api.cpp \
|
|
|
|
reduce_main.cpp \
|
2008-09-26 18:20:24 +00:00
|
|
|
graphics2_util.cpp
|
2003-06-11 22:42:42 +00:00
|
|
|
|
2008-01-28 22:42:05 +00:00
|
|
|
# stuff linked into graphics app
|
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 \
|
|
|
|
texfont.cpp \
|
|
|
|
texture.cpp \
|
|
|
|
txf_util.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
|
|
|
|
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)
|
|
|
|
libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
|
|
|
if BUILD_GRAPHICS_API
|
|
|
|
lib_LTLIBRARIES += libboinc_graphics2.la
|
|
|
|
libboinc_graphics2_la_SOURCES = $(graphics2_files)
|
|
|
|
libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir)/lib
|
|
|
|
libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
|
|
|
|
endif #BUILD_GRAPHICS_API
|
2004-10-18 01:54:28 +00:00
|
|
|
|
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 \
|
2008-01-09 17:32:02 +00:00
|
|
|
graphics2.h \
|
|
|
|
gutil.h
|
2009-01-13 23:06:02 +00:00
|
|
|
endif ## INSTALL_HEADERS
|
|
|
|
|
2009-02-26 00:23:23 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
|
|
|
# For example OS2
|
|
|
|
if OS_OS2
|
|
|
|
LIBBOINC_API_STATIC=boinc_api.${LIBEXT}
|
|
|
|
LIBBOINC_GRAPHICS2_STATIC=boinc_graphics2.${LIBEXT}
|
|
|
|
else
|
|
|
|
LIBBOINC_API_STATIC=libboinc_api.${LIBEXT}
|
|
|
|
LIBBOINC_GRAPHICS2_STATIC=libboinc_graphics2.${LIBEXT}
|
|
|
|
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
|
|
|
|
endif
|
|
|
|
|
|
|
|
all-local: $(all_local)
|
|
|
|
|
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
|
|
|
|
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:
|
2003-08-19 00:54:49 +00:00
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
EXTRA_PROGRAMS = api_app api_test
|
|
|
|
|
2009-01-13 23:06:02 +00:00
|
|
|
api_app_SOURCES = api_app.cpp ../lib/parse.cpp
|
|
|
|
api_app_LDADD = $(LIBAPI)
|
|
|
|
api_test_SOURCES = api_test.cpp ../lib/parse.cpp
|
|
|
|
api_test_LDADD = $(LIBAPI)
|
2003-10-15 19:08:51 +00:00
|
|
|
|