Improved handling of CPPFLAGS option.
This commit is contained in:
parent
6e651f9e1b
commit
9ddc2fc794
2 changed files with 3 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -10,7 +10,8 @@ ifeq ($(PACKAGE_VERSION),Unknown)
|
||||||
$(warning Version is unknown - consider creating a VERSION file or fixing your git setup.)
|
$(warning Version is unknown - consider creating a VERSION file or fixing your git setup.)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CPPFLAGS = -Wall -funsigned-char -g -O2 -fPIC -DDEBUG="$(DEBUG)" -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\""
|
CPPFLAGS = -Wall -g -O2 -fPIC
|
||||||
|
override CPPFLAGS += -funsigned-char -DDEBUG="$(DEBUG)" -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\""
|
||||||
|
|
||||||
LDLIBS = -lcrypto
|
LDLIBS = -lcrypto
|
||||||
|
|
||||||
|
|
2
README
2
README
|
@ -30,7 +30,7 @@ The makefile will listen to the following variables:
|
||||||
includedir Directory to install headers to. Defaults to $(prefix)/include
|
includedir Directory to install headers to. Defaults to $(prefix)/include
|
||||||
libdir Directory to install libraries to. Defaults to $(exec_prefix)/lib
|
libdir Directory to install libraries to. Defaults to $(exec_prefix)/lib
|
||||||
DESTDIR Global prefix that will be put in front of any and all other file paths.
|
DESTDIR Global prefix that will be put in front of any and all other file paths.
|
||||||
CPPFLAGS Flags for compiling object files. Defaults to -Wall -g -O2 -fPIC -DDEBUG="$(DEBUG)" -DPACKAGE_VERSION="\"$(PACKAGE_VERSION)\""
|
CPPFLAGS Flags for compiling object files. Defaults to -Wall -g -O2 -fPIC
|
||||||
LDLIBS Libraries to include. Defaults to -lcrypto
|
LDLIBS Libraries to include. Defaults to -lcrypto
|
||||||
|
|
||||||
Use "make var1=val1 var2=val2" to set these. For example:
|
Use "make var1=val1 var2=val2" to set these. For example:
|
||||||
|
|
Loading…
Add table
Reference in a new issue