config.mk 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # SPDX-License-Identifier: GPL-3.0-or-later
  2. #
  3. # Copyright (C) 2022, 2023 Ferass El Hafidi <vitali64pmemail@protonmail.com>
  4. # Copyright (C) 2022 Leah Rowe <leah@libreboot.org>
  5. # Configuration
  6. # =============
  7. VERSION="ducks v0.1r"$$(git rev-list --count HEAD)"."$$(git rev-parse --short HEAD)""
  8. CC=cc # C Compiler
  9. FORCEC99=-std=c99 # Force POSIX C99
  10. # OPTIMIZE=-O3 # Experimental optimizations (Disabled by default)
  11. CFLAGS=-D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" -I. -Wall -Werror -Wextra -g -pedantic $(FORCEC99) $(OPTIMIZE) # C Compiler flags
  12. NOLINKER=-c # C Compiler flag to disable the linker
  13. # Core utilities
  14. CORE=\
  15. [\
  16. basename\
  17. cat\
  18. chmod\
  19. chown\
  20. cmp\
  21. date\
  22. dirname\
  23. echo\
  24. ed\
  25. false\
  26. head\
  27. link\
  28. ln\
  29. ls\
  30. mkdir\
  31. more\
  32. mv\
  33. printf\
  34. rm\
  35. sleep\
  36. tail\
  37. tee\
  38. test\
  39. touch\
  40. tput\
  41. true\
  42. tty\
  43. uname\
  44. unlink\
  45. wc
  46. # Include core/extra utilities in fases-box
  47. INCLUDE_EXTRA=n
  48. INCLUDE_CORE=y
  49. # Extra utilities
  50. EXTRA=\
  51. errno\
  52. yes
  53. # Destination directory
  54. DESTDIR=
  55. PREFIX=/usr/local
  56. # Prefix