Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ################################################################################
  2. #
  3. # Copyright (c) 2013 Minoca Corp. All Rights Reserved
  4. #
  5. # Binary Name:
  6. #
  7. # swiss.exe
  8. #
  9. # Abstract:
  10. #
  11. # This executable implements the Swiss utility targeted for Windows
  12. # platforms.
  13. #
  14. # Author:
  15. #
  16. # Evan Green 10-Sep-2013
  17. #
  18. # Environment:
  19. #
  20. # Win32
  21. #
  22. ################################################################################
  23. BINARY = swiss_build.exe
  24. BINPLACE = bin
  25. BUILD = yes
  26. BINARYTYPE = ntconsole
  27. INCLUDES += $(SRCROOT)/os/apps/libc/dynamic/wincsup/include;$(SRCDIR)/..;.;
  28. VPATH += $(SRCDIR)/..:
  29. include $(SRCDIR)/../sources
  30. X86_OBJS = $(COMMON_OBJS) \
  31. dw.o \
  32. swiss.rsc \
  33. w32cmds.o \
  34. sh/shntos.o \
  35. swlib/ntos.o \
  36. TARGETLIBS = $(OBJROOT)/os/apps/libc/dynamic/wincsup/wincsup.a \
  37. $(OBJROOT)/os/lib/termlib/build/termlib.a \
  38. $(OBJROOT)/os/lib/rtl/rtlc/build/rtlc.a \
  39. $(OBJROOT)/os/lib/rtl/base/build/basertl.a \
  40. DYNLIBS = -lpsapi -lws2_32
  41. include $(SRCROOT)/os/minoca.mk
  42. ##
  43. ## Generate the version header for the commit information.
  44. ##
  45. swlib/userio.o: $(CURDIR)/version.h
  46. $(CURDIR)/version.h:
  47. $(GEN_VERSION) $@ header 0 0 0 SystemReleaseFinal
  48. ##
  49. ## Override the compiler since this is a Windows app.
  50. ##
  51. CC := gcc
  52. LD := ld
  53. RCC := windres
  54. AR := ar
  55. AS := as