]> git.kernelconcepts.de Git - karo-tx-redboot.git/blobdiff - tools/src/tools/ecostest/unix/Makefile
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / tools / src / tools / ecostest / unix / Makefile
index d7ead54d5f16a81cda88a790eed43b1b9b31c963..0cbaf9453ef05a729c3552715018ae0567bb3891 100644 (file)
@@ -25,16 +25,12 @@ programs = ser_filter
 
 CXX=g++
 
-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++
 endif
 
 # Look in these directories for source/make files
@@ -56,7 +52,7 @@ CXXFLAGS=-g -O2 -Wall -D_REENTRANT -D_DEBUG $(CPPFLAGS)
 all: $(programs)
 
 ser_filter: $(common_objects) ser_filter.o
-       $(CXX) -o $@  $(CXXFLAGS) $^ $(LIBPATH) $(LIBS)
+       $(CXX) -o $@  $(CXXFLAGS) $(LIBPATH) $(LIBS) $^
 
 
 .PHONY: clean