summaryrefslogtreecommitdiff
path: root/topology/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'topology/Makefile')
-rw-r--r--topology/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/topology/Makefile b/topology/Makefile
index abd4081e..a78cc9ab 100644
--- a/topology/Makefile
+++ b/topology/Makefile
@@ -1,5 +1,14 @@
-all:
+all: FORCE
g++ -o mktopology mktopology.cpp ../node/Utils.cpp ../node/Identity.cpp ../node/C25519.cpp ../node/Salsa20.cpp ../node/Dictionary.cpp ../node/SHA512.cpp
+ gcc -o bin2c bin2c.c
+
+official: all
+ rm -f root_topology.out
+ ./mktopology >root_topology.out
+ ./bin2c ZT_DEFAULT_ROOT_TOPOLOGY < root_topology.out > ZT_DEFAULT_ROOT_TOPOLOGY.c
+ ls -l ZT_DEFAULT_ROOT_TOPOLOGY.c
clean:
- rm -f *.o mktopology
+ rm -f *.o mktopology bin2c root_topology.out
+
+FORCE: