DOCFILES= README INSTALL `find doc -type f`
-ifeq ($(CONFIG_USRLOCAL),y)
-INSTALLDIR=/usr/local
-else
-INSTALLDIR=/usr
-endif
+INSTALLDIR=$(DESTDIR)/usr
+INSTALLDIR_LIB=$(DESTDIR)/usr/lib
+INSTALLDIR_DOC=$(DESTDIR)/usr/doc/libcomedi
comedilib: subdirs
install: dummy
install -d ${INSTALLDIR}/include
(cd include;install -m 644 comedilib.h ${INSTALLDIR}/include)
- install lib/libcomedi.so.${VERSION_CODE} ${INSTALLDIR}/lib
- #ln -s ${INSTALLDIR}/lib/libcomedi.so.${VERSION_CODE} ${INSTALLDIR}/lib/libcomedi.so
- install -m 644 lib/libcomedi.a ${INSTALLDIR}/lib
- /sbin/ldconfig -n ${INSTALLDIR}/lib
- install -d ${INSTALLDIR}/doc/comedilib-${VERSION_CODE}
- install ${DOCFILES} ${INSTALLDIR}/doc/comedilib-${VERSION_CODE}
+ (cd include;install -m 644 comedi.h ${INSTALLDIR}/include)
+ install lib/libcomedi.so.${VERSION_CODE} ${INSTALLDIR_LIB}
+ (cd $(INSTALLDIR_LIB);ln -s libcomedi.so.${VERSION_CODE} libcomedi.so.${VERSION})
+ (cd $(INSTALLDIR_LIB);ln -s libcomedi.so.${VERSION_CODE} libcomedi.so)
+ install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB}
+ #/sbin/ldconfig -n ${INSTALLDIR}/lib
+ install -d ${INSTALLDIR_DOC}
+ install ${DOCFILES} ${INSTALLDIR_DOC}
lpr: dummy
find . -name '*.[chs]'|xargs enscript -2r -pit.ps
CFLAGS +=-I ../include -I . -O2 -Wall
-LDFLAGS=-L../lib/ -lcomedi
+LDFLAGS=-L../lib/ -lcomedi -lm
BINS=comedi_calibrate
all: $(BINS)
-$(patsubst %,_bins_%,$(BINS)) : dummy
- $(CC) -o $(patsubst _bins_%,%,$@) $(patsubst _bins_%,%.o,$@) $(LDFLAGS)
+comedi_calibrate: comedi_calibrate.o
+ $(CC) -o comedi_calibrate comedi_calibrate.o $(LDFLAGS)
clean:
-rm *.o $(BINS)
--- /dev/null
+comedilib (0.7.9-1) unstable; urgency=low
+
+ * Initial Release.
+
+ -- David Schleef <ds@stm.lbl.gov> Tue, 28 Mar 2000 11:44:42 -0800
+
+Local variables:
+mode: debian-changelog
+End:
--- /dev/null
+usr/lib/*.so.*
--- /dev/null
+Source: comedilib
+Section: devel
+Priority: optional
+Maintainer: David Schleef <ds@stm.lbl.gov>
+Standards-Version: 3.0.1
+
+Package: libcomedi-dev
+Architecture: any
+Depends: libcomedi0 (= ${Source-Version}), libc6-dev
+Description: Development libary for Comedi
+ Comedilib is a library for using Comedi, a driver interface for data
+ acquisition hardware.
+
+Package: libcomedi0
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Library for Comedi
+ Comedilib is a library for using Comedi, a driver interface for data
+ acquisition hardware.
--- /dev/null
+This package was debianized by David Schleef <ds@stm.lbl.gov> on
+Tue, 28 Mar 2000 11:44:42 -0800.
+
+It was downloaded from ftp://stm.lbl.gov/pub/comedi.
+
+Upstream Author(s): David Schleef <ds@stm.lbl.gov>
+
+Copyright:
+
+LGPL
--- /dev/null
+usr/lib
+usr/include
+usr/share/doc
--- /dev/null
+INSTALL
+README
--- /dev/null
+Document: comedilib
+Title: Debian comedilib Manual
+Author: <insert document author here>
+Abstract: This manual describes what comedilib is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/doc/comedilib/comedilib.sgml.gz
+
+Format: postscript
+Files: /usr/doc/comedilib/comedilib.ps.gz
+
+Format: text
+Files: /usr/doc/comedilib/comedilib.text.gz
+
+Format: HTML
+Index: /usr/doc/comedilib/html/index.html
+Files: /usr/doc/comedilib/html/*.html
+
+
--- /dev/null
+#!/bin/sh
+
+if [ "$1" = "configure" ]; then
+ echo /sbin/ldconfig
+fi
+
--- /dev/null
+libcomedi 0.7.9 comedilib (>> 0.7.9-0), comedilib (<< 0.7.9-99)
--- /dev/null
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatability version to use.
+export DH_COMPAT=1
+
+# shared library versions, option 1
+version=0.7.8
+major=0
+# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
+#version=`ls lib/lib*.so.* | \
+# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
+#major=`ls lib/lib*.so.* | \
+# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+
+
+ # Add here commands to compile the package.
+ $(MAKE)
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) distclean
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/tmp.
+ $(MAKE) install DESTDIR=`pwd`/debian/tmp
+ (cd debian/tmp;mv usr/doc/libcomedi usr/share/doc/libcomedi-dev;rmdir usr/doc)
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+# dh_testversion
+ dh_testdir
+ dh_testroot
+ #
+ # build libcomedi${major} package by moving files from comedilib-dev
+ #
+ dh_movefiles -plibcomedi$(major) \
+ usr/lib/libcomedi.so.$(version) \
+ usr/lib/libcomedi.so.$(major)
+
+# dh_installdebconf
+ dh_installdocs
+ dh_installexamples
+ dh_installmenu
+# dh_installemacsen
+# dh_installpam
+# dh_installinit
+ dh_installcron
+ dh_installmanpages
+ dh_installinfo
+# dh_undocumented
+ dh_installchangelogs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ # You may want to make some executables suid here.
+ dh_suidregister
+ dh_makeshlibs
+ dh_installdeb
+# dh_perl
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
CFLAGS +=-I ../include -I . -O2
-LDFLAGS=-L../lib/ -lcomedi
+LDFLAGS=-L../lib/ -lcomedi -lm
BINS=mode4 mode3 mode2 ao_waveform tut2 cmd tut1
libcomedi.a: $(OBJS)
#gcc -shared -Wl,-soname,libcomedi.so,-T,version_script -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
- gcc -shared -Wl,-soname,libcomedi.so -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
+ gcc -shared -Wl,-soname,libcomedi.so.0 -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
ar rs libcomedi.a $(OBJS)
ln -sf libcomedi.so.${VERSION_CODE} libcomedi.so
+ ln -sf libcomedi.so.${VERSION_CODE} libcomedi.so.0
clean:
rm -f libcomedi.a libcomedi.so* *.o