2009-01-29 00:18:34 +08:00
|
|
|
export CC = g++
|
2009-11-20 07:31:33 +08:00
|
|
|
export CFLAGS = -W -Wall -ansi -g -O2 -DNDEBUG -I../../include
|
2009-01-29 00:18:34 +08:00
|
|
|
export LDFLAGS =
|
|
|
|
export EXECPATH = ../bin
|
|
|
|
|
2009-11-11 17:55:11 +08:00
|
|
|
all: ftp-sample opengl-sample pong-sample qt-sample shader-sample sockets-sample sound-sample sound_capture-sample voip-sample window-sample wxwidgets-sample X11-sample
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
ftp-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./ftp && $(MAKE))
|
|
|
|
|
|
|
|
opengl-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./opengl && $(MAKE))
|
|
|
|
|
|
|
|
pong-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./pong && $(MAKE))
|
|
|
|
|
2009-11-11 17:50:27 +08:00
|
|
|
shader-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-11-11 17:50:27 +08:00
|
|
|
@(cd ./shader && $(MAKE))
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
qt-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./qt && $(MAKE))
|
|
|
|
|
|
|
|
sockets-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./sockets && $(MAKE))
|
|
|
|
|
|
|
|
sound-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./sound && $(MAKE))
|
|
|
|
|
|
|
|
sound_capture-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./sound_capture && $(MAKE))
|
|
|
|
|
|
|
|
voip-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./voip && $(MAKE))
|
|
|
|
|
|
|
|
window-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./window && $(MAKE))
|
|
|
|
|
|
|
|
wxwidgets-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./wxwidgets && $(MAKE))
|
|
|
|
|
|
|
|
X11-sample:
|
2009-10-08 15:08:34 +08:00
|
|
|
@(mkdir -p bin)
|
2009-01-29 00:18:34 +08:00
|
|
|
@(cd ./X11 && $(MAKE))
|
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@(cd ./ftp && $(MAKE) $@ && \
|
|
|
|
cd ../opengl && $(MAKE) $@ && \
|
|
|
|
cd ../pong && $(MAKE) $@ && \
|
|
|
|
cd ../qt && $(MAKE) $@ && \
|
2009-11-11 17:50:27 +08:00
|
|
|
cd ../shader && $(MAKE) $@ && \
|
2009-01-29 00:18:34 +08:00
|
|
|
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 ../qt && $(MAKE) $@ && \
|
2009-11-11 17:50:27 +08:00
|
|
|
cd ../shader && $(MAKE) $@ && \
|
2009-01-29 00:18:34 +08:00
|
|
|
cd ../sockets && $(MAKE) $@ && \
|
|
|
|
cd ../sound && $(MAKE) $@ && \
|
|
|
|
cd ../sound_capture && $(MAKE) $@ && \
|
|
|
|
cd ../voip && $(MAKE) $@ && \
|
|
|
|
cd ../window && $(MAKE) $@ && \
|
|
|
|
cd ../wxwidgets && $(MAKE) $@ && \
|
|
|
|
cd ../X11 && $(MAKE) $@)
|