File: Makefile

package info (click to toggle)
semidef-oct 1998.09-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,384 kB
  • ctags: 255
  • sloc: fortran: 2,197; ansic: 686; cpp: 535; makefile: 82
file content (40 lines) | stat: -rw-r--r-- 1,236 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
#! /usr/bin/make -f
# Makefile for the Debian/GNU Linux octave-sp package
# Derived from the Makefile that comes with semidef-oct
# Copyright (C) 1998 by Dirk Eddelbuettel <edd@debian.org>

%.oct : %.cc 
	mkoctfile $< 

%.o : %.cc 
	mkoctfile $<
	rm -f $*.oct

OCT_FILES = sp.oct 

# original set
#SP_DEP= sp.cc get_matrix.o get_real_scalar.o get_vector.o sp_src.c \
#	dgels.f    dopgtr.f   dspgv.f    dsptrd.f   dtrsv.f    lse.f \
#	dlansp.f   dpptrf.f   dspmv.f    dtpmv.f    lce.f      xerbla.f \
#	dlantr.f   dspev.f    dspr.f     dtpsv.f    lde.f \
#	dlatrs.f   dspgst.f   dspr2.f    dtrcon.f   lsame.f

# pruned by three files found in Octave's libcruftoriginal set
SP_DEP= sp.cc get_matrix.o get_real_scalar.o get_vector.o sp_src.c \
	dgels.f    dopgtr.f   dspgv.f    dsptrd.f   lse.f \
	dlansp.f   dpptrf.f   dspmv.f    dtpmv.f    lce.f \
	dlantr.f   dspev.f    dspr.f     dtpsv.f    lde.f \
	dlatrs.f   dspgst.f   dspr2.f    dtrcon.f   
octlib  := $(shell ls /usr/bin/octave-*.*.* | sed -e 's/bin/lib/')
SP_LIB = -L$(octlib) -lcruft 

sp.oct: $(SP_DEP) ocst.h
	mkoctfile $(SP_DEP) $(SP_LIB)

clean:
	rm -f *.o *.oct *.a *.so *.so.1 core octave-core

all: $(OCT_FILES)
	@echo "Type in \"demosp\" at the octave prompt"
	octave