aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJ08nY2017-02-28 17:00:39 +0100
committerJ08nY2017-02-28 17:00:39 +0100
commit2cbd1a82a756f15cfb987713bce6ac02dad64623 (patch)
tree01dac90a9f27645ccdb1d1d42c6facfb257915c0 /Makefile
parent55fd80d2563f461e96dfd680730a2bc416ca5f98 (diff)
downloadecgen-2cbd1a82a756f15cfb987713bce6ac02dad64623.tar.gz
ecgen-2cbd1a82a756f15cfb987713bce6ac02dad64623.tar.zst
ecgen-2cbd1a82a756f15cfb987713bce6ac02dad64623.zip
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 80cad13..d29dcca 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,27 @@
all:
+$(MAKE) -C src all
+docs:
+ doxygen Doxyfile
+
+help:
+ @echo "ecgen, tool for generating Elliptic curve domain parameters"
+ @echo
+ @echo "Available targets:"
+ @echo " - all : builds all"
+ @echo " - ecgen : builds the main binary"
+ @echo " - gp2c : generates the .c and .h files from gp code"
+ @echo " - docs : generate doxygen docs"
+ @echo " - clean : cleans up after a build"
+ @echo " - clean-gp : cleans up after gp2c generation"
+ @echo " - clean-all : cleans all"
+ @echo " - format : run clang-format on source files"
+ @echo " - help : print this help"
+
+.PHONY: all docs help
+
+ifeq (, $(filter all docs help, $(MAKECMDGOALS)))
# Just pass all targets to a Makefile in src
$(MAKECMDGOALS):
+$(MAKE) -C src $@
-
+endif