2010-03-23 23:55:07 +08:00
|
|
|
export SRCROOT = ../../src/SFML
|
2010-08-19 23:59:24 +08:00
|
|
|
export DESTDIR = /usr/local
|
|
|
|
export DESTLIBDIR = $(DESTDIR)/lib
|
2010-03-23 23:55:07 +08:00
|
|
|
export DESTINCDIR = $(DESTDIR)/include
|
|
|
|
export DESTDBGDIR = $(DESTLIBDIR)/debug/$(DESTLIBDIR)
|
2010-08-19 23:59:24 +08:00
|
|
|
export CC = gcc
|
|
|
|
export CPP = g++
|
|
|
|
export CFLAGS = -W -Wall -pedantic -g -O2 -DNDEBUG -I../../include -I../../src -fPIC
|
|
|
|
export CFLAGSEXT = -I../../include -I../../src -g -O2 -DNDEBUG -fPIC
|
|
|
|
export LDFLAGS = -shared
|
|
|
|
export LIBPATH = ../../lib
|
2010-03-23 23:55:07 +08:00
|
|
|
export VERSION = 2.0
|
2010-08-19 23:59:24 +08:00
|
|
|
export CP = cp
|
|
|
|
export LN = ln
|
|
|
|
export LNFLAGS = -s -f
|
2010-03-23 23:55:07 +08:00
|
|
|
export LIBS = system window graphics audio network
|
|
|
|
|
|
|
|
all: sfml
|
|
|
|
|
|
|
|
sfml: $(LIBS)
|
|
|
|
|
2010-08-19 23:59:24 +08:00
|
|
|
examples:
|
|
|
|
cd ../../examples/build/make && $(MAKE)
|
2010-03-23 23:55:07 +08:00
|
|
|
|
|
|
|
$(LIBS):
|
|
|
|
mkdir -p $(LIBPATH)
|
|
|
|
$(MAKE) -f Makefile.$@
|
|
|
|
|
|
|
|
install:
|
2010-08-19 23:59:24 +08:00
|
|
|
mkdir -p $(DESTLIBDIR)
|
|
|
|
mkdir -p $(DESTINCDIR)
|
2010-03-23 23:55:07 +08:00
|
|
|
mkdir -p $(DESTDBGDIR)
|
|
|
|
$(CP) -r ../../include/SFML/ $(DESTINCDIR)/
|
|
|
|
find $(DESTINCDIR)/SFML -name .svn -type d -print0 | xargs -0 /bin/rm -rf
|
|
|
|
$(MAKE) $@ -f Makefile.system
|
|
|
|
$(MAKE) $@ -f Makefile.window
|
|
|
|
$(MAKE) $@ -f Makefile.graphics
|
|
|
|
$(MAKE) $@ -f Makefile.audio
|
|
|
|
$(MAKE) $@ -f Makefile.network
|
|
|
|
|
|
|
|
clean mrproper:
|
|
|
|
$(MAKE) $@ -f Makefile.system
|
|
|
|
$(MAKE) $@ -f Makefile.window
|
|
|
|
$(MAKE) $@ -f Makefile.graphics
|
|
|
|
$(MAKE) $@ -f Makefile.audio
|
|
|
|
$(MAKE) $@ -f Makefile.network
|
2010-08-19 23:59:24 +08:00
|
|
|
cd ../../examples/build/make && $(MAKE) $@
|
2010-03-23 23:55:07 +08:00
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|