Index: trunk/ippTools/src/Makefile.am
===================================================================
--- trunk/ippTools/src/Makefile.am	(revision 15537)
+++ trunk/ippTools/src/Makefile.am	(revision 15578)
@@ -6,13 +6,14 @@
 	dettool \
 	difftool \
+	flatcorr \
 	magictool \
 	pxadmin \
 	pxinject \
 	pzgetexp \
+	pzgetimfiles \
+	pztool \
 	regtool \
 	stacktool \
-	warptool \
-	pzgetimfiles \
-	pztool
+	warptool
 
 bin_SCRIPTS = \
@@ -20,32 +21,33 @@
 
 pkginclude_HEADERS = \
-	pxtoolsErrorCodes.h \
 	pxadmin.h \
+	pxcam.h \
+	pxchip.h \
+	pxconfig.h \
 	pxdata.h \
 	pxio.h \
+	pxregister.h \
 	pxtag.h \
-	pxregister.h \
-	pxchip.h \
-	pxcam.h \
-	pxconfig.h \
-	pxtree.h \
-	pxtools.h
+	pxtools.h \
+	pxtoolsErrorCodes.h \
+	pxtree.h 
 
 noinst_HEADERS = \
+	caltool.h \
 	camtool.h \
-	caltool.h \
 	chiptool.h \
 	detselect.h \
 	dettool.h \
 	difftool.h \
+	flatcorr.h \
 	guidetool.h \
 	magictool.h \
 	pxinject.h \
+	pzgetexp.h \
+	pzgetimfiles.h \
+	pztool.h \
 	regtool.h \
 	stacktool.h \
-	warptool.h \
-	pzgetexp.h \
-	pzgetimfiles.h \
-	pztool.h 
+	warptool.h
 
 lib_LTLIBRARIES = libpxtools.la
@@ -81,4 +83,10 @@
     caltool.c \
     caltoolConfig.c
+
+flatcorr_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
+flatcorr_LDADD = $(PSLIB_LIBS) $(PSMODULES_LIBS) $(IPPDB_LIBS) libpxtools.la
+flatcorr_SOURCES = \
+    flatcorr.c \
+    flatcorrConfig.c
 
 regtool_CFLAGS = $(PSLIB_CFLAGS) $(PSMODULES_CFLAGS) $(IPPDB_CFLAGS)
