summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
-rw-r--r--src/Makefile.am8
2 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index a5fdbf2..c60a89f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -14,14 +14,14 @@ AC_PROG_INSTALL
AC_PROG_LIBTOOL
dnl Check for GNU D Compiler
-CC=gdc
-AC_PATH_PROG(GDC, $CC, no)
+AC_PATH_PROG(GDC, "gdc", no)
if test "x$GDC" = "xno"; then
AC_MSG_ERROR([No D compiler found])
fi
AC_SUBST(GDC)
+AC_SUBST(DFLAGS, "-g -O2")
dnl TODO: Check for Phobos Library
diff --git a/src/Makefile.am b/src/Makefile.am
index 48a7307..c68ffec 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,12 +4,14 @@ bin_PROGRAMS = helloworld
helloworld_SOURCES = helloworld.d
helloworld_LDADD = $(DEPS_LIBS)
-helloworld_LINK = $(GDC) -o helloworld
+helloworld_LINK = $(GDC) $(DFLAGS) -o helloworld $(top_srcdir)/config.d
AM_CPPFLAGS = $(DEPS_CFLAGS)
.d.o:
- $(GDC) $(DFLAGS) -c -o $@ $<
+ $(GDC) $(DFLAGS) -I$(top_srcdir) -c -o $@ $<
.d.so:
- $(GDC) $(DFLAGS) -c -shared -fPIC -o $@ $<
+ $(GDC) $(DFLAGS) -I$(top_srcdir) -c -shared -fPIC -o $@ $<
+DISTCLEANFILES = \
+ Makefile.in