[SCM] Package for Analyzing Lattice Polytopes branch, master, updated. upstream/2.1-30-g7d530d4

Julien Puydt julien.puydt at laposte.net
Fri Jul 5 04:59:03 UTC 2013


The following commit has been merged in the master branch:
commit 6fcd23aaf2f9d76d678cd16f1b2352dd909bb298
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Jul 4 21:45:31 2013 +0200

    Build four different versions of the executables and symlink one (like sage)

diff --git a/debian/GNUmakefile.am b/debian/GNUmakefile.am
index aaad603..685c9a5 100644
--- a/debian/GNUmakefile.am
+++ b/debian/GNUmakefile.am
@@ -1,13 +1,67 @@
-bin_PROGRAMS = poly.x class.x cws.x nef.x mori.x
+bin_PROGRAMS = \
+	poly-4d.x class-4d.x cws-4d.x nef-4d.x mori-4d.x \
+	poly-5d.x class-5d.x cws-5d.x nef-5d.x mori-5d.x \
+	poly-6d.x class-6d.x cws-6d.x nef-6d.x mori-6d.x \
+	poly-11d.x class-11d.x cws-11d.x nef-11d.x mori-11d.x
 
 COMMONS = Coord.c Rat.c Vertex.c Polynf.c
 
-poly_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+poly_4d_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+poly_4d_x_CFLAGS = -DPOLY_Dmax=4
 
-class_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+class_4d_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+class_4d_x_CFLAGS = -DPOLY_Dmax=4
 
-cws_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+cws_4d_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+cws_4d_x_CFLAGS = -DPOLY_Dmax=4
 
-nef_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+nef_4d_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+nef_4d_x_CFLAGS = -DPOLY_Dmax=4
 
-mori_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
\ No newline at end of file
+mori_4d_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
+mori_4d_x_CFLAGS = -DPOLY_Dmax=4
+
+poly_5d_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+poly_5d_x_CFLAGS = -DPOLY_Dmax=5
+
+class_5d_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+class_5d_x_CFLAGS = -DPOLY_Dmax=5
+
+cws_5d_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+cws_5d_x_CFLAGS = -DPOLY_Dmax=5
+
+nef_5d_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+nef_5d_x_CFLAGS = -DPOLY_Dmax=5
+
+mori_5d_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
+mori_5d_x_CFLAGS = -DPOLY_Dmax=5
+
+poly_6d_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+poly_6d_x_CFLAGS = -DPOLY_Dmax=6
+
+class_6d_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+class_6d_x_CFLAGS = -DPOLY_Dmax=6
+
+cws_6d_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+cws_6d_x_CFLAGS = -DPOLY_Dmax=6
+
+nef_6d_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+nef_6d_x_CFLAGS = -DPOLY_Dmax=6
+
+mori_6d_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
+mori_6d_x_CFLAGS = -DPOLY_Dmax=6
+
+poly_11d_x_SOURCES = $(COMMONS) poly.c LG.c LG.h
+poly_11d_x_CFLAGS = -DPOLY_Dmax=11
+
+class_11d_x_SOURCES = $(COMMONS) class.c Subpoly.c Subadd.c Subdb.c Global.h Subpoly.h
+class_11d_x_CFLAGS = -DPOLY_Dmax=11
+
+cws_11d_x_SOURCES = $(COMMONS) cws.c LG.c Global.h LG.h
+cws_11d_x_CFLAGS = -DPOLY_Dmax=11
+
+nef_11d_x_SOURCES = $(COMMONS) nef.c E_Poly.c Nefpart.c LG.c Global.h
+nef_11d_x_CFLAGS = -DPOLY_Dmax=11
+
+mori_11d_x_SOURCES = $(COMMONS) mori.c MoriCone.c SingularInput.c LG.c Mori.h
+mori_11d_x_CFLAGS = -DPOLY_Dmax=11
diff --git a/debian/rules b/debian/rules
index 2dacef8..2db3def 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,5 @@
 #!/usr/bin/make -f
 
-export DEB_CFLAGS_MAINT_APPEND=-DPOLY_Dmax=11
-
 %:
 	dh $@ --with autoreconf
 
@@ -12,3 +10,12 @@ override_dh_autoreconf:
 
 override_dh_auto_build:
 	dh_auto_build -- V=1
+
+override_dh_auto_install:
+	dh_auto_install
+	dh_link usr/bin/class-6d.x usr/bin/class.x
+	dh_link usr/bin/cws-6d.x usr/bin/cws.x
+	dh_link usr/bin/mori-6d.x usr/bin/mori.x
+	dh_link usr/bin/nef-6d.x usr/bin/nef.x
+	dh_link usr/bin/poly-6d.x usr/bin/poly.x
+

-- 
Package for Analyzing Lattice Polytopes



More information about the debian-science-commits mailing list