 +list(APPEND ${lib_name}_libsrcs ${ec_srcs})
 +##########
 +set(ec_extra # in directory, not in build.info
-+  ec/ecp_nistz256.c
-+  ec/ecp_nistz256_table.c
++  ec/ecp_nistz256_table.c # TODO libsrcs?
 +  )
 +list(APPEND ec_extra # TODO asm
 +  ec/asm/ecp_nistz256-armv4.pl

+else()
+  string(TIMESTAMP BUILDINF_DATE "%a %b %d %Y UTC" UTC)
+endif()
+set(compilerFlags "compiler: ") #"${CMAKE_C_COMPILER} ${CMAKE_CXX_FLAGS}"
+string(LENGTH ${compilerFlags} lenFlags)
+math(EXPR maxPos ${lenFlags}-1)
+foreach(pos RANGE ${maxPos})

+  if(filesys)
+    message(FATAL_ERROR "files not in cmake: ${filesys}")
+  endif()
+  foreach(f ${files})
+    get_filename_component(absPath ${f} ABSOLUTE)
+    if(NOT absPath MATCHES CMAKE_CURRENT_LIST_DIR)
+      # remove any files that aren't under CMAKE_CURRENT_LIST_DIR
+      list(REMOVE_ITEM files ${f})
+    endif()
+  endforeach()
+  if(files)
+    message(FATAL_ERROR "files not in repo, but in cmake: ${files}")
+  endif()
