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
|
|
|
|
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= \
|
2007-05-23 22:36:07 +00:00
|
|
|
boinc_api.C \
|
|
|
|
graphics2_util.C
|
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 = \
|
|
|
|
gutil.C \
|
|
|
|
gutil_text.C \
|
|
|
|
reduce_lib.C \
|
2007-05-24 18:04:01 +00:00
|
|
|
texfont.C \
|
2007-05-22 20:12:45 +00:00
|
|
|
texture.C \
|
|
|
|
txf_util.C \
|
|
|
|
graphics2.C \
|
|
|
|
graphics2_unix.C
|
2008-01-24 01:06:55 +00:00
|
|
|
|
2008-01-23 20:26:09 +00:00
|
|
|
if OS_DARWIN
|
2008-01-28 22:42:05 +00:00
|
|
|
graphics2_files += mac_icon.C
|
|
|
|
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
|
2004-12-11 01:27:47 +00:00
|
|
|
graphics_libs = \
|
2007-05-22 20:12:45 +00:00
|
|
|
libboinc_graphics2.a
|
2004-11-26 17:45:13 +00:00
|
|
|
else
|
|
|
|
graphics_libs =
|
|
|
|
endif
|
|
|
|
|
|
|
|
lib_LIBRARIES = libboinc_api.a $(graphics_libs)
|
|
|
|
|
2004-10-18 01:54:28 +00:00
|
|
|
libboinc_api_a_SOURCES = $(api_files)
|
|
|
|
|
2007-05-22 20:12:45 +00:00
|
|
|
libboinc_graphics2_a_SOURCES = $(graphics2_files)
|
|
|
|
libboinc_graphics2_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 \
|
2008-01-09 17:32:02 +00:00
|
|
|
graphics2.h \
|
|
|
|
gutil.h
|
2004-12-04 00:56:22 +00:00
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|