summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mszulecki2007-02-22 18:26:55 +0000
committerGravatar mszulecki2007-02-22 18:26:55 +0000
commitfdecd53fa0fc7c2a9c85f8c5cd2503d1174d7310 (patch)
treec90a5c9be224508f874b2fae24790a5abc1eb543
parentd543ff7f6c155952cb50c2bd1589546265004b3a (diff)
downloaddskel-fdecd53fa0fc7c2a9c85f8c5cd2503d1174d7310.tar.gz
dskel-fdecd53fa0fc7c2a9c85f8c5cd2503d1174d7310.tar.bz2
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
-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