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