Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

103 řádky
3.6KB

  1. ROOT:=../../sdk
  2. AVCODEC:=../../avcodec
  3. NOVERSION = 1
  4. #--------------------------------Output------------------------------
  5. # OUTTYPE: 0-exe, 1-dll, 2-static
  6. #--------------------------------------------------------------------
  7. OUTTYPE = 0
  8. OUTFILE = test
  9. #-------------------------------Include------------------------------
  10. #
  11. # INCLUDES = $(addprefix -I,$(INCLUDES)) # add -I prefix
  12. #--------------------------------------------------------------------
  13. INCLUDES = . $(ROOT)/include $(ROOT)/libaio/include $(ROOT)/libhttp/include $(ROOT)/libice/include \
  14. $(AVCODEC)/avbsf/include \
  15. $(AVCODEC)/avcodec/include \
  16. ../libdash/include \
  17. ../libflv/include \
  18. ../libhls/include \
  19. ../libmov/include \
  20. ../libmpeg/include \
  21. ../libmkv/include \
  22. ../librtmp/include \
  23. ../librtmp/aio \
  24. ../librtp/include \
  25. ../librtsp/include \
  26. ../libsip/include
  27. #-------------------------------Source-------------------------------
  28. #
  29. #--------------------------------------------------------------------
  30. SOURCE_PATHS = . $(ROOT)/source/digest $(ROOT)/libhttp/test \
  31. ../libmpeg/test ../libhls/demo \
  32. ../libdash/test ../libmov/test \
  33. ../libflv/test ../librtmp/aio ../librtmp/test \
  34. ../librtp/test ../librtsp/source/server/aio ../librtsp/test ../librtsp/test/media \
  35. ../libsip/test
  36. SOURCE_FILES = $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.cpp))
  37. SOURCE_FILES += $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.c))
  38. SOURCE_FILES += $(ROOT)/source/uri-parse.c
  39. SOURCE_FILES += $(ROOT)/source/urlcodec.c
  40. SOURCE_FILES += $(ROOT)/source/ntp-time.c
  41. SOURCE_FILES += $(ROOT)/source/time64.c
  42. SOURCE_FILES += $(ROOT)/source/base64.c
  43. SOURCE_FILES += $(ROOT)/source/unicode.c
  44. SOURCE_FILES += $(ROOT)/source/thread-pool.c
  45. SOURCE_FILES += $(ROOT)/source/app-log.c
  46. SOURCE_FILES += $(ROOT)/source/port/ip-route.c
  47. SOURCE_FILES += $(ROOT)/source/sockpair.c
  48. SOURCE_FILES += $(ROOT)/source/darray.c
  49. SOURCE_FILES += $(ROOT)/source/channel.c
  50. SOURCE_FILES += $(ROOT)/source/uuid.c
  51. SOURCE_FILES += $(ROOT)/source/random.c
  52. SOURCE_FILES += $(ROOT)/source/port/sysnetconfig.c
  53. SOURCE_FILES += $(ROOT)/libice/test/ice-transport.c
  54. SOURCE_FILES += $(ROOT)/deprecated/tools.c
  55. _SOURCE_FILES = $(ROOT)/libhttp/test/main.c
  56. SOURCE_FILES := $(filter-out $(_SOURCE_FILES),$(SOURCE_FILES))
  57. #-----------------------------Library--------------------------------
  58. #
  59. # LIBPATHS = $(addprefix -L,$(LIBPATHS)) # add -L prefix
  60. #--------------------------------------------------------------------
  61. LIBPATHS = $(ROOT)/libaio/$(BUILD).$(PLATFORM)
  62. ifdef RELEASE
  63. # relase library path
  64. LIBPATHS +=
  65. else
  66. LIBPATHS +=
  67. endif
  68. LIBS = rt pthread dl aio ssl crypt
  69. STATIC_LIBS = ../libdash/$(BUILD).$(PLATFORM)/libdash.a \
  70. ../libflv/$(BUILD).$(PLATFORM)/libflv.a \
  71. ../libhls/$(BUILD).$(PLATFORM)/libhls.a \
  72. ../libmov/$(BUILD).$(PLATFORM)/libmov.a \
  73. ../libmpeg/$(BUILD).$(PLATFORM)/libmpeg.a \
  74. ../librtmp/$(BUILD).$(PLATFORM)/librtmp.a \
  75. ../librtsp/$(BUILD).$(PLATFORM)/librtsp.a \
  76. ../librtp/$(BUILD).$(PLATFORM)/librtp.a \
  77. ../libsip/$(BUILD).$(PLATFORM)/libsip.a \
  78. $(ROOT)/libhttp/$(BUILD).$(PLATFORM)/libhttp.a \
  79. $(ROOT)/libice/$(BUILD).$(PLATFORM)/libice.a \
  80. $(AVCODEC)/avbsf/$(BUILD).$(PLATFORM)/libavbsf.a \
  81. $(AVCODEC)/avcodec/$(BUILD).$(PLATFORM)/libavcodec.a \
  82. $(AVCODEC)/h264/$(BUILD).$(PLATFORM)/libh264.a \
  83. $(AVCODEC)/h265/$(BUILD).$(PLATFORM)/libh265.a
  84. #-----------------------------DEFINES--------------------------------
  85. #
  86. # DEFINES := $(addprefix -D,$(DEFINES)) # add -L prefix
  87. #--------------------------------------------------------------------
  88. DEFINES = OS_INT64_TYPE __ERROR__=00*10000000+__LINE__*1000
  89. include $(ROOT)/gcc.mk
  90. CXXFLAGS += -std=c++11