Index: trunk/pois/src/Makefile.am
===================================================================
--- trunk/pois/src/Makefile.am	(revision 3792)
+++ trunk/pois/src/Makefile.am	(revision 3796)
@@ -1,5 +1,5 @@
 AM_CFLAGS = @pois_CFLAGS@
 
-include_HEADERS = pois.h
+include_HEADERS = pois.h poisErrorCodes.h
 
 AM_CFLAGS  += $(PSLIB_CFLAGS)
@@ -9,4 +9,7 @@
 #noinst_PROGRAMS = pois
 lib_LTLIBRARIES = libpois.la
+
+BUILT_SOURCES = \
+	poisErrorCodes.h errorCodes.c
 
 pois_SOURCES = \
@@ -29,5 +32,17 @@
 	poisStamp.c \
 	poisRejectStamps.c \
-	poisSolveEquation.c
+	poisSolveEquation.c \
+	poisMaskOps.c \
+	errorCodes.c
+
+#
+# Error codes
+#
+poisErrorCodes.h : errorCodes.dat errorCodes-skl.h
+	parseErrorCodes.pl --data=errorCodes.dat --outfile=poisErrorCodes.h \
+			errorCodes-skl.h
+errorCodes.c : errorCodes.dat errorCodes-skl.c poisErrorCodes.h
+	parseErrorCodes.pl --data=errorCodes.dat --outfile=errorCodes.c \
+			errorCodes-skl.c
 #
 # test program
