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=
CC=gcc
CFLAGS=-ggdb -Wall
CFLAGS=-ggdb -Wall -O2
#-O2
#LIBS=-lrt
#-verbose

View file

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