diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/civetweb/test/MakefileTest.mk | |
parent | Initial commit. (diff) | |
download | ceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.tar.xz ceph-6d07fdb6bb33b1af39833b850bb6cf8af79fe293.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/civetweb/test/MakefileTest.mk')
-rw-r--r-- | src/civetweb/test/MakefileTest.mk | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/src/civetweb/test/MakefileTest.mk b/src/civetweb/test/MakefileTest.mk new file mode 100644 index 000000000..08d8e337e --- /dev/null +++ b/src/civetweb/test/MakefileTest.mk @@ -0,0 +1,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 |