From 77cc204d9724a1daadc1997ce81edc13146d57f5 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Wed, 9 May 2018 13:12:11 +0100 Subject: [PATCH] Build libwebsockets first --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 75129a1..416911e 100644 --- a/Makefile +++ b/Makefile @@ -42,13 +42,15 @@ libwebsockets/lib/libwebsockets.a: cd libwebsockets && cmake -DLWS_STATIC_PIC=ON -DLWS_WITH_SHARED=OFF -DLWS_WITHOUT_TESTAPPS=ON -DLWS_WITH_LIBEV=OFF -DLWS_WITH_LIBUV=OFF -DLWS_WITH_LIBEVENT=OFF -DCMAKE_BUILD_TYPE=DEBUG . $(MAKE) -C libwebsockets +libwebsockets/include/libwebsockets.h: libwebsockets/lib/libwebsockets.a + json-c/libjson-c.a: cd json-c && cmake -DCMAKE_C_FLAGS=-fPIC . $(MAKE) -C json-c json-c-static depend: .depend -.depend: $(SRCS) +.depend: libwebsockets/include/libwebsockets.h $(SRCS) $(RM) ./.depend $(CC) $(CFLAGS) -MM $^>>./.depend;