summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 6a4689b6452972de76f231ce9c53c414b7895908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
lib_LTLIBRARIES = libtestshlibrary.la
libtestshlibrary_la_SOURCES = testshlibrary.d
libtestshlibrary_la_LDFLAGS = -version-info 0:0:0 -module

noinst_LIBRARIES = libtestlibrary.a
libtestlibrary_a_SOURCES = testlibrary.d

bin_PROGRAMS = helloworld
helloworld_SOURCES = helloworld.d catalog.d testshlibrary.d
helloworld_LDADD = $(DEPS_LIBS) $(top_srcdir)/config.d libtestlibrary.a libtestshlibrary.la
# It seems by overriding the _LINK primary, libtool is not called correctly
# Requires fixing in the libtool macros/scripts
CC=gdc
#helloworld_LINK = $(GDC) $(DFLAGS) -o $@ 

DFLAGS += -I$(top_srcdir) -I$(srcdir)

.d.o:
	$(GDC) $(DFLAGS) -c -o $@ $< 
.d.so:
	$(GDC) $(DFLAGS) -c -shared -fPIC -o $@ $<

DISTCLEANFILES = \
	Makefile.in