summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mszulecki2007-06-15 11:36:46 +0000
committerGravatar mszulecki2007-06-15 11:36:46 +0000
commitd2af79f465769e2d19c9d15504b01249f2f9f5ec (patch)
tree099e4770e42472c1a6a94c1e58e8cca7208ab511
parent0e5c325ca431d3f66584b0be32e353bcf37303a6 (diff)
downloaddskel-d2af79f465769e2d19c9d15504b01249f2f9f5ec.tar.gz
dskel-d2af79f465769e2d19c9d15504b01249f2f9f5ec.tar.bz2
Add example of header generation and install to include directory.HEADmaster
git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@31 4281df72-ff29-0410-8fee-2d9ac0c5f5a7
-rw-r--r--src/Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index c6dcb3a..c5f876a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,18 +5,20 @@ libtestshlibrary_la_LDFLAGS = -version-info 0:0:0
lib_LIBRARIES = libtestlibrary.a
libtestlibrary_a_SOURCES = testlibrary.d
-# include_HEADERS = testshlibrary.di testlibrary.di
-
bin_PROGRAMS = helloworld
helloworld_SOURCES = helloworld.d catalog.d
helloworld_LDADD = $(DEPS_LIBS) $(top_srcdir)/config.d libtestlibrary.a testshlibrary.d libtestshlibrary.la -lunwind
+include_HEADERS = testshlibrary.di
+
DFLAGS += -I$(top_srcdir) -I$(srcdir)
.d.o:
$(GDC) $(DFLAGS) -c -o $@ $<
.d.so:
$(GDC) $(DFLAGS) -c -shared -fPIC -o $@ $<
+.d.di:
+ $(GDC) -S -fintfc $< && rm *.s
DISTCLEANFILES = \
Makefile.in