blob: 01c411cef689eb88b98b4ff68feb40f9b4f8364d [file] [log] [blame]
James Kuszmaul4cb043c2021-01-17 11:25:51 -08001#
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
31CFLAGS=/W3 /WX /I..\usrsctplib
32
33CVARSDLL=-DINET -DINET6
34
35LINKFLAGS=/LIBPATH:..\usrsctplib usrsctp.lib
36
37.c.obj::
38 $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
39
40all: \
41 client \
42 daytime_server \
43 discard_server \
44 echo_server \
45 tsctp \
46 rtcweb \
47 ekr_client \
48 ekr_server \
49 ekr_peer \
50 ekr_loop \
51 test_libmgmt \
52 http_client
53
54client:
55 $(CC) $(CFLAGS) $(CVARSDLL) -c client.c
56 link -out:client.exe client.obj $(LINKFLAGS)
57
58daytime_server:
59 $(CC) $(CFLAGS) $(CVARSDLL) -c daytime_server.c
60 link -out:daytime_server.exe daytime_server.obj $(LINKFLAGS)
61
62discard_server:
63 $(CC) $(CFLAGS) $(CVARSDLL) -c discard_server.c
64 link -out:discard_server.exe discard_server.obj $(LINKFLAGS)
65
66echo_server:
67 $(CC) $(CFLAGS) $(CVARSDLL) -c echo_server.c
68 link -out:echo_server.exe echo_server.obj $(LINKFLAGS)
69
70tsctp:
71 $(CC) $(CFLAGS) $(CVARSDLL) -c tsctp.c
72 link -out:tsctp.exe tsctp.obj $(LINKFLAGS)
73
74rtcweb:
75 $(CC) $(CFLAGS) $(CVARSDLL) -c rtcweb.c
76 link -out:rtcweb.exe rtcweb.obj $(LINKFLAGS)
77
78ekr_client:
79 $(CC) $(CFLAGS) $(CVARSDLL) -c ekr_client.c
80 link -out:ekr_client.exe ekr_client.obj $(LINKFLAGS)
81
82ekr_server:
83 $(CC) $(CFLAGS) $(CVARSDLL) -c ekr_server.c
84 link -out:ekr_server.exe ekr_server.obj $(LINKFLAGS)
85
86ekr_peer:
87 $(CC) $(CFLAGS) $(CVARSDLL) -c ekr_peer.c
88 link -out:ekr_peer.exe ekr_peer.obj $(LINKFLAGS)
89
90ekr_loop:
91 $(CC) $(CFLAGS) $(CVARSDLL) -c ekr_loop.c
92 link -out:ekr_loop.exe ekr_loop.obj $(LINKFLAGS)
93
94test_libmgmt:
95 $(CC) $(CFLAGS) $(CVARSDLL) -c test_libmgmt.c
96 link -out:test_libmgmt.exe test_libmgmt.obj $(LINKFLAGS)
97
98http_client:
99 $(CC) $(CFLAGS) $(CVARSDLL) -c http_client.c
100 link -out:http_client.exe http_client.obj $(LINKFLAGS)
101
102clean:
103 del /F client.exe
104 del /F client.obj
105 del /F daytime_server.exe
106 del /F daytime_server.obj
107 del /F discard_server.exe
108 del /F discard_server.obj
109 del /F echo_server.exe
110 del /F echo_server.obj
111 del /F tsctp.exe
112 del /F tsctp.obj
113 del /F rtcweb.exe
114 del /F rtcweb.obj
115 del /F ekr_client.exe
116 del /F ekr_client.obj
117 del /F ekr_server.exe
118 del /F ekr_server.obj
119 del /F ekr_peer.exe
120 del /F ekr_peer.obj
121 del /F ekr_loop.exe
122 del /F ekr_loop.obj
123 del /F test_libmgmt.exe
124 del /F test_libmgmt.obj
125 del /F http_client.exe
126 del /F http_client.obj