diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-03-18 07:48:50 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-03-18 07:48:50 +0100 |
commit | 674301d6d6e0728049d130c5281126b12ef4be45 (patch) | |
tree | 5899ac767d3b89dbb717115955637e4a0d3ceb91 /Makefile | |
parent | 55e8f496aa0399b471eeb0dfcddda2d5c67e9f2a (diff) |
Adding static version of libuip, for 64 bits hosts.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |