NEWS: Add note about new global defaults directory configuration.
[wmaker-crm.git] / src / Makefile.am
blob771282e8a8747a264ff042e13c5193ca160255e2
1 AUTOMAKE_OPTIONS =
3 BUILT_SOURCES = wconfig.h
5 bin_PROGRAMS = wmaker
7 EXTRA_DIST = 
9 wmaker_SOURCES =        \
10         GNUstep.h \
11         WindowMaker.h \
12         actions.c \
13         actions.h \
14         appicon.c \
15         appicon.h \
16         application.c \
17         application.h \
18         appmenu.c \
19         appmenu.h \
20         balloon.c \
21         balloon.h \
22         client.c \
23         client.h \
24         colormap.c \
25         colormap.h \
26         cycling.c \
27         cycling.h \
28         def_pixmaps.h \
29         defaults.c \
30         defaults.h \
31         dialog.c \
32         dialog.h \
33         dock.c \
34         dockedapp.c \
35         dockedapp.h \
36         dock.h \
37         event.c \
38         event.h \
39         extend_pixmaps.h \
40         framewin.c \
41         framewin.h \
42         geomview.c \
43         geomview.h \
44         osdep.h \
45         icon.c \
46         icon.h \
47         keybind.h \
48         main.c \
49         main.h \
50         menu.c \
51         menu.h \
52         misc.h \
53         monitor.c \
54         monitor.h \
55         moveres.c \
56         pixmap.c \
57         pixmap.h \
58         placement.c \
59         placement.h \
60         properties.c \
61         properties.h \
62         resources.c \
63         resources.h \
64         rootmenu.c \
65         rootmenu.h \
66         screen.c \
67         screen.h \
68         session.h \
69         session.c \
70         shutdown.h \
71         shutdown.c \
72         switchpanel.c \
73         switchpanel.h \
74         stacking.c \
75         stacking.h \
76         startup.c \
77         startup.h \
78         superfluous.c \
79         superfluous.h \
80         switchmenu.c \
81         switchmenu.h \
82         texture.c \
83         texture.h \
84         usermenu.c \
85         usermenu.h \
86         xdnd.h \
87         xinerama.h \
88         xinerama.c \
89         xmodifier.h \
90         xutil.c \
91         xutil.h \
92         wconfig.h \
93         wcore.c \
94         wcore.h \
95         wdefaults.c \
96         wdefaults.h \
97         window.c \
98         window.h \
99         winmenu.c \
100         winmenu.h \
101         winspector.h \
102         winspector.c \
103         wmspec.h \
104         wmspec.c \
105         workspace.c \
106         workspace.h \
107         wsmap.c \
108         wsmap.h
110 if USE_DOCK_XDND
111 wmaker_SOURCES += xdnd.c
112 endif
113 if USE_MWM_HINTS
114 wmaker_SOURCES += motif.h motif.c
115 endif
117 if WM_OSDEP_BSD
118 wmaker_SOURCES += osdep_bsd.c
119 endif
120 if WM_OSDEP_DARWIN
121 wmaker_SOURCES += osdep_darwin.c
122 endif
123 if WM_OSDEP_LINUX
124 wmaker_SOURCES += osdep_linux.c
125 endif
126 if WM_OSDEP_GENERIC
127 wmaker_SOURCES += osdep_stub.c
128 endif
130 if USE_NESTED_FUNC
131 wmaker_SOURCES += misc.c \
132         xmodifier.c
133 else
134 nodist_wmaker_SOURCES = misc.hack_nf.c \
135         xmodifier.hack_nf.c
137 CLEANFILES = $(nodist_wmaker_SOURCES)
139 misc.hack_nf.c: misc.c $(top_srcdir)/script/nested-func-to-macro.sh
140         $(AM_V_GEN)$(top_srcdir)/script/nested-func-to-macro.sh \
141                 $(srcdir)/misc.c -o $(builddir)/misc.hack_nf.c \
142                 -f "append_string" -f "append_modifier"
144 xmodifier.hack_nf.c: xmodifier.c $(top_srcdir)/script/nested-func-to-macro.sh
145         $(AM_V_GEN)$(top_srcdir)/script/nested-func-to-macro.sh \
146                 $(srcdir)/xmodifier.c -o $(builddir)/xmodifier.hack_nf.c \
147                 -f "modwarn" -f "modbarf" -f "check_modifier" -f "store_modifier"
148 endif
151 AM_CFLAGS =
153 AM_CPPFLAGS = $(DFLAGS) \
154         -I$(top_srcdir)/wrlib \
155         -I$(top_srcdir)/WINGs @HEADER_SEARCH_PATH@ 
158 wmaker_LDADD = \
159         $(top_builddir)/WINGs/libWINGs.la\
160         $(top_builddir)/WINGs/libWUtil.la\
161         $(top_builddir)/wrlib/libwraster.la\
162         @XLFLAGS@ \
163         @LIBXRANDR@ \
164         @LIBXINERAMA@ \
165         @XLIBS@ \
166         @LIBM@ \
167         @INTLIBS@
169 ######################################################################
171 # Create a 'silent rule' for our make check the same way automake does
172 AM_V_CHKOPTS = $(am__v_CHKOPTS_$(V))
173 am__v_CHKOPTS_  = $(am__v_CHKOPTS_$(AM_DEFAULT_VERBOSITY))
174 am__v_CHKOPTS_0 = @echo "  CHK      $@" ;
175 am__v_CHKOPTS_1 =
177 check-local: defaults-callbacks-static defaults-callbacks-dynamic
179 # Check that the callback functions used to load the configuration match
180 # the type of the variable where the value will be stored
181 defaults-callbacks-static:
182         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-wmaker-loaddef-callbacks.sh  \
183                 --source "$(srcdir)/defaults.c" --structure "staticOptionList"  \
184                 --field-value-ptr 4 --field-callback 5  \
185                 --struct-def "wPreferences=$(srcdir)/WindowMaker.h"  \
186                 --callback "getBool=char, getEnum=char, getInt=int"  \
187                 --callback "getModMask=int"
189 defaults-callbacks-dynamic:
190         $(AM_V_CHKOPTS)$(top_srcdir)/script/check-wmaker-loaddef-callbacks.sh  \
191                 --source "$(srcdir)/defaults.c" --structure "optionList"  \
192                 --field-value-ptr 4 --field-callback 5  \
193                 --struct-def "wPreferences=$(srcdir)/WindowMaker.h"  \
194                 --struct-def "legacy_minipreview_config=$(srcdir)/defaults.c"  \
195                 --callback "getBool=char, getEnum=char, getInt=int"  \
196                 --callback "getPathList=char*, getCoord=WCoord"