Index: trunk/psphot/src/Makefile.am
===================================================================
--- trunk/psphot/src/Makefile.am	(revision 6851)
+++ trunk/psphot/src/Makefile.am	(revision 7337)
@@ -1,5 +1,6 @@
-# lib_LTLIBRARIES = libpsphot.la
-# libpsphot_la_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
-# libpsphot_la_LDFLAGS = $(PSMODULE_LIBS) $(PSLIB_LIBS)
+lib_LTLIBRARIES = libpsphot.la
+libpsphot_la_CPPFLAGS = $(PSLIB_CFLAGS) $(PSMODULE_CFLAGS) $(psphot_CFLAGS)
+libpsphot_la_LDFLAGS = $(PSMODULE_LIBS) $(PSLIB_LIBS)
+libpsphot_la_SOURCES = $(psphot_SOURCES)
 
 bin_PROGRAMS = psphot
@@ -13,4 +14,5 @@
 psphot_SOURCES =		\
 	psphot.c		\
+	errorCodes.c		\
 	psphotModelGroupInit.c	\
 	psphotArguments.c	\
@@ -52,2 +54,10 @@
 tags:
 	etags `find . -name \*.[ch] -print`
+#
+# Error codes.
+#
+psphotErrorCodes.h : errorCodes.dat psphotErrorCodes.h.in
+	$(PSLIB_DIR)/bin/psParseErrorCodes --data=errorCodes.dat --outdir=. \
+						psphotErrorCodes.h
+errorCodes.c : errorCodes.dat errorCodes.c.in psphotErrorCodes.h
+	$(PSLIB_DIR)/bin/psParseErrorCodes --data=errorCodes.dat --outdir=. errorCodes.c
