Update for 0.51.0
[wmaker-crm.git] / util / Makefile.am
blobbf5e9c388a566c56b1d41e1696304be6e7fe2033
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 \
13          -I$(top_srcdir)/libPropList @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 = \
34         $(top_builddir)/WINGs/libWINGs.a \
35         $(top_builddir)/wrlib/libwraster.la \
36         $(top_builddir)/libPropList/libPropList.la \
37         @GFXLFLAGS@ @XLFLAGS@ @GFXLIBS@ @XLIBS@ -lm 
39 getstyle_SOURCES = getstyle.c
41 setstyle_SOURCES = setstyle.c
43 seticons_SOURCES = seticons.c
45 geticonset_SOURCES = geticonset.c
47 wxcopy_SOURCES = wxcopy.c
49 wxpaste_SOURCES = wxpaste.c
51 wdwrite_SOURCES = wdwrite.c
53 wmsetbg_SOURCES = wmsetbg.c 
55 CLEANFILES = wmaker.inst
57 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
58         -rm -f wmaker.inst
59         sed -e "s:#pkgdatadir#:$(pkgdatadir):" \
60                 -e "s/#version#/$(VERSION)/" \
61                 -e "s:#bindir#:$(bindir):" \
62                 -e "s:#LITE#:@LITE@:" \
63                         $(srcdir)/wmaker.inst.in >wmaker.inst
65         chmod 755 wmaker.inst