Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ################################################################################
  2. #
  3. # Copyright (c) 2016 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. # msetup (Build)
  13. #
  14. # Abstract:
  15. #
  16. # This executable implements the setup (OS installer) executable for
  17. # POSIX based build machines.
  18. #
  19. # Author:
  20. #
  21. # Evan Green 19-Jan-2016
  22. #
  23. # Environment:
  24. #
  25. # User
  26. #
  27. ################################################################################
  28. BINARY = msetup
  29. BINPLACE = tools/bin
  30. BUILD = yes
  31. BINARYTYPE = app
  32. VPATH += $(SRCDIR)/..:
  33. include $(SRCDIR)/../sources
  34. ifeq ($(shell uname -s),Minoca)
  35. OBJS = $(COMMON_OBJS) \
  36. minoca/io.o \
  37. minoca/misc.o \
  38. minoca/part.o \
  39. DYNLIBS = -lminocaos
  40. else
  41. OBJS = $(COMMON_OBJS) \
  42. io.o \
  43. misc.o \
  44. part.o \
  45. ifneq ($(shell uname -s),FreeBSD)
  46. DYNLIBS = -ldl
  47. endif
  48. endif
  49. TARGETLIBS = $(OBJROOT)/os/lib/partlib/build/partlib.a \
  50. $(OBJROOT)/os/lib/fatlib/build/fat.a \
  51. $(OBJROOT)/os/lib/bconflib/build/bconflib.a \
  52. $(OBJROOT)/os/lib/rtl/base/build/basertl.a \
  53. $(OBJROOT)/os/lib/rtl/urtl/rtlc/build/rtlc.a \
  54. $(OBJROOT)/os/apps/ck/lib/build/libchalk.a \
  55. $(OBJROOT)/os/lib/yy/build/yy.a \
  56. EXTRA_SRC_DIRS = minoca
  57. include $(SRCROOT)/os/minoca.mk