blob: 08d8e337e9797ab29c3673013de839fd00ca7d64 (
plain)
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
|
#
# Copyright (c) 2013 No Face Press, LLC
# License http://opensource.org/licenses/mit-license.php MIT License
#
#This makefile is used to test the other Makefiles
TOP = ..
TEST_OUT = test_install
include $(TOP)/resources/Makefile.in-os
all: test
test: buildoptions buildlibs buildinstall
test: buildexamples threaded
ifeq ($(TARGET_OS),OSX)
test: dmg
endif
test: clean
@echo PASSED
dmg:
@echo "================"
$(MAKE) -C $(TOP) -f Makefile.osx clean package
buildexamples:
@echo "================"
$(MAKE) -C $(TOP)/examples/embedded_c clean all
$(MAKE) -C $(TOP)/examples/embedded_c clean
@echo "================"
$(MAKE) -C $(TOP)/examples/embedded_cpp clean all
$(MAKE) -C $(TOP)/examples/embedded_cpp clean
@echo "================"
$(MAKE) -C $(TOP)/examples/chat clean all
$(MAKE) -C $(TOP)/examples/chat clean
@echo "================"
$(MAKE) -C $(TOP)/examples/hello clean all
$(MAKE) -C $(TOP)/examples/hello clean
@echo "================"
$(MAKE) -C $(TOP)/examples/post clean all
$(MAKE) -C $(TOP)/examples/post clean
@echo "================"
$(MAKE) -C $(TOP)/examples/upload clean all
$(MAKE) -C $(TOP)/examples/upload clean
@echo "================"
$(MAKE) -C $(TOP)/examples/websocket clean all
$(MAKE) -C $(TOP)/examples/websocket clean
buildoptions:
@echo "================"
$(MAKE) -C $(TOP) clean build
@echo "================"
$(MAKE) -C $(TOP) clean build WITH_IPV6=1
@echo "================"
$(MAKE) -C $(TOP) clean build WITH_WEBSOCKET=1
@echo "================"
$(MAKE) -C $(TOP) clean build WITH_LUA=1
@echo "================"
$(MAKE) -C $(TOP) clean build WITH_LUA=1 WITH_IPV6=1 WITH_WEBSOCKET=1
threaded:
@echo "================"
$(MAKE) -j 8 -C $(TOP) clean WITH_LUA=1
$(MAKE) -j 8 -C $(TOP) build WITH_LUA=1
buildinstall:
@echo "================"
$(MAKE) -C $(TOP) clean install PREFIX=$(TEST_OUT)
buildlibs:
@echo "================"
$(MAKE) -C $(TOP) clean lib
@echo "================"
$(MAKE) -C $(TOP) clean slib
@echo "================"
$(MAKE) -C $(TOP) clean lib WITH_CPP=1
@echo "================"
$(MAKE) -C $(TOP) clean slib WITH_CPP=1
clean:
@echo "================"
$(MAKE) -C $(TOP) clean
rm -rf $(TOP)/$(TEST_OUT)
.PHONY: all buildoptions buildinstall clean os linux
|