diff options
author | shmuz <shmuz> | 2007-12-19 13:08:26 +0000 |
---|---|---|
committer | shmuz <shmuz> | 2007-12-19 13:08:26 +0000 |
commit | 6cb9d952a12c910b390540f9370294891284cb8f (patch) | |
tree | 4d455cd2f4f65b2697bc5aab7c8d08d78d29fa53 /src | |
parent | cd49240d44a0c9cc7a7e252c989ed9075645a06c (diff) | |
download | lrexlib-6cb9d952a12c910b390540f9370294891284cb8f.tar.gz |
express "ld" and "-shared" via variables
Diffstat (limited to 'src')
-rwxr-xr-x | src/common.mak | 4 |
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: |