File: Makefile

package info (click to toggle)
libsfml 1.6%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 12,756 kB
  • ctags: 38,139
  • sloc: cpp: 27,830; ansic: 3,963; makefile: 483
file content (91 lines) | stat: -rwxr-xr-x 2,273 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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:
	@(mkdir -p bin)
	@(cd ./ftp && $(MAKE))

opengl-sample:
	@(mkdir -p bin)
	@(cd ./opengl && $(MAKE))

pong-sample:
	@(mkdir -p bin)
	@(cd ./pong && $(MAKE))

post-fx-sample:
	@(mkdir -p bin)
	@(cd ./post-fx && $(MAKE))

qt-sample:
	@(mkdir -p bin)
	@(cd ./qt && $(MAKE))

sockets-sample:
	@(mkdir -p bin)
	@(cd ./sockets && $(MAKE))

sound-sample:
	@(mkdir -p bin)
	@(cd ./sound && $(MAKE))

sound_capture-sample:
	@(mkdir -p bin)
	@(cd ./sound_capture && $(MAKE))

voip-sample:
	@(mkdir -p bin)
	@(cd ./voip && $(MAKE))

window-sample:
	@(mkdir -p bin)
	@(cd ./window && $(MAKE))

wxwidgets-sample:
	@(mkdir -p bin)
	@(cd ./wxwidgets && $(MAKE))

X11-sample:
	@(mkdir -p bin)
	@(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) $@)