add some makefile docs
This commit is contained in:
parent
3995f971d7
commit
a0e5c2e4ff
@ -7,6 +7,13 @@
|
|||||||
#
|
#
|
||||||
# (GNU make only)
|
# (GNU make only)
|
||||||
|
|
||||||
|
### USAGE:
|
||||||
|
#
|
||||||
|
# CFLAGS="-DUSE_LTM -DLTM_DESC -I/path/to/libtommath" make -f makefile.shared all EXTRALIBS=/path/to/libtommath/libtommath.a
|
||||||
|
# ./test
|
||||||
|
# make -f makefile.shared DESTDIR=/opt/libtom install
|
||||||
|
#
|
||||||
|
|
||||||
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
PLATFORM := $(shell uname | sed -e 's/_.*//')
|
||||||
|
|
||||||
ifndef LT
|
ifndef LT
|
||||||
|
@ -43,6 +43,11 @@ endif
|
|||||||
#
|
#
|
||||||
# Compilation flags. Note the += does not write over the user's CFLAGS!
|
# Compilation flags. Note the += does not write over the user's CFLAGS!
|
||||||
#
|
#
|
||||||
|
# Also note that we're extending the environments' CFLAGS.
|
||||||
|
# If you think that our CFLAGS are not nice you can easily override them
|
||||||
|
# by giving them as a parameter to make:
|
||||||
|
# make CFLAGS="-I./src/headers/ -DLTC_SOURCE ..." ...
|
||||||
|
#
|
||||||
CFLAGS += -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE
|
CFLAGS += -I./src/headers/ -Wall -Wsign-compare -Wshadow -DLTC_SOURCE
|
||||||
|
|
||||||
ifdef OLD_GCC
|
ifdef OLD_GCC
|
||||||
@ -338,6 +343,8 @@ $(TOBJECTS): $(HEADERS) $(THEADERS)
|
|||||||
|
|
||||||
bins: $(USEFUL_DEMOS)
|
bins: $(USEFUL_DEMOS)
|
||||||
|
|
||||||
|
all: all_test
|
||||||
|
|
||||||
all_test: test $(UNBROKEN_DEMOS)
|
all_test: test $(UNBROKEN_DEMOS)
|
||||||
|
|
||||||
#build the doxy files (requires Doxygen, tetex and patience)
|
#build the doxy files (requires Doxygen, tetex and patience)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user