Guest User

Untitled

a guest
Apr 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 4.00 KB | None | 0 0
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Sample debian/rules that uses debhelper.
  4. # This file was originally written by Joey Hess and Craig Small.
  5. # As a special exception, when this file is copied by dh-make into a
  6. # dh-make output file, you may use that output file without restriction.
  7. # This special exception was added by Craig Small in version 0.37 of dh-make.
  8.  
  9. # Uncomment this to turn on verbose mode.
  10. #export DH_VERBOSE=1
  11.  
  12.  
  13. # These are used for cross-compiling and for saving the configure script
  14. # from having to guess our platform (since we know it already)
  15. DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
  16. DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
  17. ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
  18. CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
  19. else
  20. CROSS= --build $(DEB_BUILD_GNU_TYPE)
  21. endif
  22.  
  23.  
  24. # shared library versions, option 1
  25. version=2.0.5
  26. major=2
  27. # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
  28. #version=`ls src/.libs/lib*.so.* | \
  29. # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
  30. #major=`ls src/.libs/lib*.so.* | \
  31. # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
  32.  
  33. config.status: configure
  34.         dh_testdir
  35.         mkdir -p Build/
  36.         # Add here commands to configure the package.
  37. ifneq "$(wildcard /usr/share/misc/config.sub)" ""
  38.         cp -f /usr/share/misc/config.sub Build/config.sub
  39. endif
  40. ifneq "$(wildcard /usr/share/misc/config.guess)" ""
  41.         cp -f /usr/share/misc/config.guess Build/config.guess
  42. endif
  43.         cd Build/ && CFLAGS="-g -O2" CXXFLAGS="-g -O2" FCFLAGS="-g -O2" FFLAGS="-g -O2" ../configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="-g -O2" LDFLAGS="-Wl,-z,defs" \
  44.     --enable-mpi --with-mpi-compilers --with-gnumake --enable-zoltan --with-parmetis --enable-f90interface --enable-zoltan-cppdriver --disable-examples \
  45.     --with-parmetis-libdir=/usr/lib
  46.  
  47.  
  48. build: build-stamp
  49. build-stamp:  config.status
  50.         dh_testdir
  51.  
  52.         # Add here commands to compile the package.
  53.         cd Build/ && $(MAKE)
  54.  
  55.         touch $@
  56.  
  57. clean:
  58.         dh_testdir
  59.         dh_testroot
  60.         rm -f build-stamp
  61.  
  62.         # Add here commands to clean up after the build process.
  63.         [ ! -f Build/Makefile ] || ( cd Build/ && $(MAKE) distclean )
  64.         rm -f Build/config.sub Build/config.guess
  65.  
  66.         dh_clean  --exclude ./src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/Makefile.orig --exclude ./src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/Makefile.orig
  67.         find . -name makefile | xargs rm -f
  68.  
  69. install: build
  70.         dh_testdir
  71.         dh_testroot
  72.         dh_prep   --exclude ./src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/chaco/Makefile.orig --exclude ./src/util/converters_for_JPDC_adaptive_mesh_experiments/exo2chaco/Makefile.orig
  73.         dh_installdirs
  74.  
  75.         # Add here commands to install the package into debian/tmp
  76.         cd Build && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
  77.  
  78.  
  79. # Build architecture-independent files here.
  80. binary-indep: install
  81. # We have nothing to do by default.
  82.  
  83. # Build architecture-dependent files here.
  84. binary-arch: install
  85.         dh_testdir
  86.         dh_testroot
  87.         dh_installchangelogs
  88.         dh_installdocs
  89.         dh_installexamples
  90.         dh_install
  91. #       dh_installmenu
  92. #       dh_installdebconf
  93. #       dh_installlogrotate
  94. #       dh_installemacsen
  95. #       dh_installpam
  96. #       dh_installmime
  97. #       dh_installinit
  98. #       dh_installcron
  99. #       dh_installinfo
  100.         dh_installman
  101.         dh_link
  102. #       dh_strip
  103.         dh_compress
  104.         dh_fixperms
  105. #       dh_perl
  106. #       dh_python
  107. #       dh_makeshlibs
  108.         dh_installdeb
  109.         dh_shlibdeps
  110.         dh_gencontrol
  111.         dh_md5sums
  112.         dh_builddeb
  113.  
  114. binary: binary-indep binary-arch
  115. .PHONY: build clean binary-indep binary-arch binary install
Add Comment
Please, Sign In to add comment