Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ################################################################################
  2. #
  3. # Copyright (c) 2013 Minoca Corp. All Rights Reserved
  4. #
  5. # Binary Name:
  6. #
  7. # Native Debugger
  8. #
  9. # Abstract:
  10. #
  11. # This program implements the native debugger (command line version),
  12. # which runs on Minoca OS.
  13. #
  14. # Author:
  15. #
  16. # Evan Green 27-May-2013
  17. #
  18. # Environment:
  19. #
  20. # User Mode
  21. #
  22. ################################################################################
  23. BINARY = debug
  24. BINPLACE = bin
  25. BINARYTYPE = app
  26. INCLUDES += $(SRCROOT)/os/apps/include; \
  27. $(SRCDIR)/..; \
  28. $(SRCROOT)/os/lib/im; \
  29. $(SRCROOT)/os/apps/include/libc;
  30. TARGETLIBS = $(OBJROOT)/os/lib/im/im.a \
  31. DYNLIBS = -lminocaos
  32. VPATH += $(SRCDIR)/..:
  33. include $(SRCDIR)/../sources
  34. OBJS = $(COMMON_OBJS) \
  35. cmdln.o \
  36. extsup.o \
  37. sock.o \
  38. include $(SRCROOT)/os/minoca.mk
  39. postbuild:
  40. @mkdir -p $(BINROOT)/skel/bin
  41. @if test $(BINROOT)/$(BINARY) -nt $(BINROOT)/skel/bin/$(BINARY); then \
  42. $(STRIP) -o $(BINROOT)/skel/bin/$(BINARY) $(BINROOT)/$(BINARY); \
  43. fi