This repository has been archived by the owner on Jan 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathMakefile.am
178 lines (147 loc) · 4.19 KB
/
Makefile.am
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
## Process this file with automake to produce Makefile.in
## $Id$
include $(SFS_LIB_MK)
if USE_PTHREADS
PTHR = libamt_pthread
endif
SBD1 = \
libpub \
xmlrpcc \
libahttp \
libokxml \
libaok \
libamt \
$(PTHR) \
libokssl \
libweb \
librfn \
pub
if USE_MYSQL
SBD2 = libamysql ezdb
endif
if HAVE_PYTHON
SBD3 = py
endif
if USE_REDIS
SBD4 = libredis
endif
SUBDIRS = $(SBD1) \
$(SBD2) \
okd \
ssld \
logd \
client \
test \
conf \
htdocs \
$(SBD3) \
$(SBD4) \
contrib
##
## New aclocal (1.10+) is asking for this...
##
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = setup autoconf.sed .cvsignore setup.gnu acokws.m4 \
build/flex_vers.pl
okwsbuildtools_DATA = acokws.m4
CLEANFILES = core *.core *~
MAINTAINERCLEANFILES = \
aclocal.m4 install-sh mkinstalldirs missing depcomp \
configure config.guess config.sub config.h.in \
ltconfig ltmain.sh \
INSTALL COPYING Makefile.in stamp-h.in
okwsinclude_HEADERS = okwsconf.h
BUILT_SOURCES = okwsconf.h
DISTCLEANFILES = okwsconf.h stamp-auto-h autom4te*.cache
all-recursive install-recursive: okwsconf.h
okwsconf.h: stamp-auto-h
@:
stamp-auto-h: $(srcdir)/autoconf.sed $(CONFIG_HEADER)
@rm -f autoconf.h~
sed -f $(srcdir)/autoconf.sed $(CONFIG_HEADER) > autoconf.h~
cmp autoconf.h~ okwsconf.h > /dev/null 2>& 1 \
|| mv -f autoconf.h~ okwsconf.h
@rm -f autoconf.h~
@echo timepstamp > stamp-auto-h
dist-hook:
cd $(distdir) && rm -f okwsconf.h
cd $(distdir) && chmod -x setup
install-data-local:
-src=$(DESTDIR)$(okwsincludedirp); dst=$(DESTDIR)$(pkgincludedir); \
rm -f $$dst; \
if test "`dirname $$src`" = "`dirname $$dst`"; then \
ln -s "`basename $$src`" $$dst; \
else \
ln -s $(okwsincludedirp) $$dst; \
fi
install-exec-local:
-src=$(DESTDIR)$(okwslibdirp); dst=$(DESTDIR)$(pkglibdir); \
rm -f $$dst; \
if test "`dirname $$src`" = "`dirname $$dst`"; then \
ln -s "`basename $$src`" $$dst; \
else \
ln -s $(okwslibdirp) $$dst; \
fi
install-data-hook:
$(INSTALL_DATA) libpub/env.mk $(DESTDIR)$(okwslibdir)
uninstall-local:
-rm -f $(DESTDIR)$(pkglibdir) $(DESTDIR)$(pkgincludedir)
-rmdir $(DESTDIR)$(okwslibdir) $(DESTDIR)$(owksincludedir) \
$(DESTDIR)$(confdir)
all-recursive-am: aux-all
#mostlyclean-recursive: aux-mostlyclean
#clean-recursive: aux-clean
distclean-recursive: aux-distclean
maintainer-clean-recursive: aux-maintainer-clean
AUX_TARGET = `echo $@ | sed -e 's/^aux-//'`
.PHONY: aux-all aux-mostlyclean aux-clean aux-distclean aux-maintainer-clean
aux-all aux-mostlyclean aux-clean aux-distclean aux-maintainer-clean:
test -z "$(GMP_DIR)" || (cd "$(GMP_DIR)" && $(MAKE) $(AUX_TARGET))
test -z "$(DB3_DIR)" -o "$(DB3_DIR)" = "@"DB3_DIR"@" \
|| (cd "$(DB3_DIR)/dist" && $(MAKE) $(AUX_TARGET))
.PHONY: rpcclean
rpcclean:
for dir in libpub libweb libamysql libaok; do \
(cd $$dir && $(MAKE) rpcclean); \
done
.PHONY: tameclean
tameclean:
for dir in libpub libahttp libaok libweb okd pub client test ; do \
(cd $$dir && $(MAKE) tameclean); \
done
.PHONY: ready_test
ready_test: all
sh $(srcdir)/contrib/okws-test-touch-all.sh ; \
for dir in test; do \
(cd $$dir && $(MAKE) test); \
done
.PHONY: test
test: ready_test
@echo =======================================================
@echo " Starting up OKWS in place for testing!"
@echo " - config file: test/system/okws_config"
@echo " - Binding to: Port 8081"
@echo " - Running okld as: you!"
@echo " Hit Control-C to end test."
@echo =======================================================
okd/okld -f test/system/okws_config
.PHONY: regtest regtest-stage1
regtest: ready_test
python $(srcdir)/test/regtest/run.py
regtest-stage1: ready_test
python $(srcdir)/test/regtest/run.py -m
.PHONY: roottest
roottest: install
sh contrib/okws-init-jail.sh \
-f $(okwsconfdir)/okws_config.dist \
$(okwssvcdir)/
@echo =======================================================
@echo " Starting up OKWS in place for testing!"
@echo " - config file: $(okwsconfdir)/okws_config.dist"
@echo " - Binding to: Port 80"
@echo " - Running okld as: root"
@echo " Hit Control-C to end test."
@echo =======================================================
$(okwsbindir)/okld -f $(okwsconfdir)/okws_config.dist
.PHONY: buildclean
buildclean: tameclean rpcclean