Livia Medeiros
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
11 additions and
8 deletions
-
.github/workflows/build.yml
-
.gitignore
-
src/Makefile
|
|
@ -56,7 +56,7 @@ jobs: |
|
|
|
- name: Prepare x86_64 directory |
|
|
|
run: | |
|
|
|
mkdir goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }} |
|
|
|
cp src/goodbyedpi.exe ${{ env.WINDIVERT_BASENAME }}/x64/*.{dll,sys} goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }} |
|
|
|
cp build/goodbyedpi.exe ${{ env.WINDIVERT_BASENAME }}/x64/*.{dll,sys} goodbyedpi_x86_64_${{ steps.vars.outputs.sha_short }} |
|
|
|
|
|
|
|
- name: Upload output file x86_64 |
|
|
|
uses: actions/upload-artifact@v4 |
|
|
@ -72,7 +72,7 @@ jobs: |
|
|
|
- name: Prepare x86 directory |
|
|
|
run: | |
|
|
|
mkdir goodbyedpi_x86_${{ steps.vars.outputs.sha_short }} |
|
|
|
cp src/goodbyedpi.exe ${{ env.WINDIVERT_BASENAME }}/x86/*.{dll,sys} goodbyedpi_x86_${{ steps.vars.outputs.sha_short }} |
|
|
|
cp build/goodbyedpi.exe ${{ env.WINDIVERT_BASENAME }}/x86/*.{dll,sys} goodbyedpi_x86_${{ steps.vars.outputs.sha_short }} |
|
|
|
|
|
|
|
- name: Upload output file x86 |
|
|
|
uses: actions/upload-artifact@v4 |
|
|
|
|
|
@ -1,2 +1,3 @@ |
|
|
|
*.o |
|
|
|
*.exe |
|
|
|
/build |
|
|
|
|
|
@ -6,7 +6,7 @@ WINDIVERTHEADERS = ../../../include |
|
|
|
WINDIVERTLIBS = ../../binary |
|
|
|
MINGWLIB = /usr/x86_64-w64-mingw32/lib/ |
|
|
|
|
|
|
|
TARGET = goodbyedpi.exe |
|
|
|
TARGET = ../build/goodbyedpi.exe |
|
|
|
# Linking SSP does not work for some reason, the executable doesn't start.
|
|
|
|
#LIBS = -L$(WINDIVERTLIBS) -Wl,-Bstatic -lssp -Wl,-Bdynamic -lWinDivert -lws2_32
|
|
|
|
LIBS = -L$(WINDIVERTLIBS) -lWinDivert -lws2_32 -l:libssp.a |
|
|
@ -41,14 +41,16 @@ endif |
|
|
|
default: $(TARGET) |
|
|
|
all: default |
|
|
|
|
|
|
|
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c utils/*.c)) goodbyedpi-rc.o |
|
|
|
OBJECTS = $(patsubst %.c, ../build/%.o, $(wildcard *.c utils/*.c)) ../build/goodbyedpi-rc.o |
|
|
|
HEADERS = $(wildcard *.h utils/*.h) |
|
|
|
|
|
|
|
%.o: %.c $(HEADERS) |
|
|
|
../build/%.o: %.c $(HEADERS) |
|
|
|
@mkdir -p ../build/utils |
|
|
|
$(CC) $(CFLAGS) -c $< -o $@ |
|
|
|
|
|
|
|
goodbyedpi-rc.o: |
|
|
|
$(CCWINDRES) goodbyedpi-rc.rc goodbyedpi-rc.o |
|
|
|
../build/goodbyedpi-rc.o: |
|
|
|
@mkdir -p ../build/utils |
|
|
|
$(CCWINDRES) goodbyedpi-rc.rc ../build/goodbyedpi-rc.o |
|
|
|
|
|
|
|
.PRECIOUS: $(TARGET) $(OBJECTS) |
|
|
|
|
|
|
@ -56,5 +58,5 @@ $(TARGET): $(OBJECTS) |
|
|
|
$(CC) $(OBJECTS) $(LDFLAGS) $(LIBS) -s -o $@ |
|
|
|
|
|
|
|
clean: |
|
|
|
-rm -f *.o utils/*.o |
|
|
|
-rm -f ../build/*.o ../build/utils/*.o |
|
|
|
-rm -f $(TARGET) |
|
|
|