Add optimization & fix portability issues on SunOS

This commit is contained in:
Glenn Y. Rolland 2019-09-16 17:01:44 +02:00
parent 8e9b99946c
commit 5290be1ae5
2 changed files with 14 additions and 5 deletions

View file

@ -7,7 +7,7 @@
#LIBS= #LIBS=
CC=gcc CC=gcc
CFLAGS=-ggdb -Wall CFLAGS=-ggdb -Wall -O2
#-O2 #-O2
#LIBS=-lrt #LIBS=-lrt
#-verbose #-verbose

View file

@ -6,13 +6,22 @@
#LIBINC=-L #LIBINC=-L
#LIBS= #LIBS=
OSTYPE=$(shell uname -s) OS=$(shell uname -s)
CC=gcc CC=gcc
CFLAGS=-Wall --static
CFLAGS=-Wall --static -O2 -ggdb
#-O2 -ggdb #-O2 -ggdb
INCLUDES=-I ../src/ INCLUDES=-I ../src/
LIBINC=-L ../src LIBINC=-L ../src -L /usr/lib
LIBS=-lnazgul $(OSTYPE:Linux=-lrt)
LIBS=-lnazgul
ifeq "SunOS" "${OS}"
LIBS=-lnazgul -lrt
endif
ifeq "Linux" "${OS}"
LIBS=-lnazgul -lrt
endif
PRJNAME=Libnazgul PRJNAME=Libnazgul
GDATE := $(shell date +"-%Y-%m-%d_r%H") GDATE := $(shell date +"-%Y-%m-%d_r%H")