Moved CSFML Linux makefiles outside the source tree
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1498 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
af22a15df3
commit
c0b84d3469
13 changed files with 90 additions and 104 deletions
27
CSFML/build/make/Makefile.graphics
Normal file
27
CSFML/build/make/Makefile.graphics
Normal file
|
@ -0,0 +1,27 @@
|
|||
SRC = $(wildcard $(SRCROOT)/Graphics/*.cpp)
|
||||
OBJ = $(SRC:.cpp=.o)
|
||||
LIB = libcsfml-graphics.so
|
||||
LIBNAME = $(LIB).$(VERSION)
|
||||
FULLLIBNAME = $(LIBPATH)/$(LIBNAME)
|
||||
LINK = $(LN) $(LNFLAGS) $(LIBNAME) $(DESTLIBDIR)/$(LIB)
|
||||
|
||||
all: $(LIB)
|
||||
|
||||
libcsfml-graphics.so: $(OBJ)
|
||||
$(CPP) $(LDFLAGS) -Wl,-soname,$(LIBNAME) -o $(FULLLIBNAME) $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system
|
||||
|
||||
$(OBJ): %.o: %.cpp
|
||||
$(CPP) -o $@ -c $< $(CFLAGS)
|
||||
|
||||
.PHONY: clean mrproper
|
||||
|
||||
clean:
|
||||
rm -rf $(OBJ)
|
||||
|
||||
mrproper: clean
|
||||
rm -rf $(FULLLIBNAME)
|
||||
|
||||
install:
|
||||
objcopy --only-keep-debug $(FULLLIBNAME) $(DESTDBGDIR)/$(LIBNAME)
|
||||
objcopy --strip-unneeded $(FULLLIBNAME) $(DESTLIBDIR)/$(LIBNAME)
|
||||
$(LINK)
|
Loading…
Add table
Add a link
Reference in a new issue