mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-12-22 14:26:08 +00:00
make it more usable with MSYS and linux MinGW both (#48)
* make it more usable * update README
This commit is contained in:
parent
5f231996d4
commit
30bb1a665a
9
Makefile
9
Makefile
@ -1,11 +1,14 @@
|
|||||||
CPREFIX = x86_64-w64-mingw32
|
ifndef MSYSTEM
|
||||||
|
CPREFIX = x86_64-w64-mingw32-
|
||||||
|
endif
|
||||||
|
|
||||||
WINDIVERTHEADERS = ../../include
|
WINDIVERTHEADERS = ../../include
|
||||||
WINDIVERTLIBS = ../binary
|
WINDIVERTLIBS = ../binary
|
||||||
|
|
||||||
TARGET = goodbyedpi.exe
|
TARGET = goodbyedpi.exe
|
||||||
LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32
|
LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32
|
||||||
CC = $(CPREFIX)-gcc
|
CC = $(CPREFIX)gcc
|
||||||
CCWINDRES = $(CPREFIX)-windres
|
CCWINDRES = $(CPREFIX)windres
|
||||||
CFLAGS = -Wall -I$(WINDIVERTHEADERS) -L$(WINDIVERTLIBS) \
|
CFLAGS = -Wall -I$(WINDIVERTHEADERS) -L$(WINDIVERTLIBS) \
|
||||||
-O2 -pie -fPIE -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
|
-O2 -pie -fPIE -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
|
||||||
LDFLAGS = -pie
|
LDFLAGS = -pie
|
||||||
|
@ -65,11 +65,11 @@ This project can be build using **GNU Make** and [**mingw**](https://mingw-w64.o
|
|||||||
|
|
||||||
To build x86 exe run:
|
To build x86 exe run:
|
||||||
|
|
||||||
`make CPREFIX=i686-w64-mingw32 WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/x86`
|
`make CPREFIX=i686-w64-mingw32- WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/x86`
|
||||||
|
|
||||||
And for x86_64:
|
And for x86_64:
|
||||||
|
|
||||||
`make CPREFIX=x86_64-w64-mingw32 WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/amd64`
|
`make CPREFIX=x86_64-w64-mingw32- WINDIVERTHEADERS=/path/to/windivert/include WINDIVERTLIBS=/path/to/windivert/amd64`
|
||||||
|
|
||||||
# How to install as Windows Service
|
# How to install as Windows Service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user