X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2FMakefile.am;h=c9804423546fe9d198f5b6a418cd6d1b5570a053;hb=ba7ff1a7a78b3aa7c2cad9bfce117256638938b1;hp=1c8beaf1b3ea800911675b8e62371cf5bc8c1174;hpb=a78a174393ff9c8dbc0d5212576507f25d7e9bf1;p=emu8051.git diff --git a/src/Makefile.am b/src/Makefile.am index 1c8beaf..c980442 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,27 +3,60 @@ INCLUDES = \ -I$(top_srcdir) \ -I$(top_srcdir)/pixmaps \ + $(GLIB_CFLAGS) \ $(GTK_CFLAGS) -bin_PROGRAMS = emu8051 +LDADD = $(GLIB_LIBS) -# 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 \ + app-config.c app-config.h \ + hexfile.c \ + hexfile.h \ + cpu8051.c \ + cpu8051.h \ + memory.c \ + memory.h \ + common.h \ + reg8051.h if USE_GTK - emu8051_SOURCES += emugtk.c memwin.c pgmwin.c regwin.c filemenu.c viewmenu.c helpmenu.c messagebox.c - emu8051_LDADD = $(GTK_LIBS) -else - emu8051_SOURCES += emuconsole.c keyboard.c + bin_PROGRAMS += emu8051-gtk + + emu8051_gtk_SOURCES = \ + $(common_SOURCES) \ + emugtk.c \ + emugtk.h \ + memwin.c \ + memwin.h \ + pgmwin.c \ + pgmwin.h \ + regwin.c \ + regwin.h \ + filemenu.c \ + filemenu.h \ + viewmenu.c \ + viewmenu.h \ + helpmenu.c \ + helpmenu.h \ + messagebox.c \ + messagebox.h + + emu8051_gtk_LDADD = $(GTK_LIBS) endif -# These headers will be included in the distribution tarball, but will not be -# installed by 'make install' -noinst_HEADERS = common.h emugtk.h memwin.h pgmwin.h regwin.h filemenu.h viewmenu.h helpmenu.h \ - messagebox.h options.h hexfile.h cpu8051.h memory.h reg8051.h gtksizes.h \ - keyboard.h +emu8051_cli_SOURCES = \ + $(common_SOURCES) \ + emuconsole.c \ + keyboard.c \ + keyboard.h # These files are generated automatically by a perl script. instructions_8051.c instructions_8051.h disasm.h : opcode2c.pl opcodes.lst @@ -33,6 +66,14 @@ CLEANFILES = *~ DISTCLEANFILES = .deps/*.P -MAINTAINERCLEANFILES = Makefile.in instructions_8051.c instructions_8051.h disasm.h +MAINTAINERCLEANFILES = \ + Makefile.in \ + instructions_8051.c \ + instructions_8051.h \ + disasm.h -EXTRA_DIST = opcode2c.pl opcodes.lst instructions_8051.h disasm.h +EXTRA_DIST = \ + opcode2c.pl \ + opcodes.lst \ + instructions_8051.h \ + disasm.h