Skip to content

Commit

Permalink
Fix for compilation on MSYS/MINGW32 toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
AKuHAK committed May 25, 2021
1 parent c0e2b3b commit 5433aa2
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 5433aa2

Please sign in to comment.