/
Makefile.in
158 lines (131 loc) · 4.87 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#
# Bareos Makefile for the File daemon
#
#
@MCOMMON@
srcdir = @srcdir@
VPATH = @srcdir@
.PATH: @srcdir@
fd_group=@fd_group@
# one up
basedir = ..
# top dir
topdir = ../..
# this dir relative to top dir
thisdir = src/filed
DEBUG=@DEBUG@
GETTEXT_LIBS = @LIBINTL@
OPENSSL_LIBS_NONSHARED = @OPENSSL_LIBS_NONSHARED@
GNUTLS_LIBS_NONSHARED = @GNUTLS_LIBS_NONSHARED@
JANSSON_CPPFLAGS = @JANSSON_INC@
COMPRESS_CPPFLAGS += @ZLIB_INC@ @LZO_INC@ @FASTLZ_INC@
first_rule: all
dummy:
#
SVRSRCS = accurate.c accurate_htable.c accurate_lmdb.c authenticate.c \
backup.c compression.c crypto.c dir_cmd.c estimate.c \
fd_plugins.c filed_conf.c filed.c fileset.c heartbeat.c \
restore.c sd_cmds.c socket_server.c status.c verify_vol.c verify.c
SVROBJS = $(SVRSRCS:.c=.o)
FDLIBS += @LMDB_LIBS@
FDLIBS += @CAP_LIBS@
FDLIBS += @ZLIB_LIBS_NONSHARED@
FDLIBS += @LZO_LIBS_NONSHARED@
FDLIBS += @FASTLZ_LIBS_NONSHARED@
FDLIBS += @AFS_LIBS_NONSHARED@
FDLIBS += @ACL_LIBS_NONSHARED@
FDLIBS += @XATTR_LIBS_NONSHARED@
INCLUDES += -I$(srcdir) -I$(basedir) -I$(basedir)/include -I$(basedir)/lmdb
.SUFFIXES: .c .o
.PHONY:
.DONTCARE:
# inference rules
.c.o:
@echo "Compiling $<"
$(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(INCLUDES) $(DINCLUDE) $(CXXFLAGS) $<
#-------------------------------------------------------------------------
filed_conf.o: filed_conf.c
@echo "Compiling $<"
$(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(JANSSON_CPPFLAGS) $(INCLUDES) $(DINCLUDE) $(CXXFLAGS) $<
compression.o: compression.c
@echo "Compiling $<"
$(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) $(COMPRESS_CPPFLAGS) $(INCLUDES) $(DINCLUDE) $(CXXFLAGS) $<
all: Makefile bareos-fd @STATIC_FD@
@echo "==== Make of filed is good ===="
@echo " "
bareos-fd: Makefile $(SVROBJS) \
../findlib/libbareosfind$(DEFAULT_ARCHIVE_TYPE) \
../lib/libbareoscfg$(DEFAULT_ARCHIVE_TYPE) \
../lib/libbareos$(DEFAULT_ARCHIVE_TYPE)
@echo "Linking $@ ..."
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
-lbareosfind -lbareoscfg -lbareos -lm $(FDLIBS) $(LIBS) \
$(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS_NONSHARED) $(GNUTLS_LIBS_NONSHARED)
static-bareos-fd: Makefile $(SVROBJS) \
../findlib/libbareosfind.a \
../lib/libbareoscfg$(DEFAULT_ARCHIVE_TYPE) \
../lib/libbareos$(DEFAULT_ARCHIVE_TYPE)
@echo "Linking $@ ..."
$(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
-lbareosfind -lbareoscfg -lbareos -lm $(FDLIBS) $(LIBS) \
$(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(GNUTLS_LIBS)
strip $@
Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
cd $(topdir) \
&& CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
libtool-clean:
@$(RMF) -r .libs _libs
clean: libtool-clean
@$(RMF) bareos-fd filed core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3
@$(RMF) static-bareos-fd
@if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
(cd win32; $(GMAKE) clean); \
fi
realclean: clean
@$(RMF) tags bareos-fd.conf
distclean: realclean
if test $(srcdir) = .; then $(MAKE) realclean; fi
(cd $(srcdir); $(RMF) Makefile)
@if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
(cd win32; $(GMAKE) distclean); \
fi
devclean: realclean
if test $(srcdir) = .; then $(MAKE) realclean; fi
(cd $(srcdir); $(RMF) Makefile)
@if test -f win32/Makefile -a "${GMAKE}" != "none"; then \
(cd win32; $(GMAKE) devclean); \
fi
install: all
$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bareos-fd $(DESTDIR)$(sbindir)/bareos-fd
@srcconf=bareos-fd.conf; \
if test -f ${DESTDIR}${confdir}/$$srcconf; then \
destconf=$$srcconf.new; \
echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \
else \
destconf=$$srcconf; \
fi; \
echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${confdir}/$$destconf"; \
${INSTALL_CONFIG} $$srcconf ${DESTDIR}${confdir}/$$destconf
-@if test "x${fd_group}" != "x"; then \
chgrp -f ${fd_group} ${DESTDIR}${confdir}/$$destconf ; \
fi
@if test -f static-bareos-fd; then \
$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) static-bareos-fd $(DESTDIR)$(sbindir)/static-bareos-fd; \
fi
# Semi-automatic generation of dependencies:
# Use gcc -MM because X11 `makedepend' doesn't work on all systems
# and it also includes system headers.
# `semi'-automatic since dependencies are generated at distribution time.
depend:
@$(MV) Makefile Makefile.bak
@$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
@$(ECHOCMD) "# DO NOT DELETE: nice dependency list follows" >> Makefile
@$(CXX) -S -M $(CPPFLAGS) $(XINC) $(INCLUDES) *.c >> Makefile
@if test -f Makefile ; then \
$(RMF) Makefile.bak; \
else \
$(MV) Makefile.bak Makefile; \
echo " ===== Something went wrong in make depend ====="; \
fi
# -----------------------------------------------------------------------
# DO NOT DELETE: nice dependency list follows