Skip to content

Commit

Permalink
Merge pull request #13 from AKuHAK/patch-1
Browse files Browse the repository at this point in the history
Fix for compilation on MSYS/MINGW32 toolchain
  • Loading branch information
fjtrujy authored May 25, 2021
2 parents c0e2b3b + 5433aa2 commit 211df54
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,28 @@

CFLAGS = -std=gnu99 -Wall -pedantic -I/usr/include -I/usr/local/include

ifeq "x$(MSYSTEM)" "x"
ifneq "MINGW" "$(findstring MINGW,$(MSYSTEM))"
LIBS = -lpthread
else
LIBS = -lwsock32 -lpthreadGC2
LIBS = -lwsock32
endif

ifeq "x$(PREFIX)" "x"
PREFIX = $(PS2DEV)
endif

all: bin/fsclient bin/ps2client
ifeq "MINGW" "$(findstring MINGW,$(MSYSTEM))"
all:
$(MAKE) -f Makefile.mingw32 all

clean:
clean:
$(MAKE) -f Makefile.mingw32 clean
else
all: bin/fsclient bin/ps2client

clean:
rm -f obj/*.o bin/*client*
endif

install: bin/fsclient bin/ps2client
strip bin/*client*
Expand Down

0 comments on commit 211df54

Please sign in to comment.