.EXPORT_ALL_VARIABLES:
-VERSION = 0
-SUBVERSION = 7
-SUBSUBVERSION = 10
-
-VERSION_CODE = ${VERSION}.${SUBVERSION}.${SUBSUBVERSION}
+include version
+MAJOR=0
CFLAGS = -Wall -O2
install -d ${INSTALLDIR}/include
(cd include;install -m 644 comedilib.h ${INSTALLDIR}/include)
(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 lib/libcomedi.so.${MAJOR} ${INSTALLDIR_LIB}
+ (cd $(INSTALLDIR_LIB);ln -s libcomedi.so.${version} libcomedi.so.${MAJOR})
+ (cd $(INSTALLDIR_LIB);ln -s libcomedi.so.${version} libcomedi.so)
install -m 644 lib/libcomedi.a ${INSTALLDIR_LIB}
#/sbin/ldconfig -n ${INSTALLDIR}/lib
install -d ${INSTALLDIR_DOC}
export DH_COMPAT=1
# shared library versions, option 1
-version=0.7.8
+include version
+#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.* | \
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.0 -o libcomedi.so.${VERSION_CODE} $(OBJS) -lm
+ gcc -shared -Wl,-soname,libcomedi.so.0 -o libcomedi.so.${version} $(OBJS) -lm
ar rs libcomedi.a $(OBJS)
- ln -sf libcomedi.so.${VERSION_CODE} libcomedi.so
- ln -sf libcomedi.so.${VERSION_CODE} libcomedi.so.0
+ ln -sf libcomedi.so.${version} libcomedi.so
+ ln -sf libcomedi.so.${version} libcomedi.so.0
clean:
rm -f libcomedi.a libcomedi.so* *.o