298ec8686f65277cbaa06be7fe432ec24abcd94d
[doldaconnect.git] / clients / gtk2 / Makefile.am
1 if CLI_GTK2
2 bin_PROGRAMS=dolcon
3 endif
4
5 dolcon_SOURCES= dolcon.c \
6                 dolcon.h \
7                 hublist.c \
8                 hublist.h \
9                 hublist-xml.c \
10                 hublist-old.c \
11                 progressbar.c \
12                 progressbar.h
13
14 EXTRA_DIST=mainwnd.desc inpdialog.desc pref.desc reslist.desc
15
16 BUILT_SOURCES=  mainwnd.gtk inpdialog.gtk pref.gtk reslist.gtk
17
18 main.c: mainwnd.gtk inpdialog.gtk pref.gtk reslist.gtk
19
20 localedir=$(datadir)/locale
21 dolcon_LDFLAGS= @GTK2_LIBS@ @LIBXML_LIBS@ -lbz2
22 dolcon_LDADD=$(top_srcdir)/lib/libdcui.la $(top_srcdir)/common/libhttp.a
23 dolcon_CPPFLAGS=@GTK2_CFLAGS@ @LIBXML_CFLAGS@ \
24                 -DLOCALEDIR=\"$(localedir)\"
25
26 .desc.gtk: $(top_srcdir)/common/makegdesc
27         target="$@"; \
28         basename="$${target%.gtk}"; \
29         cpp $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $< \
30          | $(top_srcdir)/common/makegdesc -h "$${basename}.gtkh" >$@
31
32 mainwnd.desc: ../../config.h