Cleanup of autoconf files
[emu8051.git] / src / cli / Makefile.am
index ac87424..692df69 100644 (file)
@@ -2,13 +2,17 @@
 
 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
 
 # Option -d: produce header file parser.h
 AM_YFLAGS = -d
 
 LDADD = \
+    $(LIBREADLINE) \
     $(top_builddir)/src/common/libemu8051.a
 
 bin_PROGRAMS = emu8051-cli