summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshmuz <shmuz>2007-12-19 13:08:26 +0000
committershmuz <shmuz>2007-12-19 13:08:26 +0000
commit6cb9d952a12c910b390540f9370294891284cb8f (patch)
tree4d455cd2f4f65b2697bc5aab7c8d08d78d29fa53 /src
parentcd49240d44a0c9cc7a7e252c989ed9075645a06c (diff)
downloadlrexlib-6cb9d952a12c910b390540f9370294891284cb8f.tar.gz
express "ld" and "-shared" via variables
Diffstat (limited to 'src')
-rwxr-xr-xsrc/common.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.mak b/src/common.mak
index 4561aab..2ac2037 100755
--- a/src/common.mak
+++ b/src/common.mak
@@ -6,6 +6,8 @@ DEFS = -DREX_OPENLIB=luaopen_$(TRG) -DREX_LIBNAME=\"$(TRG)\"
CFLAGS = $(MYCFLAGS) $(DEFS) $(INC)
TRG_AR = lib$(TRG).a
TRG_SO = $(TRG).so
+LD = ld
+LDFLAGS= -shared
all: $(TRG_AR) $(TRG_SO)
@@ -13,7 +15,7 @@ $(TRG_AR): $(OBJ)
$(AR) $@ $^
$(TRG_SO): $(OBJ)
- ld -o $@.$V -shared $^ $(LIB) $(LIB_LUA)
+ $(LD) -o $@.$V $(LDFLAGS) $^ $(LIB) $(LIB_LUA)
ln -fs $@.$V $@
clean: