From 17426d3d0f380f6db38303aab7e0aa9d7afa5f2c Mon Sep 17 00:00:00 2001 From: Saverio Proto Date: Wed, 2 Apr 2014 14:29:13 +0200 Subject: [PATCH] Sample empty mesh link app that will make use of the library --- meshlink-sample/.gitignore | 1 + meshlink-sample/Makefile | 18 ++++++++++++++++++ meshlink-sample/meshlinkapp.c | 7 +++++++ 3 files changed, 26 insertions(+) create mode 100644 meshlink-sample/.gitignore create mode 100644 meshlink-sample/Makefile create mode 100644 meshlink-sample/meshlinkapp.c diff --git a/meshlink-sample/.gitignore b/meshlink-sample/.gitignore new file mode 100644 index 00000000..24600083 --- /dev/null +++ b/meshlink-sample/.gitignore @@ -0,0 +1 @@ +!Makefile diff --git a/meshlink-sample/Makefile b/meshlink-sample/Makefile new file mode 100644 index 00000000..6c6ec4ae --- /dev/null +++ b/meshlink-sample/Makefile @@ -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 index 00000000..a7d5a15f --- /dev/null +++ b/meshlink-sample/meshlinkapp.c @@ -0,0 +1,7 @@ +#include + +int main(int argc , char **argv){ + +return 0; +} + -- 2.39.5