summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 2a971777d14e15a10372b82f75706162f701ae98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
noinst_LIBRARIES = libtestlibrary.a
libtestlibrary_a_SOURCES = testlibrary.d
libtestlibrary_a_LDFLAGS = -static

bin_PROGRAMS = helloworld
helloworld_SOURCES = helloworld.d
helloworld_LDADD = $(DEPS_LIBS) $(top_srcdir)/config.d libtestlibrary.a
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