Code update for Window Maker version 0.50.0
[wmaker-crm.git] / util / Makefile.am
blobba09bf702993bf987d0d478b66d4e9b923c459a7
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
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= $(top_builddir)/libPropList/libPropList.la @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 = $(top_builddir)/libPropList/libPropList.la \
34         $(top_builddir)/wrlib/libwraster.la \
35         $(top_builddir)/WINGs/libWINGs.a \
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