-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
85 lines (68 loc) · 2.13 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
top_builddir=../..
top_srcdir=../..
srcdir=@srcdir@
include $(top_srcdir)/Make.rules
.SUFFIXES: .la .lo
SHARED_CFLAGS=-DPR_SHARED_MODULE
SHARED_LDFLAGS=-avoid-version -export-dynamic -module
VPATH=@srcdir@
CLOUDWATCH_OBJS=cloudwatch/conn.o \
cloudwatch/error.o \
cloudwatch/dimension.o \
cloudwatch/metric.o
SHARED_CLOUDWATCH_OBJ=cloudwatch/conn.lo \
cloudwatch/error.lo \
cloudwatch/dimension.lo \
cloudwatch/metric.lo
MODULE_NAME=mod_aws
MODULE_OBJS=mod_aws.o \
utils.o \
health.o \
creds.o \
http.o \
xml.o \
instance.o \
error.o \
sign.o \
ec2.o \
$(CLOUDWATCH_OBJS) \
route53.o
SHARED_MODULE_OBJS=mod_aws.lo \
utils.lo \
health.lo \
creds.lo \
http.lo \
xml.lo \
instance.lo \
error.lo \
sign.lo \
ec2.lo \
$(SHARED_CLOUDWATCH_OBJS) \
route53.lo
# Necessary redefinitions
INCLUDES=-I. -I./include -I../.. -I../../include @INCLUDES@
CPPFLAGS= $(ADDL_CPPFLAGS) -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
LDFLAGS=-L../../lib @LIBDIRS@
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
.c.lo:
$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CPPFLAGS) $(CFLAGS) $(SHARED_CFLAGS) -c $< -o $@
shared: $(SHARED_MODULE_OBJS)
$(LIBTOOL) --mode=link --tag=CC $(CC) -o $(MODULE_NAME).la $(SHARED_MODULE_OBJS) -rpath $(LIBEXECDIR) $(LDFLAGS) $(SHARED_LDFLAGS) $(SHARED_MODULE_LIBS) `cat $(MODULE_NAME).c | grep '$$Libraries:' | sed -e 's/^.*\$$Libraries: \(.*\)\\$$/\1/'`
static: $(MODULE_OBJS)
$(AR) rc $(MODULE_NAME).a $(MODULE_OBJS)
$(RANLIB) $(MODULE_NAME).a
install: install-misc
if [ -f $(MODULE_NAME).la ] ; then \
$(LIBTOOL) --mode=install --tag=CC $(INSTALL_BIN) $(MODULE_NAME).la $(DESTDIR)$(LIBEXECDIR) ; \
fi
install-misc:
$(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0644 aws-cacerts.pem $(DESTDIR)$(sysconfdir)/aws-cacerts.pem
clean:
$(LIBTOOL) --mode=clean $(RM) $(MODULE_NAME).a $(MODULE_NAME).la *.o *.gcno *.lo .libs/*.o cloudwatch/*.o cloudwatch/*.lo
distclean: clean
$(RM) Makefile $(MODULE_NAME).h config.status config.cache config.log *.gcda *.gcno
-$(RM) -r .libs/ .git/ CVS/ RCS/
# Run the API unit tests
check:
test -z "$(ENABLE_TESTS)" || (cd t/ && $(MAKE) api-tests)