Makefile.am 843 Bytes
Newer Older
1 2
lib_LTLIBRARIES = libovccclient.la

3 4
libovccclient_la_CPPFLAGS  = -DG_LOG_DOMAIN=\"LibOVCCClient\"
libovccclient_la_CFLAGS    = $(LIBOVCCCLIENT_CFLAGS)
5
libovccclient_la_LIBADD    = $(LIBOVCCCLIENT_LIBS)
6 7
libovccclient_la_VALAFLAGS = $(LIBOVCCCLIENT_VALAFLAGS) \
                             --library=ovccclient --header=ovccclient.h \
8
                             --vapidir=.
9
libovccclient_la_SOURCES   = ovccclient-client.vala \
10
                             ovccclient-server.vala
11 12
ovccclientinclude_HEADERS  = ovccclient.h
vapi_DATA                  = ovccclient.vapi
13

14
$(lib_LTLIBRARIES): stamp-hack
15

16 17
$(srcdir)/ovccclient.h $(srcdir)/ovccclient.vapi: libovccclient_la_vala.stamp

18
# hack: add prefix to header filename in VAPI file
19
stamp-hack: $(srcdir)/ovccclient.vapi
20
	$(AM_V_GEN) \
21
	$(SED) -i 's~"\(ovccclient.h\)"~"ovcc/\1"~g' $<
22
	touch $@