Commit 6f64b13d authored by Julian Kranz's avatar Julian Kranz

Automake (VBUILD)

parent 6df26008
......@@ -149,7 +149,9 @@ RUNTIME = $(srcdir)/detail/codegen/c0/runtime.h \
$(MLANTLR) $<
GDSLC = $(abspath $(CURDIR)/gdslc$(EXEEXT))
GDSLC_DEP = gdslc$(EXEEXT) detail/codegen/c1/runtime.c detail/codegen/c1/runtime.h
#GDSLC_DEP = gdslc$(EXEEXT) detail/codegen/c1/runtime.c detail/codegen/c1/runtime.h
GDSLC_DEP = gdslc$(EXEEXT)
GDSLFLAGS = --runtime=$(srcdir)/detail/codegen/c1
# the decoders
......@@ -347,7 +349,7 @@ pre-build:
mkdir -p $(BDIRS)
$(JAR): pre-build $(JSOURCES:%=libs/jrreil/%)
cd $(srcdir)/libs/jrreil && javac $(JSOURCES) -d ../../$(BPRE)/
ABS_DST=$$(pwd)/$(BPRE) && cd $(srcdir)/libs/jrreil && javac $(JSOURCES) -d $$ABS_DST/
jar -cf $@ $(JSOURCES:$(SPRE)/%.java=-C $(BPRE) %.class)
endif
......
......@@ -77,16 +77,14 @@ case $with_frontend in
*) has_x86=no;;
esac
has_anon_members=yes
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[;]],
[[struct inge { union { int a; int b }; }; struct inge i; i.a = 42;]])],
[[struct inge { union { int a; int b }; }; struct inge i; i.a = 42;]])], [has_anon_members=yes],
has_anon_members=no)
has_open_memstream=yes
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
[[#include <stdio.h>]],
[[char *c, size_t s, FILE *f = open_memstream(&c, &s);]])],
[[char *c; size_t s; FILE *f = open_memstream(&c, &s);]])], [has_open_memstream=yes],
has_open_memstream=no)
AC_CHECK_HEADERS([gelf.h], [has_elf=yes], [has_elf=no])
......
......@@ -89,11 +89,11 @@ in
detail/codegen/codegen-control.sml
detail/codegen/codegen-mangle.sml
detail/codegen/c0/c0.sml
(* detail/codegen/c0/c0.sml*)
detail/codegen/c1/c1.sml
detail/codegen/js0/javascript-sig.sml
detail/codegen/js0/javascript.sml
detail/codegen/js0/js0.sml
(* detail/codegen/js0/js0.sml*)
detail/codegen/codegen-passes.sml
detail/driver/main.sml
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment