You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
2.2 KiB

  1. --- a/builders/make/compile.mk
  2. +++ b/builders/make/compile.mk
  3. @@ -43,17 +43,22 @@ FEATURES_DEFINES = \
  4. -DHAS_PROTOCOL_RTP \
  5. -DHAS_PROTOCOL_TS \
  6. -DHAS_PROTOCOL_VAR \
  7. + -DHAS_PROTOCOL_CLI \
  8. + -DHAS_PROTOCOL_HLS \
  9. + -DHAS_PROTOCOL_RAWHTTPSTREAM \
  10. -DHAS_LUA \
  11. -DHAS_MEDIA_MP3 \
  12. -DHAS_MEDIA_MP4 \
  13. - -DHAS_MEDIA_FLV
  14. + -DHAS_MEDIA_FLV \
  15. + -DHAS_SYSLOG
  16. +
  17. DEFINES = $(PLATFORM_DEFINES) $(FEATURES_DEFINES)
  18. #library paths
  19. SSL_INCLUDE=-I$(SSL_BASE)/include
  20. -SSL_LIB=-L$(SSL_BASE)/lib -lssl -lcrypto
  21. +SSL_LIB=-L$(SSL_BASE)/lib -lssl -lcrypto -ldl
  22. #lua
  23. LUA_INCLUDE=-I$(PROJECT_BASE_PATH)/3rdparty/lua-dev
  24. @@ -67,25 +72,25 @@ TINYXML_OBJS = $(TINYXML_SRCS:.cpp=.tiny
  25. #common
  26. COMMON_INCLUDE=$(LUA_INCLUDE) $(TINYXML_INCLUDE) $(SSL_INCLUDE) -I$(PROJECT_BASE_PATH)/sources/common/include
  27. -COMMON_LIBS=$(SSL_LIB) -L$(OUTPUT_DYNAMIC) -llua -ltinyxml -lcrypt
  28. +COMMON_LIBS=$(SSL_LIB) -L$(OUTPUT_DYNAMIC) $(PROJECT_BASE_PATH)/builders/make/output/dynamic/liblua.so -ltinyxml -lcrypt -ldl
  29. COMMON_SRCS = $(shell find $(PROJECT_BASE_PATH)/sources/common/src -type f -name "*.cpp")
  30. COMMON_OBJS = $(COMMON_SRCS:.cpp=.common.o)
  31. #thelib
  32. THELIB_INCLUDE=$(COMMON_INCLUDE) -I$(PROJECT_BASE_PATH)/sources/thelib/include
  33. -THELIB_LIBS=$(COMMON_LIBS) -L$(OUTPUT_DYNAMIC) -lcommon
  34. +THELIB_LIBS=$(COMMON_LIBS) -L$(OUTPUT_DYNAMIC) -lcommon -ldl
  35. THELIB_SRCS = $(shell find $(PROJECT_BASE_PATH)/sources/thelib/src -type f -name "*.cpp")
  36. THELIB_OBJS = $(THELIB_SRCS:.cpp=.thelib.o)
  37. #tests
  38. TESTS_INCLUDE=$(THELIB_INCLUDE) -I$(PROJECT_BASE_PATH)/sources/tests/include
  39. -TESTS_LIBS=$(THELIB_LIBS) -L$(OUTPUT_DYNAMIC) -lthelib
  40. +TESTS_LIBS=$(THELIB_LIBS) -L$(OUTPUT_DYNAMIC) -lthelib -ldl
  41. TESTS_SRCS=$(shell find $(PROJECT_BASE_PATH)/sources/tests/src -type f -name "*.cpp")
  42. TESTS_OBJS=$(TESTS_SRCS:.cpp=.tests.o)
  43. #crtmpserver
  44. CRTMPSERVER_INCLUDE=$(THELIB_INCLUDE) -I$(PROJECT_BASE_PATH)/sources/crtmpserver/include
  45. -CRTMPSERVER_LIBS=$(THELIB_LIBS) -L$(OUTPUT_DYNAMIC) -lthelib
  46. +CRTMPSERVER_LIBS=$(THELIB_LIBS) -L$(OUTPUT_DYNAMIC) -lthelib -ldl
  47. CRTMPSERVER_SRCS=$(shell find $(PROJECT_BASE_PATH)/sources/crtmpserver/src -type f -name "*.cpp")
  48. CRTMPSERVER_OBJS_DYNAMIC=$(CRTMPSERVER_SRCS:.cpp=.crtmpserver_dynamic.o)
  49. CRTMPSERVER_OBJS_STATIC=$(CRTMPSERVER_SRCS:.cpp=.crtmpserver_static.o)