From 83050ec38ec5f2b1cf06a077cc44b2bce5f90d57 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 27 Nov 2021 00:34:49 -0800 Subject: starting to test compilation on Mac and BSD. For starters, put Linux-specific stuff in a Linux-specific target. By not resetting MYCFLAGS and MYLDFLAGS, I'm unnecessarily passing in -DLUA_USE_LINUX. But that'll make it easier to get things running on Mac and BSD. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 5b9edcf..046733f 100644 --- a/src/Makefile +++ b/src/Makefile @@ -51,8 +51,6 @@ $(LUA_A): $(CORE_O) $(LIB_O) $(RANLIB) $@ $(LUA_T): $(LUA_O) $(LUA_A) - make -C luasocket MYCFLAGS= MYLDFLAGS= linux - make -C luasec MYCFLAGS= MYLDFLAGS= linux $(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS) clean: @@ -96,6 +94,8 @@ generic: $(MAKE) all MYCFLAGS= linux: + make -C luasocket linux + make -C luasec linux $(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lncursesw" macosx: -- cgit 1.4.1-2-gfad0