2010-03-23 23:55:07 +08:00
|
|
|
export SRCROOT = ../..
|
|
|
|
export BINPATH = ../../bin
|
2010-04-09 00:18:38 +08:00
|
|
|
export CPP = g++
|
|
|
|
export CFLAGS = -W -Wall -ansi -g -O2 -DNDEBUG -I../../include
|
|
|
|
export SAMPLES = ftp opengl pong shader sockets sound sound_capture voip window X11
|
2010-03-23 23:55:07 +08:00
|
|
|
|
|
|
|
all: $(SAMPLES)
|
|
|
|
|
|
|
|
$(SAMPLES):
|
|
|
|
mkdir -p $(BINPATH)
|
|
|
|
$(MAKE) -f Makefile.$@
|
|
|
|
|
|
|
|
clean mrproper:
|
|
|
|
for sample in $(SAMPLES); do $(MAKE) $@ -f Makefile.$${sample}; done
|
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|