aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2023-06-07 12:17:38 -0500
committerAlexander M Pickering <alex@cogarr.net>2023-06-07 12:17:38 -0500
commitd101b51e0060fae9fb9f0815c6eb6a156a0a36ce (patch)
treeae8a22df39a8fa710d033b9f340ce1f3b672431a
parent978b7b05b234f2bc2ee48b03a1cf16674b43a857 (diff)
downloadlua-nng-d101b51e0060fae9fb9f0815c6eb6a156a0a36ce.tar.gz
lua-nng-d101b51e0060fae9fb9f0815c6eb6a156a0a36ce.tar.bz2
lua-nng-d101b51e0060fae9fb9f0815c6eb6a156a0a36ce.zip
force -lnng in makefileHEADmaster
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index e10c227..5c2fb60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-CC?=gcc
-LIBS?=-lnng
+CC=gcc
+LIBS+=-lnng
ALL_CFLAGS=$(CFLAGS)
ALL_LDFLAGS=$(LDFLAGS)
ifdef NNG_LIBDIR
@@ -17,7 +17,9 @@ endif
ifdef LUA_INCDIR
ALL_CFLAGS+= -I$(LUA_INCDIR)
endif
-
+ifndef CC
+ CC=gcc
+endif
ifeq ($(OS), Windows_NT)
ALL_LDFLAGS+=-mwindows
LIBS+=-lws2_32