From 674301d6d6e0728049d130c5281126b12ef4be45 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 18 Mar 2010 07:48:50 +0100 Subject: Adding static version of libuip, for 64 bits hosts. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3