configure: Use pkg-config to determine Ruby CFLAGS/LIBS
[strongswan.git] / src / dumm / Makefile.am
1 EXTRA_DIST = ext/dumm.c ext/README \
2   ext/lib/dumm.rb ext/lib/dumm/guest.rb
3
4 ipseclib_LTLIBRARIES = libdumm.la
5 ipsec_PROGRAMS = dumm irdumm
6
7 libdumm_la_SOURCES = dumm.c dumm.h guest.c guest.h iface.c iface.h \
8   bridge.c bridge.h mconsole.c mconsole.h cowfs.h cowfs.c
9 dumm_SOURCES = main.c
10 irdumm_SOURCES = irdumm.c
11
12 libdumm_la_LIBADD = -lbridge -lfuse -lutil $(top_builddir)/src/libstrongswan/libstrongswan.la
13 dumm_LDADD = libdumm.la ${gtk_LIBS} $(top_builddir)/src/libstrongswan/libstrongswan.la
14 irdumm_LDADD = libdumm.la ${ruby_LIBS} $(top_builddir)/src/libstrongswan/libstrongswan.la
15
16 AM_CPPFLAGS = \
17         -D_FILE_OFFSET_BITS=64 \
18         -I$(top_srcdir)/src/libstrongswan
19
20 dumm_CFLAGS = ${gtk_CFLAGS}
21 irdumm_CFLAGS = ${ruby_CFLAGS}
22
23 all-local: ext
24
25 clean-local:
26         (test -f ext/Makefile && cd ext && $(MAKE) clean && rm Makefile || true)
27
28 install-data-local:
29         (test -f ext/Makefile && cd ext && $(MAKE) install)
30
31 ext:    libdumm.la
32         (cd ext && $(RUBY) extconf.rb && $(MAKE))
33
34 .PHONY: ext