diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-27 00:34:49 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-27 00:34:49 -0800 |
commit | 83050ec38ec5f2b1cf06a077cc44b2bce5f90d57 (patch) | |
tree | 232834f7cfc88f66a174a28b04dbc9b62cf2d122 /src | |
parent | 1e911f95ef0426a6f36519db8d0f8e39a4424008 (diff) | |
download | teliva-83050ec38ec5f2b1cf06a077cc44b2bce5f90d57.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
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: |