about summary refs log tree commit diff stats
path: root/src/luasec
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-22 18:05:57 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-22 18:06:20 -0800
commit97a0254042e991e644948d26df77457344c397cc (patch)
tree6b74a1d93a5199a8f98bcffcf5c92a18476b064d /src/luasec
parentc4ecb9a53dfe57d7e2f79ada6d0f28839d9fe975 (diff)
downloadteliva-97a0254042e991e644948d26df77457344c397cc.tar.gz
standardize CFLAGS in luasec
What in the world is up with the $MYCFLAGS convention in these Lua
makefiles? I don't know, but I'm going to leave it undisturbed as far as
possible.
Diffstat (limited to 'src/luasec')
-rw-r--r--src/luasec/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/luasec/Makefile b/src/luasec/Makefile
index 4b48cb8..d266209 100644
--- a/src/luasec/Makefile
+++ b/src/luasec/Makefile
@@ -14,16 +14,16 @@ WARN=-Wall -pedantic
 BSD_CFLAGS=-O2 -fPIC $(WARN) $(INCDIR) $(DEFS)
 BSD_LDFLAGS=-O -fPIC -shared $(LIBDIR)
 
-LNX_CFLAGS=-O2 $(WARN) $(INCDIR) $(DEFS)
-LNX_LDFLAGS=-O
+linux_CFLAGS=-g -O2 $(WARN) $(INCDIR) $(DEFS)
 
-MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
-MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
-MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
+macosx_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
+macosx_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
+macosx_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
 
 INSTALL  = install
 CC      ?= gcc
 CCLD      ?= $(MYENV) $(CC)
+CFLAGS = $(linux_CFLAGS)
 CFLAGS  += $(MYCFLAGS)
 LDFLAGS += $(MYLDFLAGS)
 AR= ar rc
@@ -47,7 +47,7 @@ bsd:
 	@$(MAKE) $(CMOD) MYCFLAGS="$(BSD_CFLAGS)" MYLDFLAGS="$(BSD_LDFLAGS)" EXTRA="$(EXTRA)"
 
 macosx:
-	@$(MAKE) $(CMOD) MYCFLAGS="$(MAC_CFLAGS)" MYLDFLAGS="$(MAC_LDFLAGS)" MYENV="$(MAC_ENV)" EXTRA="$(EXTRA)"
+	@$(MAKE) $(CMOD) MYCFLAGS="$(macosx_CFLAGS)" MYLDFLAGS="$(macosx_LDFLAGS)" MYENV="$(macosx_ENV)" EXTRA="$(EXTRA)"
 
 clean:
 	rm -f $(OBJS) $(CMOD)