From fdecd53fa0fc7c2a9c85f8c5cd2503d1174d7310 Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 22 Feb 2007 18:26:55 +0000 Subject: Add ugly HACK for now and actually make it compile. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@12 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- configure.ac | 4 ++-- src/Makefile.am | 8 +++++--- 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 -- cgit v1.1-32-gdbae