From f7f86b7542f701351ba23a4f19cc2c946fb45caf Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Thu, 27 Apr 2023 21:46:57 -0500 Subject: Correct makefile --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9625784..c66fbe2 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,13 @@ CC?=gcc CAFLAGS+=-I$(NNG_INCDIR) -I$(LUA_INCDIR) -L$(LUA_LIBDIR) $(CFLAGS) LADFLAGS+=$(LIBFLAG) $(LDFLAGS) LIBS=-lnng -ifdef $(NNG_LIBDIR) +ifdef NNG_LIBDIR LADFLAGS+= -L$(NNG_LIBDIR) endif -ifdef $(LUA_LIBDIR) +ifdef LUA_LIBDIR LADFLAGS+= -L$(LUA_LIBDIR) endif -ifdef $(LUA_LIB) +ifdef LUA_LIB LIBS+= -l$(LUA_LIB) endif LD=gcc @@ -27,6 +27,7 @@ target=bin/nng.$(LIB_EXTENSION) all: $(target) $(target) : $(obj_files) + echo "Lua_lib is: $(LUA_LIB), libs are: $(LIBS)" $(LD) $(LADFLAGS) -o $@ $^ $(LIBS) $(obj_files): build/%.o : src/%.c -- cgit v1.2.3-70-g09d2