2 # Copyright (C) 2011-2012 Michael Tuexen
\r
4 # All rights reserved.
\r
6 # Redistribution and use in source and binary forms, with or without
\r
7 # modification, are permitted provided that the following conditions
\r
9 # 1. Redistributions of source code must retain the above copyright
\r
10 # notice, this list of conditions and the following disclaimer.
\r
11 # 2. Redistributions in binary form must reproduce the above copyright
\r
12 # notice, this list of conditions and the following disclaimer in the
\r
13 # documentation and/or other materials provided with the distribution.
\r
14 # 3. Neither the name of the project nor the names of its contributors
\r
15 # may be used to endorse or promote products derived from this software
\r
16 # without specific prior written permission.
\r
18 # THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
\r
19 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
\r
20 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
\r
21 # ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
\r
22 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
\r
23 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
\r
24 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
\r
25 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
\r
26 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
\r
27 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
\r
33 CVARSDLL=-DSCTP_DEBUG -DSCTP_SIMPLE_ALLOCATOR -DSCTP_PROCESS_LEVEL_LOCKS
\r
34 CVARSDLL=$(CVARSDLL) -D__Userspace__ -D__Userspace_os_Windows
\r
35 CVARSDLL=$(CVARSDLL) -DINET -DINET6
\r
36 CVARSDLL=$(CVARSDLL) -D_LIB
\r
38 LINKFLAGS=/LIBPATH:. Ws2_32.lib
\r
41 user_environment.obj \
\r
43 user_recv_thread.obj \
\r
49 sctp_cc_functions.obj \
\r
57 sctp_ss_functions.obj \
\r
60 sctp_userspace.obj \
\r
67 user_environment.h \
\r
72 user_recv_thread.h \
\r
80 netinet\sctp_asconf.h \
\r
81 netinet\sctp_auth.h \
\r
82 netinet\sctp_bsd_addr.h \
\r
83 netinet\sctp_callout.h \
\r
84 netinet\sctp_constants.h \
\r
85 netinet\sctp_crc32.h \
\r
86 netinet\sctp_header.h \
\r
87 netinet\sctp_indata.h \
\r
88 netinet\sctp_input.h \
\r
89 netinet\sctp_lock_userspace.h \
\r
91 netinet\sctp_os_userspace.h \
\r
92 netinet\sctp_output.h \
\r
93 netinet\sctp_pcb.h \
\r
94 netinet\sctp_peeloff.h \
\r
95 netinet\sctp_process_lock.h \
\r
96 netinet\sctp_sha1.h \
\r
97 netinet\sctp_structs.h \
\r
98 netinet\sctp_sysctl.h \
\r
99 netinet\sctp_timer.h \
\r
100 netinet\sctp_uio.h \
\r
101 netinet\sctp_var.h \
\r
102 netinet\sctputil.h \
\r
103 netinet6\sctp6_var.h
\r
105 usrsctp.lib : $(usrsctp_OBJECTS)
\r
106 lib /out:usrsctp.lib $(LINKFLAGS) $(usrsctp_OBJECTS)
\r
108 user_environment.obj : user_environment.c $(usrsctp_HEADERS)
\r
109 cl $(CVARSDLL) $(CFLAGS) -c user_environment.c
\r
111 user_mbuf.obj : user_mbuf.c $(usrsctp_HEADERS)
\r
112 cl $(CVARSDLL) $(CFLAGS) -c user_mbuf.c
\r
114 user_recv_thread.obj: user_recv_thread.c $(usrsctp_HEADERS)
\r
115 cl $(CVARSDLL) $(CFLAGS) -c user_recv_thread.c
\r
117 user_socket.obj : user_socket.c $(usrsctp_HEADERS)
\r
118 cl $(CVARSDLL) $(CFLAGS) -c user_socket.c
\r
120 sctp_asconf.obj : netinet\sctp_asconf.c $(usrsctp_HEADERS)
\r
121 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_asconf.c
\r
123 sctp_auth.obj : netinet\sctp_auth.c $(usrsctp_HEADERS)
\r
124 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_auth.c
\r
126 sctp_bsd_addr.obj : netinet\sctp_bsd_addr.c $(usrsctp_HEADERS)
\r
127 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_bsd_addr.c
\r
129 sctp_callout.obj : netinet\sctp_callout.c $(usrsctp_HEADERS)
\r
130 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_callout.c
\r
132 sctp_cc_functions.obj : netinet\sctp_cc_functions.c $(usrsctp_HEADERS)
\r
133 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_cc_functions.c
\r
135 sctp_crc32.obj : netinet\sctp_crc32.c $(usrsctp_HEADERS)
\r
136 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_crc32.c
\r
138 sctp_indata.obj : netinet\sctp_indata.c $(usrsctp_HEADERS)
\r
139 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_indata.c
\r
141 sctp_input.obj : netinet\sctp_input.c $(usrsctp_HEADERS)
\r
142 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_input.c
\r
144 sctp_output.obj : netinet\sctp_output.c $(usrsctp_HEADERS)
\r
145 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_output.c
\r
147 sctp_pcb.obj : netinet\sctp_pcb.c $(usrsctp_HEADERS)
\r
148 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_pcb.c
\r
150 sctp_peeloff.obj : netinet\sctp_peeloff.c $(usrsctp_HEADERS)
\r
151 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_peeloff.c
\r
153 sctp_sha1.obj : netinet\sctp_sha1.c $(usrsctp_HEADERS)
\r
154 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_sha1.c
\r
156 sctp_ss_functions.obj : netinet\sctp_ss_functions.c $(usrsctp_HEADERS)
\r
157 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_ss_functions.c
\r
159 sctp_sysctl.obj : netinet\sctp_sysctl.c $(usrsctp_HEADERS)
\r
160 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_sysctl.c
\r
162 sctp_timer.obj : netinet\sctp_timer.c $(usrsctp_HEADERS)
\r
163 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_timer.c
\r
165 sctp_userspace.obj : netinet\sctp_userspace.c $(usrsctp_HEADERS)
\r
166 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_userspace.c
\r
168 sctp_usrreq.obj : netinet\sctp_usrreq.c $(usrsctp_HEADERS)
\r
169 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctp_usrreq.c
\r
171 sctputil.obj : netinet\sctputil.c $(usrsctp_HEADERS)
\r
172 cl $(CVARSDLL) $(CFLAGS) -c netinet\sctputil.c
\r
174 sctp6_usrreq.obj : netinet6\sctp6_usrreq.c $(usrsctp_HEADERS)
\r
175 cl $(CVARSDLL) $(CFLAGS) -c netinet6\sctp6_usrreq.c
\r