mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
2f524481c1
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1002 4e206d99-4929-0410-ac5d-dfc041789085
80 lines
2.0 KiB
Makefile
80 lines
2.0 KiB
Makefile
export DEBUGBUILD = no
|
|
ifeq ($(DEBUGBUILD), yes)
|
|
DEBUGFLAGS = -g -DDEBUG
|
|
else
|
|
DEBUGFLAGS = -O2 -DNDEBUG
|
|
endif
|
|
|
|
export CC = g++
|
|
export CFLAGS = -W -Wall -ansi -I../../include $(DEBUGFLAGS)
|
|
export LDFLAGS =
|
|
export EXECPATH = ../bin
|
|
|
|
all: ftp-sample opengl-sample pong-sample post-fx-sample qt-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample
|
|
|
|
ftp-sample:
|
|
@(cd ./ftp && $(MAKE))
|
|
|
|
opengl-sample:
|
|
@(cd ./opengl && $(MAKE))
|
|
|
|
pong-sample:
|
|
@(cd ./pong && $(MAKE))
|
|
|
|
post-fx-sample:
|
|
@(cd ./post-fx && $(MAKE))
|
|
|
|
qt-sample:
|
|
@(cd ./qt && $(MAKE))
|
|
|
|
sockets-sample:
|
|
@(cd ./sockets && $(MAKE))
|
|
|
|
sound-sample:
|
|
@(cd ./sound && $(MAKE))
|
|
|
|
sound_capture-sample:
|
|
@(cd ./sound_capture && $(MAKE))
|
|
|
|
voip-sample:
|
|
@(cd ./voip && $(MAKE))
|
|
|
|
window-sample:
|
|
@(cd ./window && $(MAKE))
|
|
|
|
wxwidgets-sample:
|
|
@(cd ./wxwidgets && $(MAKE))
|
|
|
|
X11-sample:
|
|
@(cd ./X11 && $(MAKE))
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
clean:
|
|
@(cd ./ftp && $(MAKE) $@ && \
|
|
cd ../opengl && $(MAKE) $@ && \
|
|
cd ../pong && $(MAKE) $@ && \
|
|
cd ../post-fx && $(MAKE) $@ && \
|
|
cd ../qt && $(MAKE) $@ && \
|
|
cd ../sockets && $(MAKE) $@ && \
|
|
cd ../sound && $(MAKE) $@ && \
|
|
cd ../sound_capture && $(MAKE) $@ && \
|
|
cd ../voip && $(MAKE) $@ && \
|
|
cd ../window && $(MAKE) $@ && \
|
|
cd ../wxwidgets && $(MAKE) $@ && \
|
|
cd ../X11 && $(MAKE) $@)
|
|
|
|
mrproper: clean
|
|
@(cd ./ftp && $(MAKE) $@ && \
|
|
cd ../opengl && $(MAKE) $@ && \
|
|
cd ../pong && $(MAKE) $@ && \
|
|
cd ../post-fx && $(MAKE) $@ && \
|
|
cd ../qt && $(MAKE) $@ && \
|
|
cd ../sockets && $(MAKE) $@ && \
|
|
cd ../sound && $(MAKE) $@ && \
|
|
cd ../sound_capture && $(MAKE) $@ && \
|
|
cd ../voip && $(MAKE) $@ && \
|
|
cd ../window && $(MAKE) $@ && \
|
|
cd ../wxwidgets && $(MAKE) $@ && \
|
|
cd ../X11 && $(MAKE) $@)
|