]> git.meshlink.io Git - meshlink/commitdiff
Sample empty mesh link app that will make use of the library
authorSaverio Proto <zioproto@gmail.com>
Wed, 2 Apr 2014 12:29:13 +0000 (14:29 +0200)
committerSaverio Proto <zioproto@gmail.com>
Wed, 2 Apr 2014 13:13:54 +0000 (15:13 +0200)
meshlink-sample/.gitignore [new file with mode: 0644]
meshlink-sample/Makefile [new file with mode: 0644]
meshlink-sample/meshlinkapp.c [new file with mode: 0644]

diff --git a/meshlink-sample/.gitignore b/meshlink-sample/.gitignore
new file mode 100644 (file)
index 0000000..2460008
--- /dev/null
@@ -0,0 +1 @@
+!Makefile
diff --git a/meshlink-sample/Makefile b/meshlink-sample/Makefile
new file mode 100644 (file)
index 0000000..6c6ec4a
--- /dev/null
@@ -0,0 +1,18 @@
+# Simple Makefile
+
+CC=gcc
+LIBS= -lcrypto  -lz -llzo2 -ldl -lpthread -L../src/ -lmeshlink
+INCLUDE= -I../src/
+LOADLIBES= $(LIBS)
+OBJS= meshlinkapp.o
+CFLAGS= -g -D_PC_ $(INCLUDE) -Wall
+EXEC=meshlinkapp
+default: all
+all: $(OBJS) $(EXEC)
+$(EXEC): $(OBJS)
+clean:
+       -rm -f $(OBJS)
+       -rm -f $(EXEC)
+
+
+rebuild: clean all
diff --git a/meshlink-sample/meshlinkapp.c b/meshlink-sample/meshlinkapp.c
new file mode 100644 (file)
index 0000000..a7d5a15
--- /dev/null
@@ -0,0 +1,7 @@
+#include <libmeshlink.h>
+
+int main(int argc , char **argv){
+
+return 0;
+}
+