Makefile.am 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # shttpd - build system -- list of dependencies
  2. # Copyright (C) 2018 Ariadne Devos
  3. #
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. AUTOMAKE_OPTIONS = subdir-objects foreign no-dist \
  17. -Wobsolete -Woverride -Wportability -Wunsupported -Werror
  18. AM_CPPFLAGS = -D_GNU_SOURCE
  19. bin_PROGRAMS = shttpd
  20. shtsources = \
  21. fd/fd.c \
  22. fd/inet.c \
  23. generic/bug.c \
  24. task/accept.c \
  25. task/perform.c \
  26. task/sockrw.c \
  27. task/stream.c \
  28. worker/alloc.c \
  29. worker/block-mmap.c \
  30. worker/deque.c \
  31. worker/edge-epoll.c \
  32. worker/loop.c \
  33. worker/objcache.c \
  34. worker/schedule.c \
  35. worker/vector.c
  36. worker/objcache.c: worker/objcache-bless-table.c
  37. touch -c $@
  38. worker/objcache-bless-table.c: tools/gen-vector-variants.sh
  39. $< size sHT_objcache_bless objcache-bless.c > $@T && mv -T $@T $@
  40. shttpdsources = \
  41. http/accept.c \
  42. http/stream.c
  43. shttpd_SOURCES = $(shtsources) $(shttpdsources)