File: Makefile.am

package info (click to toggle)
boinc 7.14.2+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 111,132 kB
  • sloc: cpp: 163,589; php: 113,173; ansic: 49,284; pascal: 35,620; xml: 17,864; java: 13,521; python: 6,551; sh: 4,082; perl: 1,843; makefile: 1,796; objc: 1,543; sql: 959; csh: 126; lisp: 47
file content (120 lines) | stat: -rw-r--r-- 3,185 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
## -*- mode: makefile; tab-width: 4 -*-
## $Id$

include $(top_srcdir)/Makefile.incl

if ENABLE_LIBRARIES

# library for both main and graphics apps
api_files= \
    boinc_api.cpp \
    graphics2_util.cpp \
    reduce_main.cpp

# library for graphics apps
graphics2_files = \
    gutil.cpp \
    gutil_text.cpp \
    reduce_lib.cpp \
    graphics2.cpp 

if OS_WIN32
    graphics2_files += graphics2_win.cpp \
                       $(top_srcdir)/samples/image_libs/bmplib.cpp \
                       $(top_srcdir)/samples/image_libs/tgalib.cpp
else
    graphics2_files += graphics2_unix.cpp 
endif

if OS_DARWIN
    graphics2_files += mac_icon.cpp
    graphics2_files += macglutfix.m
endif

# library for OpenCL apps
opencl_files = \
	boinc_opencl.cpp

EXTRA_DIST = *.h

if BUILD_GRAPHICS_API
AM_CXXFLAGS += @GLUT_CFLAGS@
endif

lib_LTLIBRARIES = libboinc_api.la
libboinc_api_la_SOURCES = $(api_files)
libboinc_api_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -lpthread
libboinc_api_la_LIBADD = -L../lib/.libs $(LIBBOINC)
libboinc_api_la_AR = gcc-ar
libboinc_api_la_RANLIB = gcc-ranlib
libboinc_api_a_AR = gcc-ar
libboinc_api_a_RANLIB = gcc-ranlib

if BUILD_GRAPHICS_API
lib_LTLIBRARIES += libboinc_graphics2.la
libboinc_graphics2_la_SOURCES = $(graphics2_files)
libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/samples/image_libs
libboinc_graphics2_la_LDFLAGS = -version-number $(LIBBOINC_VERSION) -ljpeg
libboinc_graphics2_la_LIBADD = -L../lib/.libs $(APPLIBS)
libboinc_graphics2_la_AR = gcc-ar
libboinc_graphics2_la_RANLIB = gcc-ranlib
libboinc_graphics2_a_AR = gcc-ar
libboinc_graphics2_a_RANLIB = gcc-ranlib
endif #BUILD_GRAPHICS_API

lib_LTLIBRARIES += libboinc_opencl.la
libboinc_opencl_la_SOURCES = $(opencl_files)
libboinc_opencl_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
libboinc_opencl_la_LIBADD = -L../lib/.libs $(APPLIBS)
libboinc_opencl_la_AR = gcc-ar
libboinc_opencl_la_RANLIB = gcc-ranlib
libboinc_opencl_a_AR = gcc-ar
libboinc_opencl_a_RANLIB = gcc-ranlib

if INSTALL_HEADERS
## install only headers that are meant for exporting the API !!
pkginclude_HEADERS = 	\
	boinc_api.h   	\
	boinc_opencl.h   	\
	graphics2.h	\
	gutil.h
endif ## INSTALL_HEADERS

# 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}
LIBBOINC_OPENCL_STATIC=boinc_opencl.${LIBEXT}
else
LIBBOINC_API_STATIC=libboinc_api.${LIBEXT}
LIBBOINC_GRAPHICS2_STATIC=libboinc_graphics2.${LIBEXT}
LIBBOINC_OPENCL_STATIC=libboinc_opencl.${LIBEXT}
endif


if BUILD_STATIC_LIBS
all_local = $(LIBBOINC_API_STATIC)
if BUILD_GRAPHICS_API
all_local += $(LIBBOINC_GRAPHICS2_STATIC)
endif
all_local += $(LIBBOINC_OPENCL_STATIC)
endif

all-local: $(all_local)

$(LIBBOINC_API_STATIC): libboinc_api.la
	rm -f $(LIBBOINC_API_STATIC)
	$(LN) .libs/$(LIBBOINC_API_STATIC) .

$(LIBBOINC_GRAPHICS2_STATIC): libboinc_graphics2.la
	rm -f $(LIBBOINC_GRAPHICS2_STATIC)
	$(LN) .libs/$(LIBBOINC_GRAPHICS2_STATIC) .

$(LIBBOINC_OPENCL_STATIC): libboinc_opencl.la
	rm -f $(LIBBOINC_OPENCL_STATIC)
	$(LN) .libs/$(LIBBOINC_OPENCL_STATIC) .

endif ## ENABLE_LIBRARIES

.PHONY: