-emu8051_SOURCES = EmuGtk.hpp EmuGtk.cpp CPU8051.hpp CPU8051.cpp Memory.hpp Memory.cpp \
- MemWin.hpp MemWin.cpp PgmWin.hpp PgmWin.cpp RegWin.hpp RegWin.cpp
+# 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 emugtk.c memwin.c pgmwin.c regwin.c filemenu.c \
+ viewmenu.c helpmenu.c messagebox.c options.c hexfile.c cpu8051.c memory.c