Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
2,621 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# print example module makefile | ||
# | ||
# WARNING: do not run this directly, it should be run by the master Makefile | ||
|
||
include ../../Makefile.defs | ||
auto_gen= | ||
NAME=cgrates.so | ||
|
||
ifeq ($(CROSS_COMPILE),) | ||
JSON_BUILDER = $(shell \ | ||
if pkg-config --exists json; then \ | ||
echo 'pkg-config json'; \ | ||
elif pkg-config --exists json-c; then\ | ||
echo 'pkg-config json-c'; \ | ||
fi) | ||
|
||
endif | ||
|
||
ifeq ($(JSON_BUILDER),) | ||
DEFS += -I$(LOCALBASE)/include -I$(SYSBASE)/include | ||
LIBS += -L$(LOCALBASE)/lib -ljson | ||
else | ||
JSON_LIB_VER = $(shell $(JSON_BUILDER) --modversion | sed "s/\.\([0-9]\)\./.0\1./g" | sed "s/\.\([0-9]\)\$$/.0\1/g" | tr -d "." | sed -e "s/^0*//" ) | ||
DEFS += $(shell $(JSON_BUILDER) --cflags) -DJSON_LIB_VERSION=$(JSON_LIB_VER) | ||
LIBS += $(shell $(JSON_BUILDER) --libs) | ||
endif | ||
|
||
include ../../Makefile.modules | ||
|
Oops, something went wrong.