summaryrefslogtreecommitdiff
path: root/chromium/third_party/usrsctp/usrsctplib/programs/Makefile.nmake
blob: f3800e22e5da57e32027420cdf0e88f194abcdef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#
# Copyright (C) 2011-2012 Michael Tuexen
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. Neither the name of the project nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.	IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

CFLAGS=/W3 /WX /I..\usrsctplib

CVARSDLL=-DINET -DINET6

LINKFLAGS=/LIBPATH:..\usrsctplib usrsctp.lib

.c.obj::
	$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<

all: \
	client \
	daytime_server \
	discard_server \
	echo_server \
	tsctp \
	rtcweb \
	ekr_client \
	ekr_server \
	ekr_peer \
	ekr_loop \
	test_libmgmt \
	http_client

client:
	$(CC) $(CFLAGS) $(CVARSDLL) -c client.c
	link -out:client.exe client.obj $(LINKFLAGS)

daytime_server:
	$(CC) $(CFLAGS) $(CVARSDLL) -c daytime_server.c
	link -out:daytime_server.exe daytime_server.obj $(LINKFLAGS)

discard_server:
	$(CC) $(CFLAGS) $(CVARSDLL) -c discard_server.c
	link -out:discard_server.exe discard_server.obj $(LINKFLAGS)

echo_server:
	$(CC) $(CFLAGS) $(CVARSDLL) -c echo_server.c
	link -out:echo_server.exe echo_server.obj $(LINKFLAGS)

tsctp:
	$(CC) $(CFLAGS) $(CVARSDLL) -c tsctp.c
	link -out:tsctp.exe tsctp.obj $(LINKFLAGS)

rtcweb:
	$(CC) $(CFLAGS) $(CVARSDLL) -c rtcweb.c
	link -out:rtcweb.exe rtcweb.obj $(LINKFLAGS)

ekr_client:
	$(CC) $(CFLAGS) $(CVARSDLL) -c ekr_client.c
	link -out:ekr_client.exe ekr_client.obj $(LINKFLAGS)

ekr_server:
	$(CC) $(CFLAGS) $(CVARSDLL) -c ekr_server.c
	link -out:ekr_server.exe ekr_server.obj $(LINKFLAGS)

ekr_peer:
	$(CC) $(CFLAGS) $(CVARSDLL) -c ekr_peer.c
	link -out:ekr_peer.exe ekr_peer.obj $(LINKFLAGS)

ekr_loop:
	$(CC) $(CFLAGS) $(CVARSDLL) -c ekr_loop.c
	link -out:ekr_loop.exe ekr_loop.obj $(LINKFLAGS)

test_libmgmt:
	$(CC) $(CFLAGS) $(CVARSDLL) -c test_libmgmt.c
	link -out:test_libmgmt.exe test_libmgmt.obj $(LINKFLAGS)

http_client:
	$(CC) $(CFLAGS) $(CVARSDLL) -c http_client.c
	link -out:http_client.exe http_client.obj $(LINKFLAGS)

clean:
	del /F client.exe
	del /F client.obj
	del /F daytime_server.exe
	del /F daytime_server.obj
	del /F discard_server.exe
	del /F discard_server.obj
	del /F echo_server.exe
	del /F echo_server.obj
	del /F tsctp.exe
	del /F tsctp.obj
	del /F rtcweb.exe
	del /F rtcweb.obj
	del /F ekr_client.exe
	del /F ekr_client.obj
	del /F ekr_server.exe
	del /F ekr_server.obj
	del /F ekr_peer.exe
	del /F ekr_peer.obj
	del /F ekr_loop.exe
	del /F ekr_loop.obj
	del /F test_libmgmt.exe
	del /F test_libmgmt.obj
	del /F http_client.exe
	del /F http_client.obj