ARC solution
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.
 
 
 

83 lines
1.5 KiB

  1. #
  2. # config.mk
  3. # Löwenware Makefile Config, 2019-03-02 17:35
  4. #
  5. PREFIX = /usr/
  6. PKG_CONFIG = pkg-config
  7. PROJECT_NAME = arcd
  8. # Version
  9. PROJECT_VERSION_MAJOR = 1
  10. PROJECT_VERSION_MINOR = 0
  11. PROJECT_VERSION_TWEAK = 0
  12. PROJECT_VERSION_LABEL = 0
  13. # Override default paths
  14. #SRC_DIR = src
  15. #SDK_DIR = sdk
  16. #OUT_DIR = ./build
  17. # Source files
  18. PROJECT_SOURCES := \
  19. $(SRC_DIR)/main.c \
  20. $(SRC_DIR)/config.c \
  21. $(SRC_DIR)/observer.c \
  22. $(SRC_DIR)/agent.c \
  23. $(SRC_DIR)/surgard.c \
  24. \
  25. $(CSTUFF_DIR)/log.c \
  26. $(CSTUFF_DIR)/string.c \
  27. $(CSTUFF_DIR)/list.c \
  28. $(CSTUFF_DIR)/file.c \
  29. $(CSTUFF_DIR)/config.c \
  30. \
  31. $(SDK_DIR)/components/query.c \
  32. $(SDK_DIR)/components/quick.c \
  33. $(SDK_DIR)/components/validate.c \
  34. $(SDK_DIR)/components/mail.c \
  35. $(SDK_DIR)/components/log.c \
  36. $(SDK_DIR)/components/todo.c \
  37. \
  38. $(SDK_DIR)/mods/context.c \
  39. $(SDK_DIR)/mods/module.c \
  40. # includes
  41. PROJECT_INCLUDES = \
  42. -I./ \
  43. -I./$(SDK_DIR) \
  44. `$(PKG_CONFIG) --cflags libaisl` \
  45. `$(PKG_CONFIG) --cflags libcurl` \
  46. `$(PKG_CONFIG) --cflags uuid` \
  47. # libraries
  48. PROJECT_LIBRARIES = \
  49. `$(PKG_CONFIG) --libs libaisl` \
  50. `$(PKG_CONFIG) --libs libcurl` \
  51. `$(PKG_CONFIG) --libs uuid` \
  52. -lpthread \
  53. # compilation macro options:
  54. # flags
  55. PROJECT_CFLAGS = -D_POSIX_C_SOURCE=200809L
  56. PROJECT_CFLAGS += -D_ISOC99_SOURCE
  57. PROJECT_CFLAGS += -D_XOPEN_SOURCE=500
  58. PROJECT_CFLAGS += -D_GNU_SOURCE
  59. PROJECT_CFLAGS += -DARC_WITH_SURGARD
  60. # PROJECT_CFLAGS += -DDEBUG
  61. # PROJECT_LDFLAGS = -L
  62. # vim:ft=make
  63. #