From d2af79f465769e2d19c9d15504b01249f2f9f5ec Mon Sep 17 00:00:00 2001 From: mszulecki Date: Fri, 15 Jun 2007 11:36:46 +0000 Subject: Add example of header generation and install to include directory. git-svn-id: http://svn.sukimashita.com/repos/dskel/trunk@31 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- src/Makefile.am | 6 ++++-- 1 file 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 -- cgit v1.1-32-gdbae