Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

Makefile 1.3KB

8 miesięcy temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #--------------------------------Output------------------------------
  2. # OUTTYPE: 0-exe, 1-dll, 2-static
  3. #--------------------------------------------------------------------
  4. OUTTYPE = 2
  5. OUTFILE = libdash.a
  6. #-------------------------------Include------------------------------
  7. #
  8. # INCLUDES = $(addprefix -I,$(INCLUDES)) # add -I prefix
  9. #--------------------------------------------------------------------
  10. INCLUDES = . \
  11. ./include \
  12. ../libmov/include \
  13. ../libhls/include
  14. #-------------------------------Source-------------------------------
  15. #
  16. #--------------------------------------------------------------------
  17. SOURCE_PATHS = src
  18. SOURCE_FILES = $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.cpp))
  19. SOURCE_FILES += $(foreach dir,$(SOURCE_PATHS),$(wildcard $(dir)/*.c))
  20. #-----------------------------Library--------------------------------
  21. #
  22. # LIBPATHS = $(addprefix -L,$(LIBPATHS)) # add -L prefix
  23. #--------------------------------------------------------------------
  24. LIBPATHS =
  25. ifdef RELEASE
  26. # relase library path
  27. LIBPATHS +=
  28. else
  29. LIBPATHS +=
  30. endif
  31. LIBS =
  32. STATIC_LIBS =
  33. #-----------------------------DEFINES--------------------------------
  34. #
  35. # DEFINES := $(addprefix -D,$(DEFINES)) # add -L prefix
  36. #--------------------------------------------------------------------
  37. DEFINES =
  38. include ../gcc.mk