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
|
|
|
|
|
2008-03-15 03:26:14 +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= \
|
2008-09-26 18:20:24 +00:00
|
|
|
boinc_api.cpp \
|
|
|
|
reduce_main.cpp \
|
|
|
|
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 = \
|
2008-09-26 18:20:24 +00:00
|
|
|
gutil.cpp \
|
|
|
|
gutil_text.cpp \
|
|
|
|
reduce_lib.cpp \
|
|
|
|
texfont.cpp \
|
|
|
|
texture.cpp \
|
|
|
|
txf_util.cpp \
|
|
|
|
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
|
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
|
|
|
|
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
|
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
|
|
|
|
|
2008-09-26 18:20:24 +00:00
|
|
|
api_app_SOURCES = api_app.cpp boinc_api.cpp ../lib/parse.cpp
|
|
|
|
api_test_SOURCES = boinc_api.cpp api_test.cpp ../lib/parse.cpp
|
2003-10-15 19:08:51 +00:00
|
|
|
|