Commit 1692704a authored by Roland Levillain's avatar Roland Levillain
Browse files

Generate a simple 3D points look-up table for the (26,6)-adjacency.

	* tools/Makefile.am (CLEANFILES): New.
	Add simple_point_3d_lut_26_6.txt and simple_point_3d_lut_26_6.hh.
	(simple_point_luts): New (phony) target.
	(simple_point_3d_lut_26_6.txt)
	(simple_point_3d_lut_26_6.hh):
	New targets.
parent 8c6f47af
2011-05-31 Roland Levillain <roland@lrde.epita.fr>
Generate a simple 3D points look-up table for the (26,6)-adjacency.
* tools/Makefile.am (CLEANFILES): New.
Add simple_point_3d_lut_26_6.txt and simple_point_3d_lut_26_6.hh.
(simple_point_luts): New (phony) target.
(simple_point_3d_lut_26_6.txt)
(simple_point_3d_lut_26_6.hh):
New targets.
2011-05-31 Roland Levillain <roland@lrde.epita.fr>
 
Parallel computation of simple 3D point look-up tables.
......@@ -52,3 +52,30 @@ EXTRA_PROGRAMS += simple_point_3d_lut_tbb
simple_point_3d_lut_tbb_SOURCES = simple_point_3d_lut_tbb.cc
simple_point_3d_lut_tbb_CPPFLAGS = $(AM_CPPFLAGS) $(CPPFLAGS_TBB)
simple_point_3d_lut_tbb_LDFLAGS = $(LDFLAGS_TBB)
# Simple point look-up tables (LUTs).
.PHONY: simple_point_luts
simple_point_luts: simple_point_3d_lut_26_6.hh
CLEANFILES = simple_point_3d_lut_26_6.txt
# Careful, there is no dependency on the generator (on purpose,
# because regenerating these files takes time).
simple_point_3d_lut_26_6.txt:
./simple_point_3d_lut_tbb$(EXEEXT) 26_6 >$@
CLEANFILES += simple_point_3d_lut_26_6.hh
## FIXME: Add copyright headers, guards and documentation (and
## declaration/definition separation). It may be a good idea to move
## the action of this target into own file (outside this Makefile).
# The sed scripts remove the last (empty) line as well as the last
# comma, and add some identation.
simple_point_3d_lut_26_6.hh: simple_point_3d_lut_26_6.txt
rm -f $@.tmp
{ \
set -e; \
echo " extern const unsigned char simple_point_3d_lut_26_6[] ="; \
echo " {"; \
sed -ne '$$!p' $< | sed -e 's/^/ /' -e '$$s/,$$//'; \
echo " };"; \
} >$@.tmp
mv $@.tmp $@
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment