2004-06-18 09:05:15 +00:00
|
|
|
## -*- mode: make; tab-width: 4 -*-
|
2003-06-06 19:00:42 +00:00
|
|
|
## $Id$
|
|
|
|
|
|
|
|
include $(top_srcdir)/Makefile.incl
|
|
|
|
|
2005-02-09 19:39:04 +00:00
|
|
|
AM_CFLAGS += @GLUT_CFLAGS@
|
|
|
|
AM_LDFLAGS += @GLUT_LIBS@
|
2004-12-28 15:58:24 +00:00
|
|
|
|
2004-10-18 01:54:28 +00:00
|
|
|
api_files= \
|
2004-12-08 20:55:53 +00:00
|
|
|
boinc_api.C
|
2003-06-11 22:42:42 +00:00
|
|
|
|
2005-01-03 20:35:32 +00:00
|
|
|
# graphics library for monolithic apps
|
2004-12-11 01:16:36 +00:00
|
|
|
graphics_api_files = \
|
|
|
|
graphics_api.C \
|
|
|
|
graphics_data.C \
|
2004-12-11 18:38:19 +00:00
|
|
|
graphics_impl.C \
|
2005-01-03 20:35:32 +00:00
|
|
|
reduce_main.C \
|
|
|
|
reduce_lib.C \
|
2004-12-11 01:16:36 +00:00
|
|
|
gutil.C \
|
|
|
|
x_opengl.C
|
|
|
|
|
2005-05-05 16:12:59 +00:00
|
|
|
if OS_DARWIN
|
|
|
|
graphics_api_files += macglutfix.m
|
|
|
|
endif
|
|
|
|
|
2005-01-03 20:35:32 +00:00
|
|
|
# library for main-program part of split apps
|
2004-12-11 01:16:36 +00:00
|
|
|
graphics_lib_files = \
|
2004-12-11 18:38:19 +00:00
|
|
|
graphics_lib.C \
|
|
|
|
graphics_data.C \
|
2005-01-03 20:35:32 +00:00
|
|
|
reduce_main.C
|
2004-12-11 01:16:36 +00:00
|
|
|
|
2005-01-03 20:35:32 +00:00
|
|
|
# library for shared-library part of split apps
|
2004-12-11 18:38:19 +00:00
|
|
|
graphics_impl_files = \
|
2004-12-11 01:16:36 +00:00
|
|
|
graphics_data.C \
|
2004-12-11 18:38:19 +00:00
|
|
|
graphics_impl.C \
|
2004-12-15 19:35:42 +00:00
|
|
|
graphics_impl_lib.C \
|
2004-12-11 01:16:36 +00:00
|
|
|
gutil.C \
|
2005-01-03 20:35:32 +00:00
|
|
|
reduce_lib.C \
|
2004-12-11 01:16:36 +00:00
|
|
|
x_opengl.C
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
boinc_api.h \
|
|
|
|
boinc_gl.h \
|
|
|
|
graphics_api.h \
|
2004-12-04 00:56:22 +00:00
|
|
|
graphics_data.h \
|
2004-12-11 01:16:36 +00:00
|
|
|
graphics_impl.h \
|
|
|
|
graphics_lib.h \
|
|
|
|
gutil.h \
|
2004-12-04 00:56:22 +00:00
|
|
|
reduce.h \
|
2004-12-11 01:16:36 +00:00
|
|
|
x_opengl.h
|
2004-10-18 01:54:28 +00:00
|
|
|
|
2004-11-26 17:45:13 +00:00
|
|
|
if BUILD_GRAPHICS_API
|
2004-12-11 01:27:47 +00:00
|
|
|
graphics_libs = \
|
|
|
|
libboinc_graphics_api.a \
|
|
|
|
libboinc_graphics_lib.a \
|
|
|
|
libboinc_graphics_impl.a
|
2004-11-26 17:45:13 +00:00
|
|
|
else
|
|
|
|
graphics_libs =
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib_LIBRARIES = libboinc_api.a $(graphics_libs)
|
|
|
|
|
2004-12-11 01:16:36 +00:00
|
|
|
#EXTRA_LIBRARIES = libboinc_graphics_api.a
|
2004-10-18 01:54:28 +00:00
|
|
|
|
|
|
|
libboinc_api_a_SOURCES = $(api_files)
|
|
|
|
|
|
|
|
libboinc_graphics_api_a_SOURCES = $(graphics_api_files)
|
2004-11-18 01:30:37 +00:00
|
|
|
libboinc_graphics_api_a_CPPFLAGS = -I$(top_srcdir)/lib
|
2004-12-11 01:27:47 +00:00
|
|
|
libboinc_graphics_lib_a_SOURCES = $(graphics_lib_files)
|
|
|
|
libboinc_graphics_lib_a_CPPFLAGS = -I$(top_srcdir)/lib
|
|
|
|
libboinc_graphics_impl_a_SOURCES = $(graphics_impl_files)
|
|
|
|
libboinc_graphics_impl_a_CPPFLAGS = -I$(top_srcdir)/lib
|
2004-10-18 01:54:28 +00:00
|
|
|
|
|
|
|
## install header-files with prefix-subdir BOINC/ to avoid name-conflicts
|
|
|
|
includedir = ${prefix}/include/BOINC/
|
|
|
|
|
2004-12-04 00:56:22 +00:00
|
|
|
## install only headers that are meant for exporting the API !!
|
|
|
|
include_HEADERS = \
|
|
|
|
boinc_api.h \
|
|
|
|
graphics_api.h \
|
2004-12-12 12:19:42 +00:00
|
|
|
gutil.h \
|
2004-12-13 01:41:57 +00:00
|
|
|
graphics_lib.h \
|
2004-12-12 12:19:42 +00:00
|
|
|
graphics_impl.h
|
2004-12-04 00:56:22 +00:00
|
|
|
|
2003-10-13 21:29:42 +00:00
|
|
|
|
2003-10-15 19:08:51 +00:00
|
|
|
.PHONY: nographics
|
|
|
|
nographics:
|
|
|
|
touch libboinc_graphics_api.a $(libboinc_graphics_api_a_OBJECTS)
|
2003-08-19 00:54:49 +00:00
|
|
|
|
2003-06-06 19:00:42 +00:00
|
|
|
EXTRA_PROGRAMS = api_app api_test
|
|
|
|
|
2004-11-02 23:12:29 +00:00
|
|
|
api_app_SOURCES = api_app.C boinc_api.C ../lib/parse.C
|
2003-06-06 19:00:42 +00:00
|
|
|
api_test_SOURCES = boinc_api.C api_test.C ../lib/parse.C
|
2003-10-15 19:08:51 +00:00
|
|
|
|