From 111d3683b1d9b0603439af730ee71e6397315447 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 17 Sep 2019 14:44:10 +0200 Subject: [PATCH] Handle portability on 3 systems --- test/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/Makefile b/test/Makefile index a4638ba..9f1ba1d 100644 --- a/test/Makefile +++ b/test/Makefile @@ -9,18 +9,24 @@ OS=$(shell uname -s) CC=gcc -CFLAGS=-Wall --static -O2 -ggdb +CFLAGS=-Wall -O2 -ggdb #-O2 -ggdb INCLUDES=-I /usr/include -I ../src/ LIBINC=-L /usr/lib -L ../src -LIBS=-lnazgul +BASELIBS=-lnazgul +LIBS=$(BASELIBS) + +ifeq "HP-UX" "${OS}" + LIBS=$(BASELIBS) -lpthread -lrt +endif + ifeq "SunOS" "${OS}" - LIBS=-lnazgul -lrt + LIBS=$(BASELIBS) -lrt endif ifeq "Linux" "${OS}" - LIBS=-lnazgul -lrt -lpthread + LIBS=$(BASELIBS) -lrt -lpthread endif PRJNAME=Libnazgul