--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,7 @@
 	  optimize.c morpher.c Triangulate.c \
 	  seamer.c hdrfile.c rgbe.c rgbe.h \
 	  tiff.c ZComb.c jpeg.c png.c  multilayer.c sys_common.c PTcommon.c ColourBrightness.c\
-	  metadata.c jpegicc.c ptstitch.c ptfeather.c PaniniGeneral.c
+	  metadata.c jpegicc.c ptstitch.c ptfeather.c PaniniGeneral.c PaniniGeneral.h
 
 if HasJava
 JAVA_SRC = ptpicker.c pteditor.c