... | ... |
@@ -1,69 +1,8 @@ |
1 |
-# $Id$ |
|
2 |
-# |
|
3 |
-# sip_router makefile |
|
1 |
+# Kamailio makefile |
|
4 | 2 |
# |
5 | 3 |
# WARNING: requires gmake (GNU Make) |
6 | 4 |
# Arch supported: Linux, FreeBSD, SunOS (tested on Solaris 8), OpenBSD (3.2), |
7 |
-# NetBSD (1.6). |
|
8 |
-# |
|
9 |
-# History: |
|
10 |
-# -------- |
|
11 |
-# created by andrei |
|
12 |
-# 2003-02-24 make install no longer overwrites ser.cfg - patch provided |
|
13 |
-# by Maxim Sobolev <sobomax@FreeBSD.org> and |
|
14 |
-# Tomas Björklund <tomas@webservices.se> |
|
15 |
-# 2003-03-11 PREFIX & LOCALBASE must also be exported (andrei) |
|
16 |
-# 2003-04-07 hacked to work with solaris install (andrei) |
|
17 |
-# 2003-04-17 exclude modules overwritable from env. or cmd. line, |
|
18 |
-# added include_modules and skip_modules (andrei) |
|
19 |
-# 2003-05-30 added extra_defs & EXTRA_DEFS |
|
20 |
-# Makefile.defs force-included to allow recursive make |
|
21 |
-# calls -- see comment (andrei) |
|
22 |
-# 2003-06-02 make tar changes -- unpacks in $NAME-$RELEASE (andrei) |
|
23 |
-# 2003-06-03 make install-cfg will properly replace the module path |
|
24 |
-# in the cfg (re: /usr/.*lib/ser/modules) |
|
25 |
-# ser.cfg.default is installed only if there is a previous |
|
26 |
-# cfg. -- fixes packages containing ser.cfg.default (andrei) |
|
27 |
-# 2003-08-29 install-modules-doc split from install-doc, added |
|
28 |
-# install-modules-all, removed README.cfg (andrei) |
|
29 |
-# added skip_cfg_install (andrei) |
|
30 |
-# 2004-09-02 install-man will automatically "fix" the path of the files |
|
31 |
-# referred in the man pages |
|
32 |
-# 2006-02-14 added utils & install-utils (andrei) |
|
33 |
-# 2006-03-15 added nodeb parameter for make tar (andrei) |
|
34 |
-# 2006-09-29 added modules-doc as target and doc_format= as make option (greger) |
|
35 |
-# 2006-12-09 added new group_include as make option and defined groups |
|
36 |
-# defining which modules to include. Also added new target |
|
37 |
-# print-modules that you can use to check which modules will be |
|
38 |
-# compiled (greger) |
|
39 |
-# 2007-01-10 added new group_include targets mysql, radius, and presence |
|
40 |
-# improved print-modules output fixed problem in include/exclude |
|
41 |
-# logic when using group_include (greger) |
|
42 |
-# 2007-03-01 fail if a module or a required utility make fail unless |
|
43 |
-# err_fail=0; don't try to make modules with no Makefiles (andrei) |
|
44 |
-# 2007-03-16 moved the exports to Makefile.defs (andrei) |
|
45 |
-# 2007-03-29 install-modules changed to use make -C modpath install (andrei) |
|
46 |
-# 2007-05-04 "if ! foo" not supported in standard sh, switched to |
|
47 |
-# "if foo; then :; else ... ; fi" (andrei) |
|
48 |
-# 2008-06-23 added 2 new targets: README and man (re-generate the README |
|
49 |
-# or manpages for all the modules) (andrei) |
|
50 |
-# 2008-06-25 make cfg support (use a pre-built cfg.: config.mak) (andrei) |
|
51 |
-# 2008-06-28 added clean-all, proper-all, install-modules-man and error |
|
52 |
-# checks for install-utils & doc (andrei) |
|
53 |
-# 2008-07-01 split module list from config.mak into modules.lst so that |
|
54 |
-# the modules list can be changed without rebuilding the whole |
|
55 |
-# ser (andrei) |
|
56 |
-# added cfg-defs, new target that only rebuilds config.mak |
|
57 |
-# 2009-03-10 replaced DEFS with C_DEFS (DEFS are now used only for |
|
58 |
-# "temporary" defines inside modules or libs) (andrei) |
|
59 |
-# 2009-03-27 multiple modules directory support, see modules_dirs (andrei) |
|
60 |
-# 2009-04-02 workaround for export not supported in gnu make 3.80 |
|
61 |
-# target specific variables: use mk_params for each |
|
62 |
-# $(MAKE) invocation (andrei) |
|
63 |
-# 2009-04-22 don't rebuild config.mak or modules.lst if not needed |
|
64 |
-# (e.g. on clean) (andrei) |
|
65 |
-# 2009-06-24 auto-generate autover.h, containing the REPO_VER macro, defined |
|
66 |
-# to the top git commit sha (if git is found) (andrei) |
|
5 |
+# NetBSD (1.6), OS/X |
|
67 | 6 |
# |
68 | 7 |
|
69 | 8 |
# check make version |
... | ... |
@@ -1,3 +1,4 @@ |
1 |
+# Kamailio build system |
|
1 | 2 |
|
2 | 3 |
# |
3 | 4 |
# makefile defs (CC, LD,a.s.o) |
... | ... |
@@ -9,75 +10,6 @@ |
9 | 9 |
# exclude_modules, skip_modules, include_modules |
10 | 10 |
# extra_defs |
11 | 11 |
# |
12 |
-# History: |
|
13 |
-# -------- |
|
14 |
-# created by andrei |
|
15 |
-# 2003-02-24 added LOCALBASE, fixed doc_dir for freebsd - patch provided |
|
16 |
-# by Maxim Sobolev <sobomax@FreeBSD.org> |
|
17 |
-# 2003-02-25 added -DDISABLE_NAGLE (andrei) |
|
18 |
-# 2003-03-02 added -DDIGEST_DOMAIN (janakj) |
|
19 |
-# 2003-03-10 added -xcode=pic32 for module compilation w/ sun cc |
|
20 |
-# (too many symbols for pic13) (andrei) |
|
21 |
-# 2003-04-16 added CC_EXTRA_OPTS, s/march/mcpu, added CPU (cpu to optimize |
|
22 |
-# for, used only with gcc-3.x) (andrei) |
|
23 |
-# 2003-05-23 check if this makefile was already included (andrei) |
|
24 |
-# removed -DDIGEST_DOMAIN (andrei) |
|
25 |
-# 2003-05-30 added extra_defs (andrei) |
|
26 |
-# 2003-06-06 moved compiler detection before DEFS (andrei) |
|
27 |
-# 2003-06-10 removed -m32 for gcc 3.x/sparc64 -- it will use |
|
28 |
-# arch. default: -m32 on solaris, -m64 on *bsd (andrei) |
|
29 |
-# 2003-09-25 added -pthread into LIBS when compiling on FreeBSD/alpha |
|
30 |
-# and other FreeBSD arches for which no fast locking assembly |
|
31 |
-# code exists (sobomax) |
|
32 |
-# 2003-11-08 mips1 support introduced (andrei) |
|
33 |
-# 2003-11-24 openbsd 3.4 (elf) fixes (andrei) |
|
34 |
-# 2004-07-27 darwin (mac os x) port (andrei) |
|
35 |
-# 2004-09-12 mips2 & cobalt support introduced (andrei) |
|
36 |
-# 2004-09-28 x86_64 support introduced (andrei) |
|
37 |
-# 2004-12-14 gcc-3.4 special case added (andrei) |
|
38 |
-# 2004-12-15 HAVE_ALLOCA_H added (andrei) |
|
39 |
-# 2004-12-19 amd64 transformed in x86_64 (andrei) |
|
40 |
-# 2005-04-27 alpha support added (andrei) |
|
41 |
-# 2005-06-01 use $(LOCALBASE) instead of /usr/{local,pkg} (andrei) |
|
42 |
-# 2005-06-26 numeric OSREL & HAVE_KQUEUE added to the *BSD (andrei) |
|
43 |
-# 2005-07-04 HAVE_DEVPOLL added to solaris (andrei) |
|
44 |
-# 2005-07-06 gcc 4.0 optimizations support (andrei) |
|
45 |
-# 2005-07-25 better solaris arch detection (andrei) |
|
46 |
-# 2005-09-12 -mallign-double removed (too many problems) (andrei) |
|
47 |
-# 2005-10-02 distcc get gcc version hack (andrei) |
|
48 |
-# 2006-03-30 64 bit mode compile by default on sparc64 (-m64), added |
|
49 |
-# CC_GCC_LIKE_ASM and SPARC64_MODE (andrei) |
|
50 |
-# sparc <= v8 support (andrei) |
|
51 |
-# 2006-03-31 armv6 & mips64 support added |
|
52 |
-# mips and arm set to NOSMP by default (andrei) |
|
53 |
-# 2006-07-10 added -DPROFILING (hscholz) |
|
54 |
-# 2007-02-09 added TLS_HOOKS and CORE_TLS support, obsoleted TLS=1 |
|
55 |
-# added TLS_EXTRA_LIBS (andrei) |
|
56 |
-# 2007-03-16 added LIB building options: LIB_LDFLAGS, LIB_SONAME, LIB_RPATH, |
|
57 |
-# INSTALL_LIB, libraries install paths (andrei) |
|
58 |
-# 2007-05-14 futex support if linux 2.5.70+ and |
|
59 |
-# use_futex=yes (default) (andrei) |
|
60 |
-# 2007-05-26 changed darwin module link flags (instead of -bundle_loader ser |
|
61 |
-# -flat_namespace -undefined suppress) (andrei) |
|
62 |
-# 2007-07-07 use isainfo -n to detect cpu type on solaris (andrei) |
|
63 |
-# 2007-07-07 added HAVE_SCHED_SETSCHEDULER for linux (andrei) |
|
64 |
-# 2007-07-18 added DNS_WATCHDOG_SUPPORT (Miklos) |
|
65 |
-# 2007-07-30 added USE_DNS_CACHE_STATS and USE_DST_BLACKLIST_STATS (Gergo) |
|
66 |
-# 2008-06-26 support for make cfg / config.mak and hack to load |
|
67 |
-# automatically config.mak when included from a module, lib |
|
68 |
-# a.s.o (not from the main Makefile) (andrei) |
|
69 |
-# 2009-03-10 replaced DEFS with C_DEFS and INCLUDES with C_INCLUDES (DEFS |
|
70 |
-# and INCLUDES are now used only for "temporary" defines/includes |
|
71 |
-# inside modules or libs) (andrei) |
|
72 |
-# 2009-09-29 for gcc 4.2+ use -fno-strict-overflow (andrei) |
|
73 |
-# 2009-09-30 find the target architecture from the compiler and not |
|
74 |
-# from the host (andrei) |
|
75 |
-# 2009-10-01 use -fsigned-char for gcc on ppc, ppc64, arm and arm6 |
|
76 |
-# (on those archs char is unsigned by default) (andrei) |
|
77 |
-# 2010-03-10 added CC_MKDEP_OPTS, which contains to the list of options |
|
78 |
-# needed to generate dependencies on-the-fly while compiling |
|
79 |
-# or is empty if the compiler doesn't support it (andrei) |
|
80 |
- |
|
81 | 12 |
|
82 | 13 |
# default silent, unless Q= 0|no|off|verbose|noisy |
83 | 14 |
quiet?=$(if $(filter 0 no off verbose noisy,$(Q)),verbose,silent) |
... | ... |
@@ -1,15 +1,8 @@ |
1 |
-# |
|
2 |
-# $Id$ |
|
1 |
+# Kamailio build system |
|
3 | 2 |
# |
4 | 3 |
# module Makefile |
5 | 4 |
#(to be included from each library makefile) |
6 | 5 |
# |
7 |
-# History: |
|
8 |
-# -------- |
|
9 |
-# 2007-03-16 created by andrei |
|
10 |
-# 2007-05-19 rebuild on changed install name on darwin (andrei) |
|
11 |
-# 2008-06-27 make cfg / config.mak support (andrei) |
|
12 |
- |
|
13 | 6 |
# NAME, MAJOR_VER and MINOR_VER should be pre-defined in the library |
14 | 7 |
# makefile |
15 | 8 |
# |
... | ... |
@@ -1,23 +1,8 @@ |
1 |
-# |
|
2 |
-# $Id$ |
|
1 |
+# Kamailio build system |
|
3 | 2 |
# |
4 | 3 |
# module Makefile |
5 | 4 |
#(to be included from each module) |
6 | 5 |
# |
7 |
-# History: |
|
8 |
-# -------- |
|
9 |
-# 2007-03-29 if a module depends on SER_LIBS, it will be rebuilt on install |
|
10 |
-# with the proper rpath; libraries will be automatically |
|
11 |
-# installed if needed (andrei) |
|
12 |
-# 2008-06-23 added the README & man targets (andrei) |
|
13 |
-# 2008-06-27 make cfg / config.mak support (andrei) |
|
14 |
-# 2009-03-10 replaced DEFS with C_DEFS and INCLUDES with C_INCLUDES (DEFS |
|
15 |
-# and INCLUDES are now used only for "temporary" defines/includes |
|
16 |
-# inside modules or libs) (andrei) |
|
17 |
-# 2009-10-01 added support for automatically installing extra utils, |
|
18 |
-# scripts and cfg files (andrei) |
|
19 |
-# 2010-03-04 don't overwrite already installed .cfgs, save the .cfg as |
|
20 |
-# .sample in this case (andrei) |
|
21 | 6 |
# |
22 | 7 |
|
23 | 8 |
# |
... | ... |
@@ -1,6 +1,4 @@ |
1 |
-# |
|
2 |
-# $Id$ |
|
3 |
-# |
|
1 |
+# Kamailio build system |
|
4 | 2 |
# |
5 | 3 |
# common Makefile rules, included by main Makefile & the modules |
6 | 4 |
# |
... | ... |
@@ -15,21 +13,6 @@ |
15 | 15 |
# built if necessary. Format: path/shortname, where shortname is the |
16 | 16 |
# name passed to -l (e.g. for libprint.so the shortname is print) |
17 | 17 |
# |
18 |
-# History: |
|
19 |
-# -------- |
|
20 |
-# 2007-03-29 set rpath differently for make install |
|
21 |
-# automatically build listed SER_LIBS if needed (andrei) |
|
22 |
-# 2008-06-23 automatically rebuild if make time defines or includes |
|
23 |
-# changed (via makecfg.lst) |
|
24 |
-# 2009-03-10 support for C_DEFS and C_INCLUDES (DEFS and INCLUDES are now |
|
25 |
-# used only for "temporary" defines/includes inside modules or |
|
26 |
-# libs, C_DEFS and C_INCLUDES are used for the common stuff) |
|
27 |
-# (andrei) |
|
28 |
-# 2010-03-09 generate dependencies when compiling .o instead of on |
|
29 |
-# include .d and fix build errors when a .h is moved |
|
30 |
-# support for using MKDEP="makedepend-f-" (andrei) |
|
31 |
-# 2010-03-10 support for on the-fly dependency generation (while compiling, |
|
32 |
-# see CC_MKDEP_OPTS) (andrei) |
|
33 | 18 |
|
34 | 19 |
|
35 | 20 |
# check if the saved cfg corresponds with the current one |
... | ... |
@@ -1,17 +1,10 @@ |
1 |
+# Kamailio build system |
|
1 | 2 |
|
2 |
-# |
|
3 |
-# $Id$ |
|
4 |
-# |
|
5 |
-# |
|
6 | 3 |
# Makefile targets that should be treated specially, |
7 | 4 |
# e.g.: non obj/executable affecting targets => don't build dependencies for |
8 | 5 |
# them or don't try any action that would be useful only for generating |
9 | 6 |
# actual code |
10 | 7 |
# |
11 |
-# History: |
|
12 |
-# -------- |
|
13 |
-# 2008-06-26 initial version (andrei) |
|
14 |
-# |
|
15 | 8 |
|
16 | 9 |
ifeq (,$(strip $(modules_dirs))) |
17 | 10 |
include $(COREPATH)/Makefile.dirs |
... | ... |
@@ -1,12 +1,8 @@ |
1 |
-# |
|
2 |
-# $Id$ |
|
1 |
+# Kamailio build system |
|
3 | 2 |
# |
4 | 3 |
# utils Makefile |
5 | 4 |
#(to be included from each util/ subdirectory) |
6 | 5 |
# |
7 |
-# History: |
|
8 |
-# -------- |
|
9 |
-# 2009-04-23 initial version derived from Makefile.modules (andrei) |
|
10 | 6 |
|
11 | 7 |
# |
12 | 8 |
# Variables that should be defined in the util Makefiles, prior to including |