diff options
Diffstat (limited to 'src/winpcap.mk')
-rw-r--r-- | src/winpcap.mk | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/winpcap.mk b/src/winpcap.mk index 6dbccb4..82b8a20 100644 --- a/src/winpcap.mk +++ b/src/winpcap.mk @@ -19,11 +19,11 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - $(SED) '/#include/ s,\\,/,g' -i '$(1)/packetNtx/Dll/Packet32.c' - $(SED) 's,#include <packet32\.h>,#include <Packet32.h>,' -i '$(1)/packetNtx/Dll/Packet32.c' - $(SED) 's,#include <StrSafe\.h>,#include <strsafe.h>,' -i '$(1)/packetNtx/Dll/Packet32.c' - $(SED) 's,#include <Iphlpapi\.h>,#include <iphlpapi.h>,' -i '$(1)/packetNtx/Dll/Packet32.c' - $(SED) 's,#include <IPIfCons\.h>,#include <ipifcons.h>,' -i '$(1)/packetNtx/Dll/Packet32.c' + $(SED) -i '/#include/ s,\\,/,g' '$(1)/packetNtx/Dll/Packet32.c' + $(SED) -i 's,#include <packet32\.h>,#include <Packet32.h>,' '$(1)/packetNtx/Dll/Packet32.c' + $(SED) -i 's,#include <StrSafe\.h>,#include <strsafe.h>,' '$(1)/packetNtx/Dll/Packet32.c' + $(SED) -i 's,#include <Iphlpapi\.h>,#include <iphlpapi.h>,' '$(1)/packetNtx/Dll/Packet32.c' + $(SED) -i 's,#include <IPIfCons\.h>,#include <ipifcons.h>,' '$(1)/packetNtx/Dll/Packet32.c' cd '$(1)' && $(TARGET)-gcc -ICommon -IpacketNtx/Dll -O -c '$(1)/packetNtx/Dll/Packet32.c' $(TARGET)-ar rc '$(1)/libpacket.a' '$(1)/Packet32.o' $(TARGET)-ranlib '$(1)/libpacket.a' @@ -32,10 +32,10 @@ define $(PKG)_BUILD $(INSTALL) -d '$(PREFIX)/$(TARGET)/lib' $(INSTALL) -m644 '$(1)/libpacket.a' '$(PREFIX)/$(TARGET)/lib/' mv '$(1)/wpcap/libpcap/Win32/Include/ip6_misc.h' '$(1)/wpcap/libpcap/Win32/Include/IP6_misc.h' - $(SED) 's,#include <packet32\.h>,#include <Packet32.h>,' -i '$(1)/wpcap/Win32-Extensions/Win32-Extensions.c' - $(SED) 's,(char\*)tUstr +=,tUstr +=,' -i '$(1)/wpcap/libpcap/inet.c' - $(SED) 's,-DHAVE_AIRPCAP_API,,' -i '$(1)/wpcap/PRJ/GNUmakefile' - $(SED) 's,/common,/Common,' -i '$(1)/wpcap/PRJ/GNUmakefile' + $(SED) -i 's,#include <packet32\.h>,#include <Packet32.h>,' '$(1)/wpcap/Win32-Extensions/Win32-Extensions.c' + $(SED) -i 's,(char\*)tUstr +=,tUstr +=,' '$(1)/wpcap/libpcap/inet.c' + $(SED) -i 's,-DHAVE_AIRPCAP_API,,' '$(1)/wpcap/PRJ/GNUmakefile' + $(SED) -i 's,/common,/Common,' '$(1)/wpcap/PRJ/GNUmakefile' echo -e 'libwpcap.a: $${OBJS}' >> '$(1)/wpcap/PRJ/GNUmakefile' echo -e '\t$${AR} rc $$@ $${OBJS}' >> '$(1)/wpcap/PRJ/GNUmakefile' echo -e '\t$${RANLIB} $$@' >> '$(1)/wpcap/PRJ/GNUmakefile' |