-ifneq (,$(findstring CYGWIN, $(shell uname)))
-LIBS := -lwsock32
-endif
-
-ifneq (, $(findstring SunOS, $(shell uname)))
-LIBS := -lpthread -lsocket -lxnet -lstdc++ -lposix4
-endif
-
-ifneq (, $(findstring Linux, $(shell uname)))
-LIBS := -lpthread -efence -lstdc++
+ifeq ($(shell uname), SunOS)
+# SunOS
+LIBS := -lpthread -lsocket -lxnet -lstdc++ -lposix4
+else
+# Linux
+LIBS := -lpthread -efence -lstdc++