mirror of
https://github.com/SFML/SFML.git
synced 2024-11-26 05:11:04 +08:00
186f679f85
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1556 4e206d99-4929-0410-ac5d-dfc041789085
28 lines
701 B
Makefile
28 lines
701 B
Makefile
SRC = $(wildcard $(SRCROOT)/Window/*.cpp)
|
|
OBJ = $(SRC:.cpp=.o)
|
|
LIB = libcsfml2-window.so
|
|
LIBNAME = $(LIB).$(VERSION)
|
|
FULLLIBNAME = $(LIBPATH)/$(LIBNAME)
|
|
LINK = $(LN) $(LNFLAGS) $(LIBNAME) $(DESTLIBDIR)/$(LIB)
|
|
|
|
all: $(LIB)
|
|
|
|
libcsfml2-window.so: $(OBJ)
|
|
$(CPP) $(LDFLAGS) -Wl,-soname,$(LIBNAME) -o $(FULLLIBNAME) $(OBJ) -lsfml2-window -lsfml2-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)
|