summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3018a3f..3c37ed6 100644
--- a/Makefile
+++ b/Makefile
@@ -369,6 +369,7 @@ MAIN_IUP_SOURCE = \
plugin-luaiup.cc \
IUP_LIBS = $(LIBXM) -lXpm -lXmu -lXt -lXext -lX11 -lm
+IUP_LIBS_STATIC = /usr/lib/libXm.a /usr/lib/libXpm.a /usr/lib/libXp.a /usr/lib/libXmu.a /usr/lib/libXt.a /usr/lib/libSM.a /usr/lib/libICE.a /usr/lib/libXext.a /usr/lib/libX11.a /usr/lib/libxcb.a /usr/lib/libXau.a /usr/lib/libXdmcp.a -lm
WHOLE_SOURCES = \
$(IM_SOURCES) \
@@ -379,6 +380,10 @@ $(MAIN_IUP_SOURCE)
MODULES_LIST = \
luaiup.$(SHARED_EXT) \
+ifeq ($(DISTRIB),Debian)
+MODULES_LIST += luaiup-static.$(SHARED_EXT)
+endif
+
ALL_OBJECTS = $(addsuffix .o, $(notdir $(basename $(WHOLE_SOURCES))))
ALL_DEPS = $(addsuffix .dep, $(notdir $(basename $(WHOLE_SOURCES))))
@@ -399,6 +404,9 @@ luaiup.a: $(addsuffix .o, $(notdir $(basename $(IM_SOURCES) $(CD_SOURCES) $(IUP_
luaiup.$(SHARED_EXT): plugin-luaiup.o luaiup.a
$(LD) $(LDFLAGS) -o $@ $+ $(IM_LIBS) $(CD_LIBS) $(IUP_LIBS)
+luaiup-static.$(SHARED_EXT): plugin-luaiup.o luaiup.a
+ $(LD) $(LDFLAGS) -o $@ $+ $(IM_LIBS_STATIC) $(CD_LIBS_STATIC) $(IUP_LIBS_STATIC)
+
clean:
rm -f *.o *.dep *.so *.dylib *.a