-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.Win32
58 lines (53 loc) · 1.9 KB
/
Makefile.Win32
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
#
# Project: udptunnel
# File: Makefile.Win32
#
# Copyright (C) 2009 Daniel Meekins
# Contact: dmeekins - gmail
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
CC=cl.exe
CFLAGS=/nologo /DWIN32 /c
LDFLAGS=
LIBS="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Lib\WS2_32.Lib"
all: udptunnel.exe
OBJS=socket.obj message.obj client.obj list.obj acl.obj udpserver.obj \
udpclient.obj udptunnel.obj xgetopt.obj gettimeofday.obj \
strtok_r.obj
udptunnel.exe: $(OBJS)
link.exe /NOLOGO /OUT:udptunnel.exe $(LDFLAGS) $(OBJS) $(LIBS)
list.obj: list.c list.h common.h
$(CC) $(CFLAGS) list.c
socket.obj: socket.c socket.h common.h
$(CC) $(CFLAGS) socket.c
client.obj: client.c client.h common.h
$(CC) $(CFLAGS) client.c
message.obj: message.c message.h common.h
$(CC) $(CFLAGS) message.c
acl.obj: acl.c acl.h common.h
$(CC) $(CFLAGS) acl.c
udpclient.obj: udpclient.c list.h socket.h client.h message.h common.h
$(CC) $(CFLAGS) udpclient.c
udpserver.obj: udpserver.c list.h socket.h client.h message.h common.h
$(CC) $(CFLAGS) udpserver.c
udptunnel.obj: udptunnel.c common.h
$(CC) $(CFLAGS) udptunnel.c
xgetopt.obj: helpers/xgetopt.c
$(CC) $(CFLAGS) helpers/xgetopt.c
gettimeofday.obj: helpers/gettimeofday.c
$(CC) $(CFLAGS) helpers/gettimeofday.c
strtok_r.obj: helpers/strtok_r.c
$(CC) $(CFLAGS) helpers/strtok_r.c
clean:
del *.obj udptunnel.exe