summaryrefslogtreecommitdiff
path: root/benchmark/Makefile.am
blob: 6043188a4471733a11a6e75ce8ece4f2414ddc57 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
include $(top_srcdir)/Makefile.decl

NULL =

AM_CPPFLAGS = \
	-I$(top_srcdir)/gee \
	$(GLIB_CFLAGS) \
	$(NULL)

AM_LDFLAGS = \
	-lm
	$(NULL)

noinst_PROGRAMS = benchmarks

progs_ldadd = $(GLIB_LIBS) ../gee/libgee.la

BUILT_SOURCES = benchmarks.vala.stamp

benchmarks_VALASOURCES = \
	benchmark.vala \
	benchmarksorts.vala \
	mergesort.vala \
	$(NULL)

benchmarks_SOURCES = benchmarks.vala.stamp $(benchmarks_VALASOURCES:.vala=.c)
benchmarks.vala.stamp: $(benchmarks_VALASOURCES)
	$(VALAC) -C --basedir $(top_srcdir) --vapidir $(top_srcdir)/gee --pkg gee-internals-1.0 $^
	touch $@
benchmarks_LDADD = $(progs_ldadd)
EXTRA_DIST += $(benchmarks_VALASOURCES)

MAINTAINERCLEANFILES = \
	$(benchmarks_VALASOURCES:.vala=.c) \
	benchmarks.vala.stamp \
	$(NULL)