File: Makefile

package info (click to toggle)
suitesparse 1%3A4.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 54,408 kB
  • ctags: 8,790
  • sloc: ansic: 115,048; cpp: 13,222; makefile: 5,720; fortran: 1,927; java: 1,846; csh: 742; ruby: 725; asm: 512; perl: 243; sed: 164; awk: 27; sh: 8
file content (42 lines) | stat: -rw-r--r-- 1,154 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
#-------------------------------------------------------------------------------
# Makefile for the LDL library
#-------------------------------------------------------------------------------

default: all

include ../../SuiteSparse_config/SuiteSparse_config.mk

I = -I../../SuiteSparse_config -I../Include

C = $(CC) $(CF) $(I)

SOVERSION = $(shell perl ../../debian/library-soname.pl LDL | sed 's/libldl//')

all: libldl.a libldl.so.$(SOVERSION)

#-------------------------------------------------------------------------------
# the ldl library:
#-------------------------------------------------------------------------------

libldl.a: ../Source/ldl.c ../Include/ldl.h
	$(C) -c ../Source/ldl.c -o ldl.o
	$(C) -DLDL_LONG -c ../Source/ldl.c -o ldll.o
	$(ARCHIVE)  libldl.a ldl.o ldll.o
	- $(RANLIB) libldl.a

libldl.so.$(SOVERSION): ../Source/ldl.c ../Include/ldl.h
	$(C) -fPIC -c ../Source/ldl.c -o ldl.oo
	$(C) -fPIC -DLDL_LONG -c ../Source/ldl.c -o ldll.oo
	$(C) $(LDFLAGS) -shared *.oo -Wl,-soname -Wl,$@ -o $@
	ln -s $@ libldl.so

distclean: purge

purge: clean
	- $(RM) libldl.a

clean:
	- $(RM) $(CLEAN)
	-$(RM) *.oo
	-$(RM) *.a
	-$(RM) *.so*