Makefile.mingw 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright (c) 2013, Ben Noordhuis <info@bnoordhuis.nl>
  2. #
  3. # Permission to use, copy, modify, and/or distribute this software for any
  4. # purpose with or without fee is hereby granted, provided that the above
  5. # copyright notice and this permission notice appear in all copies.
  6. #
  7. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  8. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  9. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  10. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  11. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  12. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  13. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  14. CC = gcc
  15. CFLAGS += -Wall \
  16. -Wextra \
  17. -Wno-unused-parameter \
  18. -Iinclude \
  19. -Isrc \
  20. -Isrc/win \
  21. -DWIN32_LEAN_AND_MEAN \
  22. -D_WIN32_WINNT=0x0600
  23. INCLUDES = include/stdint-msvc2008.h \
  24. include/tree.h \
  25. include/uv-errno.h \
  26. include/uv-win.h \
  27. include/uv.h \
  28. src/queue.h \
  29. src/uv-common.h \
  30. src/win/atomicops-inl.h \
  31. src/win/handle-inl.h \
  32. src/win/internal.h \
  33. src/win/req-inl.h \
  34. src/win/stream-inl.h \
  35. src/win/winapi.h \
  36. src/win/winsock.h
  37. OBJS = src/fs-poll.o \
  38. src/inet.o \
  39. src/uv-common.o \
  40. src/version.o \
  41. src/win/async.o \
  42. src/win/core.o \
  43. src/win/dl.o \
  44. src/win/error.o \
  45. src/win/fs-event.o \
  46. src/win/fs.o \
  47. src/win/getaddrinfo.o \
  48. src/win/handle.o \
  49. src/win/loop-watcher.o \
  50. src/win/pipe.o \
  51. src/win/poll.o \
  52. src/win/process-stdio.o \
  53. src/win/process.o \
  54. src/win/req.o \
  55. src/win/signal.o \
  56. src/win/stream.o \
  57. src/win/tcp.o \
  58. src/win/thread.o \
  59. src/win/threadpool.o \
  60. src/win/timer.o \
  61. src/win/tty.o \
  62. src/win/udp.o \
  63. src/win/util.o \
  64. src/win/winapi.o \
  65. src/win/winsock.o
  66. all: libuv.a
  67. libuv.a: $(OBJS)
  68. $(AR) crs $@ $^
  69. # FIXME(bnoordhuis) Don't rebuild everything when a source file changes.
  70. $(OBJS): $(OBJS:.o=.c) $(INCLUDES)