Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 59 lines (47 sloc) 1.461 kb
16ba2af @msporny Added first version of dependency tracking build script using common
msporny authored
1 # The top-level Makefile that is used to build
2
2222b22 @msporny Added ability to build 3rdparty libraries before all other libraries are
msporny authored
3 SUBDIRS := 3rdparty/cpp \
4 rt/cpp \
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
5 util/cpp \
f6ab778 @msporny Fixed several files that were not compiling when performing a Windows
msporny authored
6 io/cpp \
7 logging/cpp \
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
8 modest/cpp \
e5e9d8f @msporny Added ability to build all libraries using the new dependency-tracking
msporny authored
9 event/cpp \
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
10 config/cpp \
11 crypto/cpp \
08a54db @dlongley Added compress path for gzip classes.
dlongley authored
12 compress/cpp \
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
13 data/cpp \
e5e9d8f @msporny Added ability to build all libraries using the new dependency-tracking
msporny authored
14 net/cpp \
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
15 mail/cpp \
f5bed39 @davidlehn Move Sphinx client from bitmunk to dbcore.
davidlehn authored
16 sphinx/cpp \
e5e9d8f @msporny Added ability to build all libraries using the new dependency-tracking
msporny authored
17 sql/cpp \
8aec9c6 @davidlehn Add validation framework library, build support, and tests.
davidlehn authored
18 validation/cpp \
724ab3f @davidlehn Move App to new app library.
davidlehn authored
19 app/cpp \
e07eac7 @msporny Added ability to do parallel builds and fixed dependency issue when
msporny authored
20 test/cpp
e5e9d8f @msporny Added ability to build all libraries using the new dependency-tracking
msporny authored
21
f1c1fb7 @davidlehn Add verbose-commands make target.
davidlehn authored
22 ifndef PRINT_DIRECTORIES
23 PRINT_DIRECTORIES_OPTS = --no-print-directory -s
6936b86 @msporny Fixed the 'clean' build rule such that any .P dependencies are no longer...
msporny authored
24 endif
f1c1fb7 @davidlehn Add verbose-commands make target.
davidlehn authored
25 ifdef PRINT_COMMANDS
26 PRINT_COMMANDS_OPTS = PRINT_COMMANDS=$(PRINT_COMMANDS)
27 endif
28
29 MAKE_CMD = $(PRINT_COMMANDS_OPTS) $(MAKE) -j -l 5.0 $(PRINT_DIRECTORIES_OPTS)
30 MAKE_DIR = $(PRINT_COMMANDS_OPTS) $(MAKE_CMD) -C $(dir)
6936b86 @msporny Fixed the 'clean' build rule such that any .P dependencies are no longer...
msporny authored
31
32 .PHONY: all verbose clean test internal-docs
16ba2af @msporny Added first version of dependency tracking build script using common
msporny authored
33
34 all:
38d0510 @msporny Fixed several more build bugs when cross-compiling for windows and
msporny authored
35 @$(foreach dir,$(SUBDIRS),$(MAKE_DIR) build-objects build-libraries &&) true
16edb2c @davidlehn Quit build or clean on failure.
davidlehn authored
36 @$(foreach dir,$(SUBDIRS),$(MAKE_DIR) build-executables &&) true
e5e9d8f @msporny Added ability to build all libraries using the new dependency-tracking
msporny authored
37
38 clean:
6936b86 @msporny Fixed the 'clean' build rule such that any .P dependencies are no longer...
msporny authored
39 @$(foreach dir,$(SUBDIRS),MAKE_CLEAN_ACTIVE=true $(MAKE_DIR) clean &&) true
b74b933 @msporny Added shared library dependencies to the build process for shared librar...
msporny authored
40 @rm -rf libs/*
6936b86 @msporny Fixed the 'clean' build rule such that any .P dependencies are no longer...
msporny authored
41 @echo "Cleaned all objects and libraries."
9a5f87f @davidlehn Add test target.
davidlehn authored
42
43 test: all
7da6220 @msporny Fixed 'make test' rule so that it sets the LD_LIBRARY_PATH correctly.
msporny authored
44 LD_LIBRARY_PATH=@DBCOREDIR@/libs/linux test/cpp/dist/linux/run-unit-tests
3798238 @msporny Added ability to generate API documentation for DB Core.
msporny authored
45
46 internal-docs:
47 rm -rf docs/cpp-api
48 mkdir -p docs/cpp-api
49 doxygen setup/docs.doxygen
6936b86 @msporny Fixed the 'clean' build rule such that any .P dependencies are no longer...
msporny authored
50
51 verbose:
52 PRINT_DIRECTORIES=true $(MAKE) all
23cd8c2 @davidlehn Add valgrind make target and suppressions.
davidlehn authored
53
f1c1fb7 @davidlehn Add verbose-commands make target.
davidlehn authored
54 verbose-commands:
55 PRINT_DIRECTORIES=true PRINT_COMMANDS=true $(MAKE) all
56
23cd8c2 @davidlehn Add valgrind make target and suppressions.
davidlehn authored
57 valgrind:
59c9b48 @davidlehn Add valgrind runner script.
davidlehn authored
58 ./dbcore-valgrind test/cpp/dist/linux/run-unit-tests
Something went wrong with that request. Please try again.