1 | # |
---|
2 | # Version $Id: Makefile.in 4463 2007-03-30 21:46:04Z kerns $ |
---|
3 | # |
---|
4 | # |
---|
5 | # This file is pulled in by all the Unix Bacula Makefiles |
---|
6 | # so it has all the "common" definitions |
---|
7 | # |
---|
8 | |
---|
9 | DATE="28 December 2008" |
---|
10 | LSMDATE=28Dec08 |
---|
11 | VERSION=2.4.4 |
---|
12 | VERNAME=bacula-$(VERSION)# |
---|
13 | MAINT=Kern Sibbald# |
---|
14 | MAINTEMAIL=<kern@sibbald.com># |
---|
15 | WEBMAINT=# |
---|
16 | WEBMAINTEMAIL=# |
---|
17 | WEBPAGE=# |
---|
18 | FTPSITENAME=# |
---|
19 | FTPSITEDIR=# |
---|
20 | #------------------------------------------------------------------------- |
---|
21 | |
---|
22 | SHELL = /bin/sh |
---|
23 | |
---|
24 | # Installation target directories & other installation stuff |
---|
25 | prefix = /opt/local |
---|
26 | exec_prefix = /opt/local |
---|
27 | binprefix = |
---|
28 | manprefix = |
---|
29 | sbindir = /opt/local/sbin |
---|
30 | sysconfdir = /opt/local/etc/bacula |
---|
31 | scriptdir = /opt/local/etc/bacula |
---|
32 | datarootdir = /opt/local/share |
---|
33 | mandir = /opt/local/share/man |
---|
34 | manext = 8 |
---|
35 | |
---|
36 | NO_ECHO = @ |
---|
37 | |
---|
38 | # Tools & program stuff |
---|
39 | CC = /usr/bin/gcc-4.0 |
---|
40 | CPP = /usr/bin/cpp-4.0 |
---|
41 | CXX = /usr/bin/g++-4.0 |
---|
42 | MV = /bin/mv |
---|
43 | RM = /bin/rm |
---|
44 | RMF = /bin/rm -f |
---|
45 | CP = /bin/cp |
---|
46 | SED = /usr/bin/sed |
---|
47 | AWK = /opt/local/bin/gawk |
---|
48 | ECHO = /bin/echo |
---|
49 | CMP = /usr/bin/cmp |
---|
50 | TBL = /usr/bin/tbl |
---|
51 | AR = /usr/bin/ar |
---|
52 | RANLIB = ranlib |
---|
53 | MKDIR = /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_bacula/work/bacula-2.4.4/autoconf/mkinstalldirs |
---|
54 | INSTALL = /usr/bin/install -c |
---|
55 | # add the -s to the following in PRODUCTION mode |
---|
56 | INSTALL_PROGRAM = /usr/bin/install -c -m 0754 |
---|
57 | INSTALL_DATA = /usr/bin/install -c -m 644 |
---|
58 | INSTALL_SCRIPT = /usr/bin/install -c -m 0754 |
---|
59 | INSTALL_CONFIG = /usr/bin/install -c -m 640 |
---|
60 | |
---|
61 | # Flags & libs |
---|
62 | CFLAGS = -O2 -I/opt/local/include |
---|
63 | CPPFLAGS = -I/opt/local/include -I/opt/local/ncurses -I/opt/local/include |
---|
64 | LDFLAGS = |
---|
65 | TTOOL_LDFLAGS = |
---|
66 | #DEFS = -DHAVE_CONFIG_H |
---|
67 | LIBS = -lpthread |
---|
68 | WRAPLIBS = |
---|
69 | DINCLUDE = |
---|
70 | DLIB = |
---|
71 | DB_LIBS = |
---|
72 | PYTHON_LIBS = |
---|
73 | PYTHON_INC = |
---|
74 | OPENSSL_LIBS = -L/opt/local/lib -lssl -lcrypto |
---|
75 | |
---|
76 | # Windows (cygwin) flags |
---|
77 | WCFLAGS = |
---|
78 | WLDFLAGS = |
---|
79 | |
---|
80 | # X Include directory |
---|
81 | #XINC = -I/usr/X11/include @XPM_CFLAGS@ |
---|
82 | |
---|
83 | # extra libraries needed by X on some systems, X library location |
---|
84 | #XLIB = -L/usr/X11/lib -R/usr/X11/lib @XPM_LIBS@ -lX11 |
---|
85 | |
---|
86 | # End of common section of the Makefile |
---|
87 | #------------------------------------------------------------------------- |
---|
88 | |
---|
89 | working_dir=/opt/local/var/bacula/working |
---|
90 | dir_group= |
---|
91 | dir_user= |
---|
92 | |
---|
93 | srcdir = . |
---|
94 | |
---|
95 | .PATH: . |
---|
96 | topdir = . |
---|
97 | thisdir = . |
---|
98 | |
---|
99 | |
---|
100 | first_rule: all |
---|
101 | dummy: |
---|
102 | |
---|
103 | # --client-only directories |
---|
104 | fd_subdirs = src scripts src/lib src/findlib src/filed \ |
---|
105 | \ |
---|
106 | src/console |
---|
107 | |
---|
108 | # Non-client-only directores |
---|
109 | subdirs = src/cats src/dird src/stored src/tools |
---|
110 | |
---|
111 | all_subdirs = ${fd_subdirs} ${} manpages |
---|
112 | |
---|
113 | DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog |
---|
114 | |
---|
115 | DIST_CFG = autoconf/aclocal.m4 autoconf/configure.in \ |
---|
116 | autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \ |
---|
117 | autoconf/install-sh autoconf/mkinstalldirs |
---|
118 | |
---|
119 | MKDIR = $(srcdir)/autoconf/mkinstalldirs |
---|
120 | |
---|
121 | #------------------------------------------------------------------------- |
---|
122 | |
---|
123 | all: Makefile |
---|
124 | @for I in ${all_subdirs}; \ |
---|
125 | do (cd $$I; echo "==>Entering directory `pwd`"; \ |
---|
126 | $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \ |
---|
127 | echo ""; echo "";)); \ |
---|
128 | done |
---|
129 | |
---|
130 | depend: |
---|
131 | @for I in ${all_subdirs}; \ |
---|
132 | do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done |
---|
133 | |
---|
134 | bacula-fd: Makefile |
---|
135 | @for I in ${fd_subdirs}; \ |
---|
136 | do (cd $$I; echo "==>Entering directory `pwd`"; \ |
---|
137 | $(MAKE) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======; \ |
---|
138 | echo ""; echo "";)); \ |
---|
139 | done |
---|
140 | |
---|
141 | #------------------------------------------------------------------------- |
---|
142 | autoconf/aclocal.m4: autoconf/configure.in autoconf/bacula-macros/* autoconf/gettext-macros/* |
---|
143 | cd autoconf && aclocal -I bacula-macros -I gettext-macros |
---|
144 | |
---|
145 | configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in |
---|
146 | cd $(srcdir); |
---|
147 | ${RMF} -f config.cache config.log config.out config.status src/config.h |
---|
148 | ${RMF} -rf autoconf/autom4te.cache autom4te.cache |
---|
149 | autoconf --prepend-include=$(srcdir)/autoconf \ |
---|
150 | autoconf/configure.in > configure |
---|
151 | chmod 755 configure |
---|
152 | |
---|
153 | old-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h |
---|
154 | cd $(srcdir); |
---|
155 | ${RMF} -f config.cache config.log config.out config.status src/config.h |
---|
156 | autoconf --include=$(srcdir)/autoconf \ |
---|
157 | autoconf/configure.in > configure |
---|
158 | chmod 755 configure |
---|
159 | @rm -f config.cache |
---|
160 | |
---|
161 | config.status: |
---|
162 | if test -x config.status; then config.status --recheck; \ |
---|
163 | else $(SHELL) configure; fi |
---|
164 | |
---|
165 | autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h |
---|
166 | cd $(srcdir); |
---|
167 | ${RMF} -f config.cache config.log config.out config.status src/config.h |
---|
168 | autoheader --prepend-include=$(srcdir)/autoconf \ |
---|
169 | autoconf/configure.in > autoconf/config.h.in |
---|
170 | chmod 644 autoconf/config.h.in |
---|
171 | |
---|
172 | installdirs: |
---|
173 | $(MKDIR) $(DESTDIR)$(sbindir) |
---|
174 | $(MKDIR) $(DESTDIR)$(sysconfdir) |
---|
175 | $(MKDIR) $(DESTDIR)$(scriptdir) |
---|
176 | -if test ! -d $(DESTDIR)$(working_dir) ; then \ |
---|
177 | $(MKDIR) $(DESTDIR)$(working_dir); \ |
---|
178 | chmod 770 $(DESTDIR)$(working_dir); \ |
---|
179 | fi |
---|
180 | -if test "x$(dir_user)" != "x" ; then \ |
---|
181 | chown $(dir_user) $(DESTDIR)$(working_dir); \ |
---|
182 | fi |
---|
183 | -if test "x$(dir_group)" != "x" ; then \ |
---|
184 | chgrp $(dir_group) $(DESTDIR)$(working_dir); \ |
---|
185 | fi |
---|
186 | |
---|
187 | gnomedirs: |
---|
188 | $(MKDIR) $(DESTDIR)/usr/share/pixmaps |
---|
189 | $(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System |
---|
190 | $(MKDIR) $(DESTDIR)/usr/share/applications |
---|
191 | $(MKDIR) $(DESTDIR)/etc/security/console.apps |
---|
192 | $(MKDIR) $(DESTDIR)/etc/pam.d |
---|
193 | |
---|
194 | install-menu: gnomedirs |
---|
195 | ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png |
---|
196 | ${INSTALL_DATA} scripts/bacula.desktop.gnome1 $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop |
---|
197 | ${INSTALL_DATA} scripts/bacula.desktop.gnome2 $(DESTDIR)/usr/share/applications/bacula.desktop |
---|
198 | |
---|
199 | install-menu-xsu: gnomedirs |
---|
200 | ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png |
---|
201 | ${INSTALL_DATA} scripts/bacula.desktop.gnome1.xsu $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop |
---|
202 | ${INSTALL_DATA} scripts/bacula.desktop.gnome2.xsu $(DESTDIR)/usr/share/applications/bacula.desktop |
---|
203 | |
---|
204 | install-menu-consolehelper: gnomedirs |
---|
205 | ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png |
---|
206 | ${INSTALL_DATA} scripts/bacula.desktop.gnome1.consolehelper $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop |
---|
207 | ${INSTALL_DATA} scripts/bacula.desktop.gnome2.consolehelper $(DESTDIR)/usr/share/applications/bacula.desktop |
---|
208 | ${INSTALL_DATA} scripts/gnome-console.console_apps $(DESTDIR)/etc/security/console.apps/gnome-console |
---|
209 | ${INSTALL_DATA} scripts/gnome-console.pamd $(DESTDIR)/etc/pam.d/gnome-console |
---|
210 | ln -s $(DESTDIR)/usr/bin/consolehelper $(DESTDIR)/usr/bin/gnome-console |
---|
211 | |
---|
212 | install: installdirs |
---|
213 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done |
---|
214 | |
---|
215 | uninstall: |
---|
216 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done |
---|
217 | |
---|
218 | install-autostart: |
---|
219 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
220 | |
---|
221 | install-autostart-dir: |
---|
222 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
223 | |
---|
224 | install-autostart-fd: |
---|
225 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
226 | |
---|
227 | install-autostart-sd: |
---|
228 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
229 | |
---|
230 | uninstall-autostart: |
---|
231 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
232 | |
---|
233 | uninstall-autostart-dir: |
---|
234 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
235 | |
---|
236 | uninstall-autostart-fd: |
---|
237 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
238 | |
---|
239 | uninstall-autostart-sd: |
---|
240 | (cd platforms && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) |
---|
241 | |
---|
242 | uninstall-menu: |
---|
243 | rm -f $(DESTDIR)/usr/share/pixmaps/bacula.png |
---|
244 | rm -f $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop |
---|
245 | rm -f $(DESTDIR)/usr/share/applications/bacula.desktop |
---|
246 | |
---|
247 | uninstall-menu-consolehelper: |
---|
248 | rm -f $(DESTDIR)/usr/share/pixmaps/bacula.png |
---|
249 | rm -f $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop |
---|
250 | rm -f $(DESTDIR)/usr/share/applications/bacula.desktop |
---|
251 | rm -f $(DESTDIR)/etc/security/console.apps/gnome-console |
---|
252 | rm -f $(DESTDIR)/etc/pam.d/gnome-console |
---|
253 | rm -f $(DESTDIR)/usr/bin/gnome-console |
---|
254 | |
---|
255 | |
---|
256 | Makefile: Makefile.in |
---|
257 | cd $(topdir) \ |
---|
258 | && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status |
---|
259 | |
---|
260 | Makefiles: |
---|
261 | $(SHELL) config.status |
---|
262 | (cd scripts; \ |
---|
263 | chmod 755 startmysql stopmysql bacula startit stopit btraceback; \ |
---|
264 | chmod 755 mtx-changer bconsole gconsole devel_bacula; \ |
---|
265 | chmod 755 dvd-handler) |
---|
266 | |
---|
267 | (cd src/cats; \ |
---|
268 | chmod 755 create_bacula_database update_bacula_tables make_bacula_tables; \ |
---|
269 | chmod 755 grant_bacula_privileges drop_bacula_tables drop_bacula_database; \ |
---|
270 | chmod 755 create_none_database update_none_tables make_none_tables; \ |
---|
271 | chmod 755 grant_none_privileges drop_none_tables drop_none_database; \ |
---|
272 | chmod 755 make_catalog_backup delete_catalog_backup) |
---|
273 | |
---|
274 | clean: |
---|
275 | @for I in ${all_subdirs} src/win32; \ |
---|
276 | do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done |
---|
277 | @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1) |
---|
278 | @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum |
---|
279 | @$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2 |
---|
280 | @$(RMF) -r autom4te.cache |
---|
281 | @find . -name ".#*" -exec $(RMF) {} \; |
---|
282 | |
---|
283 | |
---|
284 | # clean for distribution |
---|
285 | distclean: |
---|
286 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) $@ || exit 1); done |
---|
287 | @for I in $(all_subdirs); do (cd $$I && $(RMF) startit stopit btraceback); done |
---|
288 | @(cd $(srcdir) && $(RMF) *~ config.cache config.h config.log config.status config.out) |
---|
289 | @(cd $(srcdir) && $(RMF) Makefile autoconf/Make.common) |
---|
290 | @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1) |
---|
291 | @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback |
---|
292 | @$(RMF) bconsole gconsole |
---|
293 | @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum |
---|
294 | @$(RMF) working/* kerns-* |
---|
295 | @$(RMF) -rf txt diff src/python src/testprogs |
---|
296 | |
---|
297 | devclean: |
---|
298 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) $@ || exit 1); done |
---|
299 | @for I in $(all_subdirs); do (cd $$I && $(RMF) startit stopit btraceback); done |
---|
300 | @(cd $(srcdir) && $(RMF) *~ config.cache config.h config.log config.status config.out) |
---|
301 | @(cd $(srcdir) && $(RMF) Makefile autoconf/Make.common) |
---|
302 | @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1) |
---|
303 | @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback |
---|
304 | @$(RMF) bconsole gconsole |
---|
305 | @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum |
---|
306 | @$(RMF) working/* |
---|
307 | |
---|
308 | distdirs: |
---|
309 | mkdir ../$(VERNAME); |
---|
310 | mkdir ../$(VERNAME)/autoconf; |
---|
311 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo "Failed to make distclean in $$I"; exit 0) ); done |
---|
312 | |
---|
313 | distcopy: |
---|
314 | $(CP) -p $(DIST) ../$(VERNAME); |
---|
315 | $(CP) -p $(DIST_CFG) ../$(VERNAME)/autoconf; |
---|
316 | @for I in $(all_subdirs); do (cd $$I && $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done |
---|
317 | |
---|
318 | distrib: configure autoconf/config.h.in distdirs distcopy |
---|
319 | |
---|
320 | test: |
---|
321 | |
---|
322 | |
---|
323 | tar.gz: ../$(VERNAME).tar.gz |
---|
324 | ../$(VERNAME).tar.gz: |
---|
325 | (cd ..; tar cvf - $(VERNAME) | gzip -f9 > $(VERNAME).tar.gz) |
---|
326 | |
---|
327 | tar.Z: ../$(VERNAME).tar.Z |
---|
328 | ../$(VERNAME).tar.Z: |
---|
329 | (cd ..; tar cvf - $(VERNAME) | compress > $(VERNAME).tar.Z) |
---|
330 | |
---|
331 | tar.bz2: ../$(VERNAME).tar.bz2 |
---|
332 | ../$(VERNAME).tar.bz2: |
---|
333 | (cd ..; tar cvf - $(VERNAME) | bzip2 -f9 > $(VERNAME).tar.bz2) |
---|
334 | |
---|
335 | uuencode: tar.gz |
---|
336 | uuencode ../$(VERNAME).tar.gz $(VERNAME).tar.gz > ../$(VERNAME).tgz.uu |
---|
337 | |
---|
338 | # ------------------------------------------------------------------------ |
---|