- 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)
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,17 @@ |
1 |
+# Kamailio build system |
|
2 |
+# |
|
3 |
+# remake cfg defs (include) |
|
4 |
+# |
|
5 |
+# depends on COREPATH being defined |
|
6 |
+# |
|
7 |
+# |
|
8 |
+ |
|
9 |
+ |
|
10 |
+#create config if needed |
|
11 |
+$(COREPATH)/config.mak: makefile_defs=0 |
|
12 |
+$(COREPATH)/config.mak: exported_vars=0 |
|
13 |
+$(COREPATH)/config.mak: config_mak=0 |
|
14 |
+ |
|
15 |
+$(COREPATH)/config.mak: $(COREPATH)/Makefile.defs |
|
16 |
+ $(MAKE) -wC $(COREPATH) cfg-defs |
|
17 |
+ |