From 47d4fd045235f446db5268ebc09c06a94d881942 Mon Sep 17 00:00:00 2001 From: laurentgom Date: Mon, 5 Apr 2010 19:13:11 +0000 Subject: [PATCH] Applied the last modification to the sfml-graphics Linux makefile git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1492 4e206d99-4929-0410-ac5d-dfc041789085 --- build/make/Makefile.graphics | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/build/make/Makefile.graphics b/build/make/Makefile.graphics index 530e6dfb3..679d4fb10 100644 --- a/build/make/Makefile.graphics +++ b/build/make/Makefile.graphics @@ -1,16 +1,5 @@ -SRC = $(wildcard $(SRCROOT)/Graphics/*.cpp $(SRCROOT)/Graphics/Linux/*.cpp) -SRCGLEW = $(wildcard $(SRCROOT)/Graphics/GLEW/*.c) -SRCJPEG = $(wildcard $(SRCROOT)/Graphics/libjpeg/*.c) -SRCPNG = $(wildcard $(SRCROOT)/Graphics/libpng/*.c) -SRCSOIL = $(wildcard $(SRCROOT)/Graphics/SOIL/*.c) -SRCZLIB = $(wildcard $(SRCROOT)/Graphics/zlib/*.c) -OBJ = $(SRC:.cpp=.o) -OBJGLEW = $(SRCGLEW:.c=.o) -OBJJPEG = $(SRCJPEG:.c=.o) -OBJPNG = $(SRCPNG:.c=.o) -OBJSOIL = $(SRCSOIL:.c=.o) -OBJZLIB = $(SRCZLIB:.c=.o) - +SRC = $(wildcard $(SRCROOT)/Graphics/*.cpp $(SRCROOT)/Graphics/Linux/*.cpp) +OBJ = $(SRC:.cpp=.o) LIB = libsfml-graphics.so LIBNAME = $(LIB).$(VERSION) FULLLIBNAME = $(LIBPATH)/$(LIBNAME) @@ -18,22 +7,16 @@ LINK = $(LN) $(LNFLAGS) $(LIBNAME) $(DESTLIBDIR)/$(LIB) all: $(LIB) -libsfml-graphics.so: $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) - $(CPP) $(LDFLAGS) -Wl,-soname,$(LIBNAME) -o $(FULLLIBNAME) $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) -lfreetype -lX11 -lGL +libsfml-graphics.so: $(OBJ) + $(CPP) $(LDFLAGS) -Wl,-soname,$(LIBNAME) -o $(FULLLIBNAME) $(OBJ) -lGLEW -ljpeg -lpng -lSOIL -lfreetype -lX11 -lGL $(OBJ): %.o: %.cpp $(CPP) -o $@ -c $< $(CFLAGS) -I/usr/include/freetype2 -$(OBJSOIL): %.o: %.c - $(CC) -o $@ -c $< $(CFLAGSEXT) -DSTBI_FAILURE_USERMSG - -$(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJZLIB): %.o: %.c - $(CC) -o $@ -c $< $(CFLAGSEXT) - .PHONY: clean mrproper clean: - rm -rf $(OBJ) $(OBJGLEW) $(OBJJPEG) $(OBJPNG) $(OBJSOIL) $(OBJZLIB) + rm -rf $(OBJ) mrproper: clean rm -rf $(FULLLIBNAME)