/[ascend]/trunk/tools/ipopt/debian/rules
ViewVC logotype

Contents of /trunk/tools/ipopt/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2485 - (show annotations) (download)
Sun Jul 24 13:04:23 2011 UTC (10 years, 11 months ago) by jpye
File size: 1648 byte(s)
Updated IPOPT build files to version 3.10, still need to test.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3
4 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
5 CFLAGS += -O0
6 else
7 CFLAGS += -O2
8 endif
9
10 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
11 INSTALL_PROGRAM += -s
12 endif
13
14 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
15 NUMJOBS = 2
16 MAKEFLAGS += -j$(NUMJOBS)
17 endif
18
19 INSTALLROOT=$(CURDIR)/debian/tmp
20
21 # shared library versions, option 1
22 major=0
23
24 build: build-stamp
25 build-stamp:
26 dh_testdir
27 cd ThirdParty/Mumps && ./get.Mumps
28
29 CC="ccache gcc" CXX="ccache g++" F77=gfortran ./configure --prefix=/usr --enable-static --enable-shared --with-blas-lib=/usr/lib/libblas.so --with-lapack-lib=/usr/lib/liblapack.so --enable-pkg-config=no
30
31 echo
32 echo "BUILD OPTIONS: $(DEB_BUILD_OPTIONS)"
33 echo
34
35 +make $(MAKEFLAGS)
36 touch build-stamp
37
38 clean:
39 dh_testdir
40 rm -f build-stamp
41 dh_clean
42
43 install: build
44 dh_testdir
45 # dh_testroot
46 dh_clean -k
47 dh_installdirs
48 mkdir -p $(INSTALLROOT)/usr
49 cd $(CURDIR) && make DESTDIR=$(INSTALLROOT) install
50 #
51 dh_install --fail-missing --sourcedir=$(INSTALLROOT)
52 #
53 dh_desktop
54 dh_installman
55
56 # Build architecture-independent files here.
57 binary-indep:
58 dh_testdir
59 dh_testroot
60
61 .PHONY: override_dh_strip
62 override_dh_strip:
63 dh_strip --dbg-package=libipopt-dbg
64
65 # Build architecture-dependent files here.
66 binary-arch: build install
67 dh_testdir
68 dh_testroot
69 dh_installchangelogs ChangeLog
70 dh_installdocs
71 dh_installexamples
72 dh_installman
73 dh_link
74 dh_strip
75 dh_compress
76 dh_fixperms
77 dh_makeshlibs
78 dh_installdeb
79 dh_shlibdeps
80 dh_gencontrol
81 dh_md5sums
82 dh_builddeb
83
84 binary: binary-indep binary-arch
85 .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22