Skip to content

Commit 5433aa2

Browse files
committed
Fix for compilation on MSYS/MINGW32 toolchain
1 parent c0e2b3b commit 5433aa2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,28 @@
55

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

8-
ifeq "x$(MSYSTEM)" "x"
8+
ifneq "MINGW" "$(findstring MINGW,$(MSYSTEM))"
99
LIBS = -lpthread
1010
else
11-
LIBS = -lwsock32 -lpthreadGC2
11+
LIBS = -lwsock32
1212
endif
1313

1414
ifeq "x$(PREFIX)" "x"
1515
PREFIX = $(PS2DEV)
1616
endif
1717

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

20-
clean:
22+
clean:
23+
$(MAKE) -f Makefile.mingw32 clean
24+
else
25+
all: bin/fsclient bin/ps2client
26+
27+
clean:
2128
rm -f obj/*.o bin/*client*
29+
endif
2230

2331
install: bin/fsclient bin/ps2client
2432
strip bin/*client*

0 commit comments

Comments
 (0)