This update includes the 0.20.3pre3 code
[wmaker-crm.git] / util / Makefile.am
blobdee7cdc1dc1af2c5411b1ca11500caaf450f8db5
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
12 INCLUDES = @DFLAGS@ -I$(top_srcdir)/wrlib -I$(top_srcdir)/libPropList\
13          @XCFLAGS@ @GFXFLAGS@ 
15 # X_EXTRA_LIBS is for libproplist in systems that need -lsocket 
16 liblist= -L$(top_builddir)/libPropList -lPropList @X_EXTRA_LIBS@ 
19 wdwrite_LDADD = $(liblist)
21 wxcopy_LDADD = @XLFLAGS@ @XLIBS@ 
23 wxpaste_LDADD = @XLFLAGS@ @XLIBS@ 
25 getstyle_LDADD = $(liblist)
27 setstyle_LDADD = $(liblist)
29 seticons_LDADD= $(liblist)
31 geticonset_LDADD= $(liblist)
33 wmsetbg_LDADD = -L$(top_builddir)/libPropList -lPropList \
34         -L$(top_builddir)/wrlib -lwraster \
35         @GFXLFLAGS@ @XLFLAGS@ @GFXLIBS@ @XLIBS@ -lm 
37 getstyle_SOURCES = getstyle.c
39 setstyle_SOURCES = setstyle.c
41 seticons_SOURCES = seticons.c
43 geticonset_SOURCES = geticonset.c
45 wxcopy_SOURCES = wxcopy.c
47 wxpaste_SOURCES = wxpaste.c
49 wdwrite_SOURCES = wdwrite.c
51 wmsetbg_SOURCES = wmsetbg.c
53 CLEANFILES = wmaker.inst
55 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
56         -rm -f wmaker.inst
57         sed -e "s:#pkgdatadir#:$(pkgdatadir):" \
58                 -e "s/#version#/$(VERSION)/" \
59                 -e "s:#bindir#:$(bindir):" \
60                         $(srcdir)/wmaker.inst.in >wmaker.inst
62         chmod 755 wmaker.inst