-
Notifications
You must be signed in to change notification settings - Fork 486
/
Makefile.Win32
61 lines (55 loc) · 2.43 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
59
60
61
#
# 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 /D_WIN32 /c
LDFLAGS=
LIBS="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64\WS2_32.Lib"
all: pre-build pwnat.exe
pre-build:
@if not exist obj mkdir obj
OBJS=obj/socket.obj obj/packet.obj obj/message.obj obj/client.obj obj/list.obj obj/destination.obj obj/udpserver.obj obj/udpclient.obj obj/pwnat.obj obj/xgetopt.obj obj/gettimeofday.obj
pwnat.exe: $(OBJS)
link.exe /NOLOGO /OUT:pwnat.exe $(LDFLAGS) $(OBJS) $(LIBS)
# obj/strlcpy.obj: src/strlcpy.c src/common.h
# $(CC) $(CFLAGS) /Fo$@ /c src/strlcpy.c
obj/packet.obj: src/packet.c src/common.h src/packet.h
$(CC) $(CFLAGS) /Fo$@ /c src/packet.c
obj/list.obj: src/list.c src/list.h src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/list.c
obj/socket.obj: src/socket.c src/socket.h src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/socket.c
obj/client.obj: src/client.c src/client.h src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/client.c
obj/message.obj: src/message.c src/message.h src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/message.c
obj/destination.obj: src/destination.c src/destination.h
$(CC) $(CFLAGS) /Fo$@ /c src/destination.c
obj/udpclient.obj: src/udpclient.c src/list.h src/packet.h src/socket.h src/client.h src/message.h src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/udpclient.c
obj/xgetopt.obj: src/xgetopt.c src/xgetopt.h
$(CC) $(CFLAGS) /Fo$@ /c src/xgetopt.c
obj/gettimeofday.obj: src/gettimeofday.c src/gettimeofday.h
$(CC) $(CFLAGS) /Fo$@ /c src/gettimeofday.c
obj/udpserver.obj: src/udpserver.c src/list.h src/packet.h src/socket.h src/client.h src/message.h src/common.h src/destination.h
$(CC) $(CFLAGS) /Fo$@ /c src/udpserver.c
obj/pwnat.obj: src/pwnat.c src/common.h
$(CC) $(CFLAGS) /Fo$@ /c src/pwnat.c
clean:
del obj/*.obj pwnat.exe