2010-04-07 18:34:35 +08:00
|
|
|
SRC = $(wildcard $(SRCROOT)/Audio/*.cpp)
|
2009-12-03 17:19:25 +08:00
|
|
|
OBJ = $(SRC:.cpp=.o)
|
2010-04-07 18:34:35 +08:00
|
|
|
LIB = libcsfml-audio.so
|
2009-12-03 17:19:25 +08:00
|
|
|
LIBNAME = $(LIB).$(VERSION)
|
|
|
|
FULLLIBNAME = $(LIBPATH)/$(LIBNAME)
|
2010-04-07 18:34:35 +08:00
|
|
|
LINK = $(LN) $(LNFLAGS) $(LIBNAME) $(DESTLIBDIR)/$(LIB)
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
all: $(LIB)
|
|
|
|
|
|
|
|
libcsfml-audio.so: $(OBJ)
|
2009-12-03 17:19:25 +08:00
|
|
|
$(CPP) $(LDFLAGS) -Wl,-soname,$(LIBNAME) -o $(FULLLIBNAME) $(OBJ) -lsfml-audio
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
$(OBJ): %.o: %.cpp
|
|
|
|
$(CPP) -o $@ -c $< $(CFLAGS)
|
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|
|
|
|
clean:
|
2010-04-07 18:34:35 +08:00
|
|
|
rm -rf $(OBJ)
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
mrproper: clean
|
2010-04-07 18:34:35 +08:00
|
|
|
rm -rf $(FULLLIBNAME)
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
install:
|
2010-04-07 18:34:35 +08:00
|
|
|
objcopy --only-keep-debug $(FULLLIBNAME) $(DESTDBGDIR)/$(LIBNAME)
|
2009-12-03 17:19:25 +08:00
|
|
|
objcopy --strip-unneeded $(FULLLIBNAME) $(DESTLIBDIR)/$(LIBNAME)
|
|
|
|
$(LINK)
|