~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to .pc/texfont_removal.patch/api/Makefile.am

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## -*- mode: makefile; tab-width: 4 -*-
 
2
## $Id: Makefile.am 18003 2009-05-05 09:16:57Z davea $
 
3
 
 
4
include $(top_srcdir)/Makefile.incl
 
5
 
 
6
if ENABLE_LIBRARIES
 
7
 
 
8
# stuff linked into both main app and graphics app
 
9
api_files= \
 
10
    boinc_api.cpp \
 
11
    reduce_main.cpp \
 
12
    graphics2_util.cpp
 
13
 
 
14
# stuff linked into graphics app
 
15
graphics2_files = \
 
16
    gutil.cpp \
 
17
    gutil_text.cpp \
 
18
    reduce_lib.cpp \
 
19
    texfont.cpp \
 
20
    texture.cpp \
 
21
    txf_util.cpp \
 
22
    graphics2.cpp \
 
23
    graphics2_unix.cpp
 
24
 
 
25
if OS_DARWIN
 
26
    graphics2_files += mac_icon.cpp
 
27
    graphics2_files += macglutfix.m
 
28
endif
 
29
 
 
30
EXTRA_DIST = *.h
 
31
 
 
32
if BUILD_GRAPHICS_API
 
33
AM_CXXFLAGS += @GLUT_CFLAGS@
 
34
endif
 
35
 
 
36
lib_LTLIBRARIES = libboinc_api.la
 
37
libboinc_api_la_SOURCES = $(api_files)
 
38
libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
 
39
if BUILD_GRAPHICS_API
 
40
lib_LTLIBRARIES += libboinc_graphics2.la
 
41
libboinc_graphics2_la_SOURCES = $(graphics2_files)
 
42
libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir)/lib 
 
43
libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number $(LIBBOINC_VERSION)
 
44
endif #BUILD_GRAPHICS_API
 
45
 
 
46
if INSTALL_HEADERS
 
47
## install only headers that are meant for exporting the API !!
 
48
pkginclude_HEADERS =    \
 
49
        boinc_api.h     \
 
50
        graphics2.h     \
 
51
        gutil.h
 
52
endif ## INSTALL_HEADERS
 
53
 
 
54
# Some OSs may not prefix libraries with lib. 
 
55
# For example OS2
 
56
if OS_OS2
 
57
LIBBOINC_API_STATIC=boinc_api.${LIBEXT}
 
58
LIBBOINC_GRAPHICS2_STATIC=boinc_graphics2.${LIBEXT}
 
59
else
 
60
LIBBOINC_API_STATIC=libboinc_api.${LIBEXT}
 
61
LIBBOINC_GRAPHICS2_STATIC=libboinc_graphics2.${LIBEXT}
 
62
endif
 
63
 
 
64
 
 
65
if BUILD_STATIC_LIBS
 
66
all_local = $(LIBBOINC_API_STATIC)
 
67
if BUILD_GRAPHICS_API
 
68
all_local += $(LIBBOINC_GRAPHICS2_STATIC)
 
69
endif
 
70
endif
 
71
 
 
72
all-local: $(all_local)
 
73
 
 
74
$(LIBBOINC_API_STATIC): libboinc_api.la
 
75
        rm -f $(LIBBOINC_API_STATIC)
 
76
        $(LN) .libs/$(LIBBOINC_API_STATIC) .
 
77
 
 
78
$(LIBBOINC_GRAPHICS2_STATIC): libboinc_graphics2.la
 
79
        rm -f $(LIBBOINC_GRAPHICS2_STATIC)
 
80
        $(LN) .libs/$(LIBBOINC_GRAPHICS2_STATIC) .
 
81
 
 
82
 
 
83
endif ## ENABLE_LIBRARIES
 
84
 
 
85
.PHONY:
 
86
 
 
87
EXTRA_PROGRAMS = api_app api_test
 
88
 
 
89
api_app_SOURCES = api_app.cpp ../lib/parse.cpp
 
90
api_app_LDADD = $(LIBAPI)
 
91
api_test_SOURCES = api_test.cpp ../lib/parse.cpp
 
92
api_test_LDADD = $(LIBAPI)
 
93