Makefile.nmake 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. #
  2. # Copyright (C) 2011-2012 Michael Tuexen
  3. #
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions
  8. # are met:
  9. # 1. Redistributions of source code must retain the above copyright
  10. # notice, this list of conditions and the following disclaimer.
  11. # 2. Redistributions in binary form must reproduce the above copyright
  12. # notice, this list of conditions and the following disclaimer in the
  13. # documentation and/or other materials provided with the distribution.
  14. # 3. Neither the name of the project nor the names of its contributors
  15. # may be used to endorse or promote products derived from this software
  16. # without specific prior written permission.
  17. #
  18. # THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  19. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  20. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  21. # ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
  22. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  23. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  24. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  25. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  26. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  27. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  28. # SUCH DAMAGE.
  29. #
  30. CFLAGS=/I. /W3 /WX
  31. CVARSDLL=-DSCTP_DEBUG -DSCTP_SIMPLE_ALLOCATOR -DSCTP_PROCESS_LEVEL_LOCKS
  32. CVARSDLL=$(CVARSDLL) -D__Userspace__
  33. CVARSDLL=$(CVARSDLL) -DINET -DINET6
  34. CVARSDLL=$(CVARSDLL) -D_LIB
  35. LINKFLAGS=/LIBPATH:. Ws2_32.lib
  36. usrsctp_OBJECTS = \
  37. user_environment.obj \
  38. user_mbuf.obj \
  39. user_recv_thread.obj \
  40. user_socket.obj \
  41. sctp_asconf.obj \
  42. sctp_auth.obj \
  43. sctp_bsd_addr.obj \
  44. sctp_callout.obj \
  45. sctp_cc_functions.obj \
  46. sctp_crc32.obj \
  47. sctp_indata.obj \
  48. sctp_input.obj \
  49. sctp_output.obj \
  50. sctp_pcb.obj \
  51. sctp_peeloff.obj \
  52. sctp_sha1.obj \
  53. sctp_ss_functions.obj \
  54. sctp_sysctl.obj \
  55. sctp_timer.obj \
  56. sctp_userspace.obj \
  57. sctp_usrreq.obj \
  58. sctputil.obj \
  59. sctp6_usrreq.obj
  60. usrsctp_HEADERS = \
  61. user_atomic.h \
  62. user_environment.h \
  63. user_inpcb.h \
  64. user_ip6_var.h \
  65. user_malloc.h \
  66. user_mbuf.h \
  67. user_recv_thread.h \
  68. user_route.h \
  69. user_socketvar.h \
  70. user_uma.h \
  71. user_queue.h \
  72. user_ip_icmp.h \
  73. user_ip6_var.h \
  74. netinet\sctp.h \
  75. netinet\sctp_asconf.h \
  76. netinet\sctp_auth.h \
  77. netinet\sctp_bsd_addr.h \
  78. netinet\sctp_callout.h \
  79. netinet\sctp_constants.h \
  80. netinet\sctp_crc32.h \
  81. netinet\sctp_header.h \
  82. netinet\sctp_indata.h \
  83. netinet\sctp_input.h \
  84. netinet\sctp_lock_userspace.h \
  85. netinet\sctp_os.h \
  86. netinet\sctp_os_userspace.h \
  87. netinet\sctp_output.h \
  88. netinet\sctp_pcb.h \
  89. netinet\sctp_peeloff.h \
  90. netinet\sctp_process_lock.h \
  91. netinet\sctp_sha1.h \
  92. netinet\sctp_structs.h \
  93. netinet\sctp_sysctl.h \
  94. netinet\sctp_timer.h \
  95. netinet\sctp_uio.h \
  96. netinet\sctp_var.h \
  97. netinet\sctputil.h \
  98. netinet6\sctp6_var.h
  99. usrsctp.lib : $(usrsctp_OBJECTS)
  100. lib /out:usrsctp.lib $(LINKFLAGS) $(usrsctp_OBJECTS)
  101. user_environment.obj : user_environment.c $(usrsctp_HEADERS)
  102. cl $(CVARSDLL) $(CFLAGS) -c user_environment.c
  103. user_mbuf.obj : user_mbuf.c $(usrsctp_HEADERS)
  104. cl $(CVARSDLL) $(CFLAGS) -c user_mbuf.c
  105. user_recv_thread.obj: user_recv_thread.c $(usrsctp_HEADERS)
  106. cl $(CVARSDLL) $(CFLAGS) -c user_recv_thread.c
  107. user_socket.obj : user_socket.c $(usrsctp_HEADERS)
  108. cl $(CVARSDLL) $(CFLAGS) -c user_socket.c
  109. sctp_asconf.obj : netinet\sctp_asconf.c $(usrsctp_HEADERS)
  110. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_asconf.c
  111. sctp_auth.obj : netinet\sctp_auth.c $(usrsctp_HEADERS)
  112. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_auth.c
  113. sctp_bsd_addr.obj : netinet\sctp_bsd_addr.c $(usrsctp_HEADERS)
  114. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_bsd_addr.c
  115. sctp_callout.obj : netinet\sctp_callout.c $(usrsctp_HEADERS)
  116. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_callout.c
  117. sctp_cc_functions.obj : netinet\sctp_cc_functions.c $(usrsctp_HEADERS)
  118. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_cc_functions.c
  119. sctp_crc32.obj : netinet\sctp_crc32.c $(usrsctp_HEADERS)
  120. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_crc32.c
  121. sctp_indata.obj : netinet\sctp_indata.c $(usrsctp_HEADERS)
  122. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_indata.c
  123. sctp_input.obj : netinet\sctp_input.c $(usrsctp_HEADERS)
  124. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_input.c
  125. sctp_output.obj : netinet\sctp_output.c $(usrsctp_HEADERS)
  126. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_output.c
  127. sctp_pcb.obj : netinet\sctp_pcb.c $(usrsctp_HEADERS)
  128. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_pcb.c
  129. sctp_peeloff.obj : netinet\sctp_peeloff.c $(usrsctp_HEADERS)
  130. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_peeloff.c
  131. sctp_sha1.obj : netinet\sctp_sha1.c $(usrsctp_HEADERS)
  132. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_sha1.c
  133. sctp_ss_functions.obj : netinet\sctp_ss_functions.c $(usrsctp_HEADERS)
  134. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_ss_functions.c
  135. sctp_sysctl.obj : netinet\sctp_sysctl.c $(usrsctp_HEADERS)
  136. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_sysctl.c
  137. sctp_timer.obj : netinet\sctp_timer.c $(usrsctp_HEADERS)
  138. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_timer.c
  139. sctp_userspace.obj : netinet\sctp_userspace.c $(usrsctp_HEADERS)
  140. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_userspace.c
  141. sctp_usrreq.obj : netinet\sctp_usrreq.c $(usrsctp_HEADERS)
  142. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_usrreq.c
  143. sctputil.obj : netinet\sctputil.c $(usrsctp_HEADERS)
  144. cl $(CVARSDLL) $(CFLAGS) -c netinet\sctputil.c
  145. sctp6_usrreq.obj : netinet6\sctp6_usrreq.c $(usrsctp_HEADERS)
  146. cl $(CVARSDLL) $(CFLAGS) -c netinet6\sctp6_usrreq.c
  147. clean:
  148. del *.obj
  149. del usrsctp.lib