X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=tools%2Fsrc%2Ftools%2Fecostest%2Funix%2FMakefile;h=0cbaf9453ef05a729c3552715018ae0567bb3891;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hp=d7ead54d5f16a81cda88a790eed43b1b9b31c963;hpb=f0c1bd5d9f8457be4a43912a28ca2df207a7f5a4;p=karo-tx-redboot.git diff --git a/tools/src/tools/ecostest/unix/Makefile b/tools/src/tools/ecostest/unix/Makefile index d7ead54d..0cbaf945 100644 --- a/tools/src/tools/ecostest/unix/Makefile +++ b/tools/src/tools/ecostest/unix/Makefile @@ -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