Add optimization & fix portability issues on SunOS
This commit is contained in:
parent
8e9b99946c
commit
5290be1ae5
2 changed files with 14 additions and 5 deletions
|
@ -7,7 +7,7 @@
|
|||
#LIBS=
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-ggdb -Wall
|
||||
CFLAGS=-ggdb -Wall -O2
|
||||
#-O2
|
||||
#LIBS=-lrt
|
||||
#-verbose
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue