6f84a4eb75cc38cfbdccbe2de6faa756b3027376
[doldaconnect.git] / Makefile.am
1 bin_PROGRAMS=
2 if DOLCONF
3 bin_PROGRAMS+=dolconf
4 endif
5 if BASECONV
6 bin_PROGRAMS+=baseconv
7 else
8 noinst_PROGRAMS=baseconv
9 endif
10
11 dolconf_SOURCES=dolconf.c
12 baseconv_SOURCES=baseconv.c
13 BUILT_SOURCES=dolconf-assistant.gtk dolconf-wnd.gtk
14
15 AM_CPPFLAGS=-I$(top_srcdir)/include
16 baseconv_LDADD=$(top_srcdir)/common/libcommon.a
17
18 dolconf.c: dolconf-assistant.desc dolconf-wnd.desc
19 localedir=$(datadir)/locale
20 dolconf_LDFLAGS=        @GTK2_LIBS@
21 dolconf_CPPFLAGS=       @GTK2_CFLAGS@ \
22                         -DLOCALEDIR=\"$(localedir)\"
23 dolconf_LDADD=          $(top_srcdir)/common/libcommon.a $(top_srcdir)/lib/libdcui.la
24
25 .desc.gtk: $(top_srcdir)/common/makegdesc
26         target="$@"; \
27         basename="$${target%.gtk}"; \
28         $(top_srcdir)/common/makegdesc -h "$${basename}.gtkh" $< >$@
29
30 EXTRA_DIST=dolconf-assistant.desc dolconf-wnd.desc