"Fossies" - the Fresh Open Source Software Archive

Member "fimex-1.4.1/debian_xenial/rules" (30 Oct 2019, 1216 Bytes) of package /linux/privat/fimex-1.4.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/make -f
    2 # -*- makefile -*-
    3 
    4 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
    5 
    6 CFLAGS = -Wall -g
    7 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
    8     CFLAGS += -O0
    9 else
   10     CFLAGS += -O2 -ftree-vectorize -fno-math-errno
   11 endif
   12 # require SSE2 on i386(in preinst) until some autodetect code is written
   13 ifeq ($(DEB_HOST_ARCH),i386)
   14     CFLAGS  += -mfpmath=sse -msse2 -ftree-vectorize -fno-math-errno
   15 endif
   16 
   17 %:
   18     dh $@ --parallel
   19 
   20 .PHONY: override_dh_auto_configure
   21 override_dh_auto_configure:
   22     dh_auto_configure -- \
   23         -DBUILD_SHARED_LIBS=BOTH \
   24         -DENABLE_LOG4CPP=YES \
   25         -DENABLE_GRIBAPI=YES \
   26         -DENABLE_FORTRAN=YES \
   27         -DENABLE_FIMEX_OMP=YES \
   28         -DENABLE_PYTHON=YES \
   29         -DPython_ADDITIONAL_VERSIONS=3.5 \
   30         -DBOOST_PYTHON_COMPONENT=python-py35
   31 
   32 .PHONY: override_dh_auto_install
   33 override_dh_auto_install:
   34     dh_auto_install
   35     cd debian/tmp/usr/bin && for p in *0.23; do ln -s $$p $${p%-0.23}; done
   36     cd debian/tmp/usr/share && ln -s fimex-0.23 fimex
   37     cd debian/tmp/usr/include && ln -s fimex-0.23/fimex fimex
   38 
   39 ifeq ($(DEB_HOST_ARCH),i386)
   40 .PHONY: override_dh_auto_test
   41 override_dh_auto_test:
   42     true
   43 endif
   44 
   45 .PHONY: override_dh_strip
   46 override_dh_strip:
   47     dh_strip --dbg-package=fimex-0.23-dbg