Handle portability on 3 systems

This commit is contained in:
Glenn Y. Rolland 2019-09-17 14:44:10 +02:00
parent f99f7ca60f
commit 111d3683b1

View file

@ -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