+2010-08-04 Klaus Treichel <ktreichel@web.de>
+
+ * include/jit/Makefile.am: Don't include jit-arch.h in the
+ distribution.
+
+ * tools/gen-apply.c: Include a local copy of jit-arch.h instead of
+ the one in the include dir because that one is not yet present in
+ the build process.
+
+ * tools/Makefile.am: Create a local symbolic link jit-arch.h to
+ the arch specific header in the include dir.
+
2010-08-03 Klaus Treichel <ktreichel@web.de>
* Makefile.am: Add config to the subdirectories.
BUILT_SOURCES = jit-arch.h jit-opcode.h
libjitincludedir = $(includedir)/jit
-libjitinclude_HEADERS = \
+dist_libjitinclude_HEADERS = \
jit.h \
- jit-arch.h \
jit-apply.h \
jit-block.h \
jit-common.h \
jit-value.h \
jit-walk.h
+nodist_libjitinclude_HEADERS = \
+ jit-arch.h
+
noinst_HEADERS = jit-arch-generic.h jit-arch-x86.h jit-arch-x86-64.h
DISTCLEANFILES = jit-arch.h jit-defs.h jit-opcode.h
+ARCH_HEADER = jit-arch-@JIT_ARCH@.h
+
+BUILT_SOURCES = jit-arch.h
noinst_PROGRAMS = gen-apply gen-rules gen-ops
noinst_HEADERS = gen-apply-macosx.h
-gen_apply_SOURCES = gen-apply.c
+dist_gen_apply_SOURCES = gen-apply.c
+
+nodist_gen_apply_SOURCES = jit-arch.h
gen_rules_SOURCES = gen-rules-parser.y gen-rules-scanner.l
AM_YFLAGS = -d
+jit-arch.h: $(top_srcdir)/include/jit/$(ARCH_HEADER)
+ rm -f $@
+ $(LN_S) $(top_srcdir)/include/jit/$(ARCH_HEADER) $@
+
gen-rules-scanner.l: gen-rules-parser.c
gen-ops-scanner.l: gen-ops-parser.c
AM_CFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include \
-I$(top_srcdir)/jit -I$(top_builddir)/jit
-CLEANFILES = $(top_builddir)/jit/jit-apply-rules.h \
- gen-rules-parser.c gen-rules-parser.h gen-rules-scanner.c
+CLEANFILES = $(top_builddir)/jit/jit-apply-rules.h jit-arch.h \
+ gen-rules-parser.c gen-rules-parser.h gen-rules-scanner.c \
+ gen-ops-parser.c gen-ops-parser.h gen-ops-scanner.c
* <http://www.gnu.org/licenses/>.
*/
-#include <jit/jit-arch.h>
+#include "jit-arch.h"
#include <jit/jit-defs.h>
#if defined(__APPLE__) && defined(__MACH__)