wmgenmenu: A Window Maker menu generator
[wmaker-crm.git] / util / Makefile.am
1 SUBDIRS = po
2
3 AUTOMAKE_OPTIONS = no-dependencies
4
5 pkgdatadir  = $(datadir)/@PACKAGE@
6
7 bin_PROGRAMS = wxcopy wxpaste wdwrite wdread getstyle setstyle convertfonts \
8         seticons geticonset wmsetbg wmsetup wmagnify wmgenmenu
9
10 bin_SCRIPTS = wmaker.inst wm-oldmenu2new wkdemenu.pl
11
12 EXTRA_DIST = wmaker.inst.in bughint wm-oldmenu2new directjpeg.c wkdemenu.pl
13
14 AM_CPPFLAGS = -DLOCALEDIR=\"$(NLSDIR)\"
15
16 INCLUDES = $(DFLAGS) -I$(top_srcdir)/WINGs -I$(top_srcdir)/wrlib \
17         @HEADER_SEARCH_PATH@ \
18         -DETCDIR=\"sysconfdir\" -DDATADIR=\"pkgdatadir\"
19
20 liblist= @LIBRARY_SEARCH_PATH@ @INTLIBS@
21
22 wdwrite_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
23
24 wdread_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
25
26 wxcopy_LDADD = @XLFLAGS@ @XLIBS@ 
27
28 wxpaste_LDADD = @XLFLAGS@ @XLIBS@
29
30 getstyle_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
31
32 getstyle_SOURCES = getstyle.c fontconv.c
33
34 setstyle_LDADD = \
35         $(top_builddir)/WINGs/libWUtil.la \
36         @XLFLAGS@ @XLIBS@ $(liblist)
37
38 setstyle_SOURCES = setstyle.c fontconv.c
39
40 convertfonts_LDADD = $(top_builddir)/WINGs/libWUtil.la $(liblist)
41
42 convertfonts_SOURCES = convertfonts.c fontconv.c
43
44 seticons_LDADD= $(top_builddir)/WINGs/libWUtil.la $(liblist)
45
46 geticonset_LDADD= $(top_builddir)/WINGs/libWUtil.la $(liblist)
47
48 wmagnify_LDADD = \
49         $(top_builddir)/WINGs/libWINGs.la \
50         $(top_builddir)/WINGs/libWUtil.la \
51         $(top_builddir)/wrlib/libwraster.la \
52         @XFTLIBS@ @INTLIBS@ @DLLIBS@
53
54 wmsetup_LDADD = \
55         $(top_builddir)/WINGs/libWINGs.la \
56         $(top_builddir)/WINGs/libWUtil.la \
57         $(top_builddir)/wrlib/libwraster.la \
58         @XFTLIBS@ @INTLIBS@ @DLLIBS@
59
60 wmsetbg_LDADD = \
61         $(top_builddir)/WINGs/libWINGs.la \
62         $(top_builddir)/WINGs/libWUtil.la \
63         $(top_builddir)/wrlib/libwraster.la \
64         @XLFLAGS@ @XLIBS@ @XFTLIBS@ @INTLIBS@ @DLLIBS@
65
66 wmgenmenu_LDADD = \
67         $(top_builddir)/WINGs/libWUtil.la \
68         @INTLIBS@
69
70 CLEANFILES = wmaker.inst
71
72 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
73         @-rm -f wmaker.inst
74         @sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
75                 -e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \
76                 -e "s|#version#|$(VERSION)|" \
77                 -e "s|#bindir#|$(bindir)|" \
78                         $(srcdir)/wmaker.inst.in >wmaker.inst
79
80         chmod 755 wmaker.inst
81         
82 LIBTOOL = $(SHELL) $(top_srcdir)/libtool $(LIBTOOL_ARG)
83
84 .c.o:
85         $(QUIET)$(COMPILE) -c $<
86
87 .c.obj:
88         $(QUIET)$(COMPILE) -c `$(CYGPATH_W) '$<'`
89
90 .c.lo:
91         $(QUIET)$(LTCOMPILE) -c -o $@ $<