1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00
ipxwrapper/Makefile

68 lines
2.6 KiB
Makefile
Raw Normal View History

2008-12-09 21:36:07 +00:00
# ipxwrapper - Makefile
# Copyright (C) 2008 Daniel Collins <solemnwarning@solemnwarning.net>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# 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, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
CFLAGS := -Wall
CXXFLAGS := -Wall
2008-12-09 21:36:07 +00:00
IPXWRAPPER_DEPS := src/ipxwrapper.o src/winsock.o src/ipxwrapper_stubs.o src/ipxwrapper.def
WSOCK32_DEPS := src/stubdll.o src/wsock32_stubs.o src/wsock32.def
MSWSOCK_DEPS := src/stubdll.o src/mswsock_stubs.o src/mswsock.def
all: ipxwrapper.dll wsock32.dll mswsock.dll ipxconfig.exe
2008-12-09 21:36:07 +00:00
clean:
rm -f src/*.o
rm -f src/*_stubs.s
2008-12-09 21:36:07 +00:00
ipxwrapper.dll: $(IPXWRAPPER_DEPS)
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o ipxwrapper.dll $(IPXWRAPPER_DEPS) -liphlpapi
2008-12-09 21:36:07 +00:00
wsock32.dll: $(WSOCK32_DEPS)
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o wsock32.dll $(WSOCK32_DEPS)
2008-12-09 21:36:07 +00:00
mswsock.dll: $(MSWSOCK_DEPS)
$(CC) $(CFLAGS) -Wl,--enable-stdcall-fixup,-s -shared -o mswsock.dll $(MSWSOCK_DEPS)
2008-12-09 21:36:07 +00:00
src/ipxwrapper.o: src/ipxwrapper.c src/ipxwrapper.h
$(CC) $(CFLAGS) -c -o src/ipxwrapper.o src/ipxwrapper.c
src/winsock.o: src/winsock.c src/ipxwrapper.h
$(CC) $(CFLAGS) -c -o src/winsock.o src/winsock.c
src/ipxwrapper_stubs.o: src/ipxwrapper_stubs.s
nasm -f win32 -o src/ipxwrapper_stubs.o src/ipxwrapper_stubs.s
2008-12-09 21:36:07 +00:00
src/ipxwrapper_stubs.s: src/ipxwrapper_stubs.txt
perl mkstubs.pl src/ipxwrapper_stubs.txt src/ipxwrapper_stubs.s
2008-12-09 21:36:07 +00:00
src/stubdll.o: src/stubdll.c
$(CC) $(CFLAGS) -c -o src/stubdll.o src/stubdll.c
src/wsock32_stubs.o: src/wsock32_stubs.s
nasm -f win32 -o src/wsock32_stubs.o src/wsock32_stubs.s
2008-12-09 21:36:07 +00:00
src/wsock32_stubs.s: src/wsock32_stubs.txt
perl mkstubs.pl src/wsock32_stubs.txt src/wsock32_stubs.s wsock32.dll
2008-12-09 21:36:07 +00:00
src/mswsock_stubs.o: src/mswsock_stubs.s
nasm -f win32 -o src/mswsock_stubs.o src/mswsock_stubs.s
2008-12-09 21:36:07 +00:00
src/mswsock_stubs.s: src/mswsock_stubs.txt
perl mkstubs.pl src/mswsock_stubs.txt src/mswsock_stubs.s mswsock.dll
ipxconfig.exe: src/ipxconfig.cpp
$(CXX) $(CXXFLAGS) -D_WIN32_IE=0x0400 -mwindows -o ipxconfig.exe src/ipxconfig.cpp -liphlpapi