configure: replaced option '--with-nls' by autoconf's '--localedir'
[wmaker-crm.git] / WINGs / Makefile.am
blob14b27f869fd7fb4a9d64926bfdefa20b3529c78b
1 ## automake input file for WINGs
3 AUTOMAKE_OPTIONS =
5 SUBDIRS = WINGs . po Documentation Resources
6 DIST_SUBDIRS = $(SUBDIRS) Tests Examples Extras
8 libWINGs_la_LDFLAGS = -version-info @WINGS_VERSION@
9 libWUtil_la_LDFLAGS = -version-info @WUTIL_VERSION@
11 bin_SCRIPTS = get-wings-flags get-wutil-flags
13 lib_LTLIBRARIES = libWUtil.la libWINGs.la
16 LDADD= libWUtil.la libWINGs.la $(top_builddir)/wrlib/libwraster.la @INTLIBS@
17 libWINGs_la_LIBADD = libWUtil.la $(top_builddir)/wrlib/libwraster.la @XLIBS@ @XFTLIBS@ @FCLIBS@ @LIBM@ @PANGOLIBS@
18 libWUtil_la_LIBADD = @LIBBSD@
20 EXTRA_DIST = BUGS make-rgb Examples Extras Tests get-wings-flags.in get-wutil-flags.in
23 # wbutton.c 
24 libWINGs_la_SOURCES =   \
25         configuration.c \
26         dragcommon.c \
27         dragdestination.c \
28         dragsource.c \
29         rgb.h \
30         selection.c \
31         wappresource.c \
32         wballoon.c \
33         wbox.c \
34         wbrowser.c \
35         wbutton.c \
36         wcolor.c \
37         wcolorpanel.c \
38         wcolorwell.c \
39         wconfig.h \
40         wevent.c \
41         wfilepanel.c \
42         wframe.c \
43         wfont.c \
44         wfontpanel.c \
45         widgets.c \
46         winputmethod.c \
47         wlabel.c \
48         wlist.c \
49         wmenuitem.c \
50         wmisc.c \
51         wpanel.c \
52         wpixmap.c \
53         wpopupbutton.c \
54         wprogressindicator.c \
55         wruler.c \
56         wscroller.c \
57         wscrollview.c \
58         wslider.c \
59         wsplitview.c \
60         wtabview.c \
61         wtext.c \
62         wtextfield.c \
63         wview.c \
64         wwindow.c
66 libWUtil_la_SOURCES =   \
67         array.c \
68         bagtree.c \
69         data.c \
70         error.c \
71         error.h \
72         findfile.c \
73         handlers.c \
74         hashtable.c \
75         memory.c \
76         menuparser.c \
77         menuparser.h \
78         menuparser_macros.c \
79         misc.c \
80         notification.c \
81         proplist.c \
82         string.c \
83         tree.c \
84         userdefaults.c \
85         userdefaults.h \
86         usleep.c \
87         wapplication.c \
88         wconfig.h \
89         wutil.c
92 AM_CFLAGS =
94 AM_CPPFLAGS = -DRESOURCE_PATH=\"$(datadir)/WINGs\" \
95          -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
96         @XFTFLAGS@ @HEADER_SEARCH_PATH@
98 pkgconfigdir = $(libdir)/pkgconfig
99 pkgconfig_DATA = WINGs.pc WUtil.pc
101 DISTCLEANFILES = $(pkgconfig_DATA) get-wings-flags get-wutil-flags
103 WINGs.pc: Makefile
104         @echo "Generating $@"
105         @echo 'Name: WINGs' > $@
106         @echo 'Description: Small widget set with the NeXTStep(TM) look and feel' >> $@
107         @echo 'Version: $(VERSION)' >> $@
108         @echo 'Requires: wrlib WUtil' >> $@
109         @echo 'Libs: $(lib_search_path) -lWINGs' >> $@
110         @echo 'Libs.private: $(XFTLIBS) $(PANGOLIBS) $(XLIBS) -lm $(INTLIBS)' >> $@
111         @echo 'Cflags: $(inc_search_path)' >> $@
113 get-wings-flags: get-wings-flags.in Makefile
114         @echo "Generating $@"
115         @$(SED) -e 's#$${inc_search_path}#$(inc_search_path)#;' \
116                 -e 's#$${lib_search_path}#$(lib_search_path)#;' \
117                 -e 's#$${GFXLIBS}#$(GFXLIBS)#;' \
118                 -e 's#$${XFTLIBS}#$(XFTLIBS)#;' \
119                 -e 's#$${PANGOLIBS}#$(PANGOLIBS)#;' \
120                 -e 's#$${INTLIBS}#$(INTLIBS)#;' \
121                 -e 's#$${XLIBS}#$(XLIBS)#;' < $(abs_srcdir)/get-wings-flags.in > $@
122         @chmod 755 $@
124 WUtil.pc: Makefile
125         @echo "Generating $@"
126         @echo 'Name: WUtil' > $@
127         @echo 'Description: Utility library for WINGs' >> $@
128         @echo 'Version: $(VERSION)' >> $@
129         @echo 'Libs: -L$(libdir) -lWUtil' >> $@
130         @echo 'Libs.private: $(INTLIBS)' >> $@
131         @echo 'Cflags: -I$(includedir)' >> $@
133 get-wutil-flags: get-wutil-flags.in Makefile
134         @echo "Generating $@"
135         @$(SED) -e 's#$${includedir}#$(includedir)#;' \
136                 -e 's#$${libdir}#$(libdir)#;' \
137                 -e 's#$${INTLIBS}#$(INTLIBS)#;' < $(abs_srcdir)/get-wutil-flags.in > $@
138         @chmod 755 $@