WINGs: fix possible NULL pointer dereference (Coverity #50197)
[wmaker-crm.git] / WINGs / Makefile.am
blob863ba79121bb210f61a28a0b7bc3e65a6feb0cd6
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         error.h \
71         findfile.c \
72         handlers.c \
73         hashtable.c \
74         memory.c \
75         menuparser.c \
76         menuparser.h \
77         menuparser_macros.c \
78         misc.c \
79         notification.c \
80         proplist.c \
81         string.c \
82         tree.c \
83         userdefaults.c \
84         userdefaults.h \
85         usleep.c \
86         wapplication.c \
87         wconfig.h \
88         wutil.c
91 AM_CFLAGS =
93 AM_CPPFLAGS = -DLOCALEDIR=\"$(NLSDIR)\" -DRESOURCE_PATH=\"$(datadir)/WINGs\" \
94          -I$(top_srcdir)/WINGs/WINGs -I$(top_srcdir)/wrlib -I$(top_srcdir)/src \
95         @XFTFLAGS@ @HEADER_SEARCH_PATH@
97 pkgconfigdir = $(libdir)/pkgconfig
98 pkgconfig_DATA = WINGs.pc WUtil.pc
100 DISTCLEANFILES = $(pkgconfig_DATA) get-wings-flags get-wutil-flags
102 WINGs.pc: Makefile
103         @echo "Generating $@"
104         @echo 'Name: WINGs' > $@
105         @echo 'Description: Small widget set with the NeXTStep(TM) look and feel' >> $@
106         @echo 'Version: $(VERSION)' >> $@
107         @echo 'Requires: wrlib WUtil' >> $@
108         @echo 'Libs: $(lib_search_path) -lWINGs' >> $@
109         @echo 'Libs.private: $(XFTLIBS) $(XLIBS) -lm $(INTLIBS)' >> $@
110         @echo 'Cflags: $(inc_search_path)' >> $@
112 get-wings-flags: get-wings-flags.in Makefile
113         @echo "Generating $@"
114         @$(SED) -e 's#$${inc_search_path}#$(inc_search_path)#;' \
115                 -e 's#$${lib_search_path}#$(lib_search_path)#;' \
116                 -e 's#$${GFXLIBS}#$(GFXLIBS)#;' \
117                 -e 's#$${XFTLIBS}#$(XFTLIBS)#;' \
118                 -e 's#$${INTLIBS}#$(INTLIBS)#;' \
119                 -e 's#$${XLIBS}#$(XLIBS)#;' < $(abs_srcdir)/get-wings-flags.in > $@
120         @chmod 755 $@
122 WUtil.pc: Makefile
123         @echo "Generating $@"
124         @echo 'Name: WUtil' > $@
125         @echo 'Description: Utility library for WINGs' >> $@
126         @echo 'Version: $(VERSION)' >> $@
127         @echo 'Libs: -L$(libdir) -lWUtil' >> $@
128         @echo 'Libs.private: $(INTLIBS)' >> $@
129         @echo 'Cflags: -I$(includedir)' >> $@
131 get-wutil-flags: get-wutil-flags.in Makefile
132         @echo "Generating $@"
133         @$(SED) -e 's#$${includedir}#$(includedir)#;' \
134                 -e 's#$${libdir}#$(libdir)#;' \
135                 -e 's#$${INTLIBS}#$(INTLIBS)#;' < $(abs_srcdir)/get-wutil-flags.in > $@
136         @chmod 755 $@