Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. ################################################################################
  2. #
  3. # Copyright (c) 2013 Minoca Corp. All Rights Reserved
  4. #
  5. # Binary Name:
  6. #
  7. # msetup
  8. #
  9. # Abstract:
  10. #
  11. # This executable implements the setup (OS installer) executable.
  12. #
  13. # Author:
  14. #
  15. # Evan Green 10-Apr-2014
  16. #
  17. # Environment:
  18. #
  19. # User
  20. #
  21. ################################################################################
  22. BINARY = msetup
  23. BINPLACE = bin
  24. BINARYTYPE = app
  25. INCLUDES += $(SRCROOT)/os/apps/libc/include; \
  26. $(SRCROOT)/os/apps/lib/chalk; \
  27. include $(SRCDIR)/sources
  28. OBJS = $(COMMON_OBJS) \
  29. minoca/io.o \
  30. minoca/misc.o \
  31. minoca/part.o \
  32. TARGETLIBS = $(OBJROOT)/os/lib/partlib/partlib.a \
  33. $(OBJROOT)/os/lib/fatlib/fat.a \
  34. $(OBJROOT)/os/lib/bconflib/bconflib.a \
  35. $(OBJROOT)/os/lib/rtl/base/basertl.a \
  36. $(OBJROOT)/os/apps/osbase/urtl/urtl.a \
  37. $(OBJROOT)/os/apps/lib/chalk/chalk.a \
  38. $(OBJROOT)/os/lib/yy/yy.a \
  39. $(OBJROOT)/os/apps/setup/config/msetplat.a \
  40. DYNLIBS = -lminocaos
  41. DIRS = config
  42. ifeq ($(OS),Windows_NT)
  43. DIRS += win32
  44. else
  45. DIRS += uos
  46. endif
  47. EXTRA_SRC_DIRS = minoca
  48. include $(SRCROOT)/os/minoca.mk
  49. postbuild:
  50. @mkdir -p $(BINROOT)/skel/bin
  51. @if test $(BINROOT)/$(BINARY) -nt $(BINROOT)/skel/bin/$(BINARY); then \
  52. $(STRIP) -o $(BINROOT)/skel/bin/$(BINARY) $(BINROOT)/$(BINARY); \
  53. fi
  54. uos win32: config
  55. $(OBJROOT)/os/apps/setup/config/msetplat.a: config