]> Untitled Git - emu8051.git/commitdiff
Cleanup of autoconf files
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Apr 2014 04:19:49 +0000 (00:19 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 9 Apr 2014 04:19:49 +0000 (00:19 -0400)
configure.ac
src/cli/Makefile.am
src/common/Makefile.am
src/gtk/Makefile.am

index e24e29c0f603cf3c73d5778b54042dc7e694724e..f0d08ea926c7aa26fea0a7d258b295da6a7368fb 100644 (file)
@@ -125,7 +125,6 @@ else
 fi
 
 AC_SUBST(WARNINGCFLAGS)
-AC_SUBST(LIBS)
 AC_SUBST(ac_aux_dir)
 
 dnl Creating output file(s)
index d78b89e4225a19f72dd16ff5112c601dca85c96c..692df69851b99109dfcce21806e124a18a31689d 100644 (file)
@@ -2,8 +2,8 @@
 
 AM_CPPFLAGS = \
     $(WARNINGCFLAGS) \
-    -I@top_srcdir@ \
-    -I@top_srcdir@/src/common
+    -I$(top_srcdir)/src/common \
+    -I$(top_builddir)/src/common
 
 # Option -d: produce header file scanner.h
 AM_LFLAGS = --header-file=scanner.h
index 267c498e382c6135d39dc223f76e3aff85787ac1..68f81913f50264e671a5fbda32999447f960f595 100644 (file)
@@ -1,40 +1,48 @@
 # This file is processed by GNU automake to generate Makefile.in
 
 AM_CPPFLAGS = \
-       $(WARNINGCFLAGS) \
-       -I$(top_srcdir)
+    $(WARNINGCFLAGS) \
+    -I$(builddir)
+
+VPATH = $(srcdir) $(builddir)
 
 noinst_LIBRARIES = libemu8051.a
 
+BUILT_SOURCES = \
+    instructions_8051.c instructions_8051.h \
+    opcodes.h opcodes.c
+
+PERL_SOURCES = \
+    opcodes2c.pl \
+    opcodes.lst
+
 libemu8051_a_SOURCES = \
-       instructions_8051.c instructions_8051.h \
-       opcodes.c opcodes.h \
-       options.c options.h \
-       log.c log.h \
-       hexfile.c hexfile.h \
-       cpu8051.c cpu8051.h \
-       memory.c memory.h \
-       psw.c psw.h \
-       sfr.c sfr.h \
-       operations.c operations.h \
-       timers.c timers.h \
-       common.h \
-       reg8051.h
+    options.c options.h \
+    log.c log.h \
+    hexfile.c hexfile.h \
+    cpu8051.c cpu8051.h \
+    memory.c memory.h \
+    psw.c psw.h \
+    sfr.c sfr.h \
+    operations.c operations.h \
+    timers.c timers.h \
+    common.h \
+    reg8051.h
+
+nodist_libemu8051_a_SOURCES = \
+    $(BUILT_SOURCES)
 
 # These files are generated automatically by a perl script.
-instructions_8051.c instructions_8051.h opcodes.h opcodes.c : opcodes2c.pl opcodes.lst
+$(BUILT_SOURCES) : $(PERL_SOURCES)
        @echo "  PERL     opcodes2c.pl"
-       @./opcodes2c.pl
+       @$(srcdir)/opcodes2c.pl $(srcdir)/opcodes.lst $(builddir)
 
-CLEANFILES = *~
+CLEANFILES = \
+    *~ \
+    $(BUILT_SOURCES)
 
 MAINTAINERCLEANFILES = \
-       Makefile.in \
-       instructions_8051.c \
-       instructions_8051.h \
-       opcodes.h \
-       opcodes.c
+    Makefile.in
 
 EXTRA_DIST = \
-       opcodes2c.pl \
-       opcodes.lst
+    $(PERL_SOURCES)
index 989906d21d83b20fc25346110be2ac0cf5c000d9..7b819694725c8aa7eb00c2c9829d5e17f017ef9a 100644 (file)
@@ -2,9 +2,9 @@
 
 AM_CPPFLAGS = \
     $(WARNINGCFLAGS) \
-    -I@top_srcdir@ \
-    -I@top_srcdir@/src/common \
     -I$(top_srcdir)/pixmaps \
+    -I$(top_srcdir)/src/common \
+    -I$(top_builddir)/src/common \
     @GTK_CFLAGS@ \
     @GLIB_CFLAGS@ \
     -DDATADIR=\"$(datadir)\" \
@@ -33,8 +33,6 @@ emu8051_gtk_SOURCES = \
     helpmenu.c helpmenu.h \
     messagebox.c messagebox.h
 
-EXTRA_DIST =
-
 CLEANFILES = *~
 
 MAINTAINERCLEANFILES = Makefile.in