-# instructions_8051.c must be first, because it and other files (instructions_8051.h and
-# disasm.h) are automatically generated by a perl script, and other source files include
-# them (the .h).
-emu8051_SOURCES = instructions_8051.c options.c hexfile.c cpu8051.c memory.c
+bin_PROGRAMS = emu8051-cli
+
+# instructions_8051.c must be first, because it and other files
+# (instructions_8051.h and disasm.h) are automatically generated by a perl
+# script, and other source files include them (the .h).
+common_SOURCES = \
+ instructions_8051.c \
+ options.c \
+ options.h \
+ log.c log.h \
+ app-config.c app-config.h \
+ hexfile.c \
+ hexfile.h \
+ cpu8051.c \
+ cpu8051.h \
+ memory.c \
+ memory.h \
+ common.h \
+ reg8051.h