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 wkdemenu.pl
10 EXTRA_DIST = wmaker.inst.in bughint wm-oldmenu2new wsetfont directjpeg.c \
13 INCLUDES = @DFLAGS@ -I$(top_srcdir)/wrlib @HEADER_SEARCH_PATH@
15 # X_EXTRA_LIBS is for libproplist in systems that need -lsocket
16 liblist= @LIBRARY_SEARCH_PATH@ @LIBPL@ @X_EXTRA_LIBS@
19 wdwrite_LDADD = $(liblist)
21 wxcopy_LDADD = @XLFLAGS@ @XLIBS@
23 wxpaste_LDADD = @XLFLAGS@ @XLIBS@
25 getstyle_LDADD = $(liblist)
27 setstyle_LDADD = @XLFLAGS@ @XLIBS@ $(liblist)
29 seticons_LDADD= $(liblist)
31 geticonset_LDADD= $(liblist)
34 $(top_builddir)/WINGs/libWINGs.a \
35 $(top_builddir)/wrlib/libwraster.la \
36 @LIBRARY_SEARCH_PATH@ \
38 @GFXLIBS@ @XLIBS@ @DLLIBS@ -lm
40 getstyle_SOURCES = getstyle.c
42 setstyle_SOURCES = setstyle.c
44 seticons_SOURCES = seticons.c
46 geticonset_SOURCES = geticonset.c
48 wxcopy_SOURCES = wxcopy.c
50 wxpaste_SOURCES = wxpaste.c
52 wdwrite_SOURCES = wdwrite.c
54 wmsetbg_SOURCES = wmsetbg.c
56 CLEANFILES = wmaker.inst
58 wmaker.inst: $(srcdir)/wmaker.inst.in ./Makefile
60 sed -e "s|#pkgdatadir#|$(pkgdatadir)|" \
61 -e "s|#sysconfdir#|$(sysconfdir)/WindowMaker|" \
62 -e "s|#version#|$(VERSION)|" \
63 -e "s|#bindir#|$(bindir)|" \
64 -e "s|#LITE#|@LITE@|" \
65 $(srcdir)/wmaker.inst.in >wmaker.inst