Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. ################################################################################
  2. #
  3. # Copyright (c) 2017 Minoca Corp.
  4. #
  5. # This file is licensed under the terms of the GNU General Public License
  6. # version 3. Alternative licensing terms are available. Contact
  7. # info@minocacorp.com for details. See the LICENSE file at the root of this
  8. # project for complete licensing information.
  9. #
  10. # Binary Name:
  11. #
  12. # Build Debugger
  13. #
  14. # Abstract:
  15. #
  16. # This program implements the Minoca debugger compiled for the build
  17. # machine.
  18. #
  19. # Author:
  20. #
  21. # Evan Green 20-Mar-2017
  22. #
  23. # Environment:
  24. #
  25. # POSIX
  26. #
  27. ################################################################################
  28. BINARY = debug
  29. BINPLACE = tools/bin
  30. BINARYTYPE = app
  31. BUILD = yes
  32. INCLUDES += $(SRCDIR)/..; \
  33. $(SRCROOT)/os/lib/im; \
  34. TARGETLIBS = $(OBJROOT)/os/lib/im/build/imu.a \
  35. $(OBJROOT)/os/lib/rtl/base/build/basertl.a \
  36. $(OBJROOT)/os/lib/rtl/urtl/rtlc/build/rtlc.a \
  37. OS ?= $(shell uname -s)
  38. ifneq ($(OS),$(filter Windows_NT Minoca FreeBSD,$(OS)))
  39. DYNLIBS += -ldl
  40. endif
  41. ifneq ($(OS),$(filter Windows_NT Minoca Darwin,$(OS)))
  42. DYNLIBS += -pthread
  43. endif
  44. VPATH += $(SRCDIR)/..:
  45. include $(SRCDIR)/../sources
  46. OBJS = $(COMMON_OBJS) \
  47. $(UOS_OBJS) \
  48. include $(SRCROOT)/os/minoca.mk