Latest fixes for released 0.51.0
[wmaker-crm.git] / util / Makefile.am
bloba658606d7074cbdb9a87c22d242e44ebe92f61b4
2 AUTOMAKE_OPTIONS = no-dependencies
4 pkgdatadir  = $(datadir)/@PACKAGE@
6 bin_PROGRAMS = wxcopy wxpaste wdwrite getstyle setstyle seticons geticonset wmsetbg
8 bin_SCRIPTS = wmaker.inst wm-oldmenu2new wsetfont
10 EXTRA_DIST = wmaker.inst.in bughint wm-oldmenu2new wsetfont directjpeg.c
12 INCLUDES = @DFLAGS@ -I$(top_srcdir)/wrlib @XCFLAGS@ @GFXFLAGS@
14 # X_EXTRA_LIBS is for libproplist in systems that need -lsocket 
15 liblist= @XLFLAGS@ @LIBPL@ @X_EXTRA_LIBS@ 
18 wdwrite_LDADD = $(liblist)
20 wxcopy_LDADD = @XLFLAGS@ @XLIBS@ 
22 wxpaste_LDADD = @XLFLAGS@ @XLIBS@ 
24 getstyle_LDADD = $(liblist)
26 setstyle_LDADD = $(liblist)
28 seticons_LDADD= $(liblist)
30 geticonset_LDADD= $(liblist)
32 wmsetbg_LDADD = \
33         $(top_builddir)/WINGs/libWINGs.a \
34         $(top_builddir)/wrlib/libwraster.la \
35         @LIBPL@ \
36         @GFXLFLAGS@ @XLFLAGS@ @GFXLIBS@ @XLIBS@ -lm 
38 getstyle_SOURCES = getstyle.c
40 setstyle_SOURCES = setstyle.c
42 seticons_SOURCES = seticons.c
44 geticonset_SOURCES = geticonset.c
46 wxcopy_SOURCES = wxcopy.c
48 wxpaste_SOURCES = wxpaste.c
50 wdwrite_SOURCES = wdwrite.c
52 wmsetbg_SOURCES = wmsetbg.c 
54 CLEANFILES = wmaker.inst
56 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
57         -rm -f wmaker.inst
58         sed -e "s:#pkgdatadir#:$(pkgdatadir):" \
59                 -e "s/#version#/$(VERSION)/" \
60                 -e "s:#bindir#:$(bindir):" \
61                 -e "s:#LITE#:@LITE@:" \
62                         $(srcdir)/wmaker.inst.in >wmaker.inst
64         chmod 755 wmaker.inst