File: Makefile

package info (click to toggle)
dsdp 5.8-11
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 2,180 kB
  • sloc: ansic: 27,119; makefile: 309; sh: 30
file content (60 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (8)
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

default: 
	make all

D1       =  src
D2       =  examples
D3	 =  matlab
D4       =  bin

include make.include

dsdplibrary: chkroot info
	cd ${D1}; make all
	${RANLIB} ${DSDPLIB}

example:
	cd ${D2}; make most

test:
	cd ${D4}; make all

dmatlab:
	cd ${D2}; make dsdp

dsdpmatlab: dsdplibrary
	make dmatlab

dsdpapi: dsdplibrary
	make example
	make test;

install:
	make dsdplibrary
	make example
	make test
	make dmatlab

all:
	make install

clean:
	cd ${D1}; make clean
	cd ${D2}; make clean
	cd ${D4}; make clean
	${RM} lib/lib* matlab/dsdp.mex*
	${RM} *~ */*~ */*/*~

htmlzip:
	zip -r DSDP5-api-html.zip dox
	${RM} -R dox

oshared: 
	-@${RM} tmp; \
	mkdir tmp; \
	cd tmp; \
	echo "building ${DSDPLIBSO}"; \
	${AR} x ${DSDPLIB} ;\
	${SH_LD} ${DSDPLIBSO} *.o -o ${DSDPLIBSO}; \
	cd ../ ; \
	${RM} tmp