[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: An unwanted link to a library getting generated automatically



here is my rules file


#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of
dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1


# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)


CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
	INSTALL_PROGRAM += -s
endif

configure-stamp: 
	dh_testdir
	-rm -f config.sub config.guess
	ln -s /usr/share/misc/config.sub config.sub
	ln -s /usr/share/misc/config.guess config.guess
	autoconf
	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE)
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr/local --enable-static 
	touch configure-stamp

configure: configure-stamp

build: build-arch build-indep

build-indep: build-indep-stamp


clean:
	dh_testdir
	dh_testroot
	-$(MAKE) distclean
	-rm -f configure-stamp build-arch-stamp build-indep-stamp
	-rm -f config.sub config.guess config.status config.cache
	-rm -f configure
	dh_clean



# Build architecture-independent files here.
binary-indep: build-indep-stamp install-indep
# We have nothing to do by default.
build-indep-stamp: build-arch-stamp
	dh_testdir
	touch build-indep-stamp

install-indep: build-indep-stamp

# Build architecture-dependent files here.
binary-arch: build-arch-stamp install-arch
	dh_makeshlibs -plibamrnb0 -V'libamrnb0 (>> 0.0.1)'
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a -v 

build-arch-stamp: configure-stamp	
	dh_testdir
	$(MAKE) CFLAGS="$(CFLAGS)"
	touch build-arch-stamp

install-arch: build-arch-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
	dh_installdirs -a
	dh_install -a
	dh_strip -a
	dh_link -a libamrnb.so libamrnb.so.0.0.0
	dh_link -a libamrnb.so.0 libamrnb.so.0.0.0
	dh_compress -a


binary: binary-indep binary-arch
.PHONY: configure build-arch build-indep build clean binary-indep
binary-arch binary install-arch install-indep 
-- 
View this message in context: http://www.nabble.com/An-unwanted-link-to-a-library-getting-generated-automatically-tf4574144.html#a13095218
Sent from the Debian Embedded mailing list archive at Nabble.com.



Reply to: