mirror of
https://github.com/libtom/libtomcrypt
synced 2026-08-25 20:26:07 -04:00
add some makefile docs
This commit is contained in:
parent
3995f971d7
commit
a0e5c2e4ff
2 changed files with 14 additions and 0 deletions
|
|
@ -7,6 +7,13 @@
|
|||
#
|
||||
# (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/_.*//')
|
||||
|
||||
ifndef LT
|
||||
|
|
|
|||
|
|
@ -43,6 +43,11 @@ endif
|
|||
#
|
||||
# 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
|
||||
|
||||
ifdef OLD_GCC
|
||||
|
|
@ -338,6 +343,8 @@ $(TOBJECTS): $(HEADERS) $(THEADERS)
|
|||
|
||||
bins: $(USEFUL_DEMOS)
|
||||
|
||||
all: all_test
|
||||
|
||||
all_test: test $(UNBROKEN_DEMOS)
|
||||
|
||||
#build the doxy files (requires Doxygen, tetex and patience)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue