From 18fc98b858ee5df8824407f682c0af067a5ffd74 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Sun, 7 Feb 2016 22:01:57 -0800 Subject: [PATCH] libqrtr: Extract the lib from the src directory Extract the libqrtr source and header file to a separate directory, making it more convinient to include the header file from other projects. Signed-off-by: Bjorn Andersson --- Makefile | 4 ++-- src/lib.c => lib/libqrtr.c | 2 +- src/lib.h => lib/libqrtr.h | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename src/lib.c => lib/libqrtr.c (99%) rename src/lib.h => lib/libqrtr.h (100%) diff --git a/Makefile b/Makefile index af23ca4..bac45d3 100644 --- a/Makefile +++ b/Makefile @@ -27,9 +27,9 @@ $(proj)-lookup-srcs := \ src/util.c \ lib$(proj).so-srcs := \ - src/lib.c \ + lib/libqrtr.c \ -lib$(proj).so-cflags := -fPIC +lib$(proj).so-cflags := -fPIC -Isrc targets := $(proj)-ns $(proj)-lookup lib$(proj).so diff --git a/src/lib.c b/lib/libqrtr.c similarity index 99% rename from src/lib.c rename to lib/libqrtr.c index 0625ed3..7b89e7a 100644 --- a/src/lib.c +++ b/lib/libqrtr.c @@ -9,7 +9,7 @@ #include #include "qrtr.h" -#include "lib.h" +#include "libqrtr.h" #include "ns.h" #define LOGW(fmt, ...) do { fprintf(stderr, "W|qrtr: " fmt "\n", ##__VA_ARGS__); } while (0) diff --git a/src/lib.h b/lib/libqrtr.h similarity index 100% rename from src/lib.h rename to lib/libqrtr.h