Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,32 @@
1
+# variables to change
2
+
3
+INCLUDES += -I$(CURDIR)
4
+LIBS     += -L$(CURDIR)/cds -L$(CURDIR)/qsa
5
+DEFS     += -Wall
6
+
7
+####################################
8
+# make rules
9
+
10
+export LIBS
11
+export DEFS
12
+export INCLUDES
13
+
14
+SUBDIRS=binrpc cds xcap presence
15
+
16
+.PHONY: subdirs $(SUBDIRS) 
17
+
18
+# clean install tags proper
19
+
20
+subdirs:	$(SUBDIRS)
21
+
22
+$(SUBDIRS):	
23
+			@echo "Making $(MAKECMDGOALS) in $@" ; $(MAKE) -f Makefile.nonser $(MAKECMDGOALS) -C $@
24
+
25
+all:	subdirs
26
+
27
+proper:	clean
28
+
29
+clean:	subdirs
30
+
31
+install:	subdirs
32
+