Index: trunk/Ohana/src/libautocode/Makefile
===================================================================
--- trunk/Ohana/src/libautocode/Makefile	(revision 3593)
+++ trunk/Ohana/src/libautocode/Makefile	(revision 3609)
@@ -29,4 +29,5 @@
 # remember to add entries here to libohana/Makefile:AOBJ as well
 LIBOBJ = \
+$(SRC)/regimage.$(ARCH).o \
 $(SRC)/detreg.$(ARCH).o \
 $(SRC)/photreg.$(ARCH).o \
@@ -37,4 +38,5 @@
 
 LIBINC = \
+$(INC)/regimage.h \
 $(INC)/detreg.h \
 $(INC)/photreg.h \
@@ -44,11 +46,10 @@
 $(INC)/spectrum-ascii.h
 
-COMINC = \
-$(DEF)/common.h
-
 $(LIBOBJ): $(INC)/autocode.h
 
 $(INC)/autocode.h: $(LIBINC)
-	cat $(COMINC) $(LIBINC) > $(INC)/autocode.h
+	cat $(DEF)/common.h >  $(INC)/autocode.h
+	cat $(LIBINC)       >> $(INC)/autocode.h
+	@echo "# endif"     >> $(INC)/autocode.h
 	@echo done with libautocode.a:
 
