File: Makefile.am

package info (click to toggle)
suitesparse 1%3A7.12.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 258,716 kB
  • sloc: ansic: 1,156,605; cpp: 48,363; makefile: 5,047; fortran: 2,087; java: 1,826; sh: 1,456; ruby: 725; python: 676; asm: 371; sed: 166; awk: 44
file content (69 lines) | stat: -rw-r--r-- 2,171 bytes parent folder | download
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
#-------------------------------------------------------------------------------
# SuiteSparse/Example/Makefile.am
#-------------------------------------------------------------------------------

# Example: Copyright (c) 2023, Timothy A. Davis, All Rights Reserved.
# SPDX-License-Identifier: BSD-3-Clause

#-------------------------------------------------------------------------------

# A simple Makefile for the MY library in SuiteSparse/Example, which relies on
# libtool.

# To compile with an alternate compiler:
#
#       make CC=gcc CXX=g++
#
# To clean up the files:
#
#       make clean

noinst_LTLIBRARIES = \
  %reldir%/libmy.la \
  %reldir%/libmy_cxx.la

%canon_reldir%_libmy_la_SOURCES = %reldir%/Source/my.c
%canon_reldir%_libmy_la_CPPFLAGS = -I../Include @SUITESPARSE_CFLAGS@
%canon_reldir%_libmy_la_LIBADD = @SUITESPARSE_LIBS@

%canon_reldir%_libmy_cxx_la_SOURCES = %reldir%/Source/my_cxx.cc
%canon_reldir%_libmy_cxx_la_CPPFLAGS = -I../Include @SUITESPARSE_CFLAGS@
%canon_reldir%_libmy_cxx_la_LIBADD = @SUITESPARSE_LIBS@

if AMCOND_HAVE_GRAPHBLAS
%canon_reldir%_libmy_la_CPPFLAGS += @GRAPHBLAS_CFLAGS@
%canon_reldir%_libmy_la_LIBADD += @GRAPHBLAS_LIBS@

%canon_reldir%_libmy_cxx_la_CPPFLAGS += @GRAPHBLAS_CFLAGS@
%canon_reldir%_libmy_cxx_la_LIBADD += @GRAPHBLAS_LIBS@
else
%canon_reldir%_libmy_la_CPPFLAGS += -DNO_GRAPHBLAS

%canon_reldir%_libmy_cxx_la_CPPFLAGS += -DNO_GRAPHBLAS
endif

if AMCOND_HAVE_LAGRAPH
%canon_reldir%_libmy_la_CPPFLAGS += @LAGRAPH_CFLAGS@
%canon_reldir%_libmy_la_LIBADD += @LAGRAPH_LIBS@

%canon_reldir%_libmy_cxx_la_CPPFLAGS += @LAGRAPH_CFLAGS@
%canon_reldir%_libmy_cxx_la_LIBADD += @LAGRAPH_LIBS@
else
%canon_reldir%_libmy_la_CPPFLAGS += -DNO_LAGRAPH

%canon_reldir%_libmy_cxx_la_CPPFLAGS += -DNO_LAGRAPH
endif

demo_PROGRAMS = \
  %reldir%/my_demo \
  %reldir%/my_cxx_demo

demodir = %canon_reldir%

%canon_reldir%_my_demo_SOURCES = %reldir%/Demo/my_demo.c
%canon_reldir%_my_demo_CPPFLAGS = -I../Include
%canon_reldir%_my_demo_LDADD = %reldir%/libmy.la

%canon_reldir%_my_cxx_demo_SOURCES = %reldir%/Demo/my_demo.cc
%canon_reldir%_my_cxx_demo_CPPFLAGS = -I../Include
%canon_reldir%_my_cxx_demo_LDADD = %reldir%/libmy_cxx.la