os-linux.mak 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # OS specific configuration for Linux OS target.
  3. #
  4. #
  5. # PJLIB_OBJS specified here are object files to be included in PJLIB
  6. # (the library) for this specific operating system. Object files common
  7. # to all operating systems should go in Makefile instead.
  8. #
  9. export PJLIB_OBJS += addr_resolv_sock.o file_access_unistd.o \
  10. file_io_ansi.o guid_simple.o \
  11. log_writer_stdout.o os_core_unix.o \
  12. os_error_unix.o os_time_unix.o \
  13. os_timestamp_common.o os_timestamp_posix.o \
  14. pool_policy_malloc.o sock_bsd.o sock_select.o
  15. ifeq (epoll,$(LINUX_POLL))
  16. export PJLIB_OBJS += ioqueue_epoll.o
  17. else
  18. export PJLIB_OBJS += ioqueue_select.o
  19. endif
  20. export PJLIB_OBJS += sock_qos_bsd.o
  21. #
  22. # TEST_OBJS are operating system specific object files to be included in
  23. # the test application.
  24. #
  25. export TEST_OBJS += main.o
  26. #
  27. # Additional LDFLAGS for pjlib-test
  28. #
  29. export TEST_LDFLAGS += -lm
  30. #
  31. # TARGETS are make targets in the Makefile, to be executed for this given
  32. # operating system.
  33. #
  34. export TARGETS = $(PJLIB_LIB) $(PJLIB_SONAME) $(TEST_EXE)