Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile.luarocks
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ifndef VERBOSE
.SILENT:
endif

SHARED_LIB_FLAG = -shared

ifeq ($(OS), Windows_NT)
LIBEXT = .dll
LIBEXT_S = .dll.a
Expand All @@ -10,6 +12,7 @@ RM = del
else ifeq ($(shell uname -s),Darwin)
LIBEXT = .dylib
LIBEXT_S = .a
SHARED_LIB_FLAG = -dynamiclib
COPY = cp -v
RM = rm -v -f
else
Expand Down Expand Up @@ -37,7 +40,7 @@ OBJS := \

$(TARGET): $(OBJS)
echo " LD $@"
$(LD) -shared -o $@ $^ $(LDFLAGS)
$(LD) $(SHARED_LIB_FLAG) -o $@ $^ $(LDFLAGS)

$(TARGET_S): $(OBJS)
echo " AR $@"
Expand Down
Loading