Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Wslay - The WebSocket Library
  2. # Copyright (c) 2011, 2012 Tatsuhiro Tsujikawa
  3. # Permission is hereby granted, free of charge, to any person obtaining
  4. # a copy of this software and associated documentation files (the
  5. # "Software"), to deal in the Software without restriction, including
  6. # without limitation the rights to use, copy, modify, merge, publish,
  7. # distribute, sublicense, and/or sell copies of the Software, and to
  8. # permit persons to whom the Software is furnished to do so, subject to
  9. # the following conditions:
  10. # The above copyright notice and this permission notice shall be
  11. # included in all copies or substantial portions of the Software.
  12. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  13. # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  14. # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  15. # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  16. # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  17. # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  18. # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  19. if HAVE_CUNIT
  20. check_PROGRAMS = main
  21. OBJECTS = main.c wslay_frame_test.c\
  22. wslay_event_test.c\
  23. wslay_queue_test.c
  24. HFILES = wslay_session_test.h wslay_frame_test.h\
  25. wslay_event_test.h\
  26. wslay_queue_test.h
  27. main_SOURCES = $(HFILES) $(OBJECTS)
  28. main_LDADD = ${top_builddir}/lib/libwslay.la -lcunit
  29. main_LDFLAGS = -static
  30. AM_CFLAGS = -Wall -g -O2 -I${top_srcdir}/lib -I${top_srcdir}/lib/includes\
  31. @DEFS@
  32. # DEFS += -D_ISOC99_SOURCE -D_GNU_SOURCE
  33. TESTS = main
  34. endif # HAVE_CUNIT