remote pool_handle_t
[tlspool] / Makefile
1 # TLSPool Makefile-for-building-with-CMake
2 #
3 # This Makefile is just a stub: it invokes CMake, which in turn
4 # generates Makefiles, and then uses those to make the project.
5 #
6 # Useful Make parameters at this level are:
7 #       PREFIX=/usr/local
8 #
9 # For anything else, do this:
10 #
11 #       make configure                 # Basic configure
12 #       ( cd build ; ccmake )          # CMake GUI for build configuration
13 #       ( cd build ; make install )    # Build and install
14 #
15 PREFIX ?= /usr/local
16
17 all: compile
18
19 build-dir:
20         @mkdir -p build
21
22 configure: _configure build-dir build/CMakeCache.txt
23
24 _configure:
25         @rm -f build/CMakeCache.txt
26
27 build/CMakeCache.txt:
28         ( cd build && cmake .. -DCMAKE_INSTALL_PREFIX=$(PREFIX) )
29
30 compile: build-dir build/CMakeCache.txt
31         ( cd build && $(MAKE) )
32
33 install: build-dir
34         ( cd build && $(MAKE) install )
35
36 test: build-dir
37         ( cd build && $(MAKE) test )
38
39 uninstall: build-dir
40         ( cd build && $(MAKE) uninstall )
41
42 clean:
43         rm -rf build/
44
45 package: compile
46         ( cd build && $(MAKE) package )
47