aboutsummaryrefslogtreecommitdiffstats
path: root/out/makefile
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-08-29 11:41:23 +0000
committerbloodstalker <thabogre@gmail.com>2018-08-29 11:41:23 +0000
commitcac5b8bc811e6244e491e86d0e6362f2c121cb59 (patch)
tree9c076d977ee78b6f0952f524fde5d18b25c94c47 /out/makefile
parentupdate (diff)
downloadluatablegen-cac5b8bc811e6244e491e86d0e6362f2c121cb59.tar.gz
luatablegen-cac5b8bc811e6244e491e86d0e6362f2c121cb59.zip
update
Diffstat (limited to '')
-rw-r--r--out/makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/out/makefile b/out/makefile
index f3a0757..86b90b3 100644
--- a/out/makefile
+++ b/out/makefile
@@ -8,7 +8,7 @@ CC_EXTRA?=
CTAGS_I_PATH?=./
LD_FLAGS=
LIB_LUA=../lua5/liblua.a
-EXTRA_LD_FLAGS?=-L ../lua5
+EXTRA_LD_FLAGS?=-lm -ldl -llua
ADD_SANITIZERS_CC= -g -fsanitize=address -fno-omit-frame-pointer
ADD_SANITIZERS_LD= -g -fsanitize=address
MEM_SANITIZERS_CC= -g -fsanitize=memory -fno-omit-frame-pointer
@@ -80,16 +80,16 @@ depend:.depend
$(LIB_LUA):
$(MAKE) -C ../lua5 a
-$(TARGET): $(TARGET).o $(LIB_LUA)
+$(TARGET): $(TARGET).o $(LIB_LUA) $(OBJ_LIST)
$(CC) $^ $(LD_FLAGS) -o $@
-$(TARGET)-static: $(TARGET).o $(LIB_LUA)
+$(TARGET)-static: $(TARGET).o $(LIB_LUA) $(OBJ_LIST)
$(CC) $^ $(LD_FLAGS) -static -o $@
-$(TARGET)-dbg: $(TARGET).odbg $(LIB_LUA)
+$(TARGET)-dbg: $(TARGET).odbg $(LIB_LUA) $(OBJ_LIST)
$(CC) $^ $(LD_FLAGS) -g -o $@
-$(TARGET)-cov: $(TARGET).ocov $(LIB_LUA)
+$(TARGET)-cov: $(TARGET).ocov $(LIB_LUA) $(OBJ_LIST)
$(CC) $^ $(LD_FLAGS) $(COV_LD) -o $@
cov:
@@ -116,10 +116,10 @@ tags:$(SRCS)
%.dis: %.o
objdump -r -d -M intel -S $< > $@
-$(TARGET).so: $(TARGET).o $(LIB_LUA)
+$(TARGET).so: $(TARGET).o $(LIB_LUA) $(OBJ_LIST)
$(CC) $^ $(LD_FLAGS) -shared -o $@
-$(TARGET).a: $(TARGET).o $(LIB_LUA)
+$(TARGET).a: $(TARGET).o $(LIB_LUA) $(OBJ_LIST)
ar rcs $(TARGET).a $(TARGET).o
runcov: $(TARGET)-cov