summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 592d2659987ecf2499a48299b1a031bc0827919f (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
########################################################
# Makefile automatically generated by Code::Blocks IDE #
########################################################

wxWidgetsPath=$(shell dirname `pwd`)/wxBase-2.8.12
wxXml2Path=$(shell dirname `pwd`)/wxxml2
wxXml2Lib=$(shell $(wxWidgetsPath)/wx-config --basename | sed 's/wx\_/wxcode_/')_wxxml2-$(shell $(wxWidgetsPath)/wx-config --release)

### Variables used in this Makefile
default_CC=$(shell $(wxWidgetsPath)/wx-config --cc)
default_CPP=$(shell $(wxWidgetsPath)/wx-config --cxx)
default_LD=$(shell $(wxWidgetsPath)/wx-config --ld | sed 's/-shared//')
default_LIB=

### Compiler/linker options
default_GLOBAL_CFLAGS=-g
default_PROJECT_CFLAGS=$(shell $(wxWidgetsPath)/wx-config --cppflags)
default_PROJECT_CFLAGS+= -Wall -Wextra -pipe -fno-pcc-struct-return -fno-rtti -fno-exceptions -DwxUSE_UNICODE=1 -D_X86_
default_GLOBAL_LDFLAGS=
default_PROJECT_LDFLAGS=
default_GLOBAL_INCS= -I$(wxXml2Path)/include -I/usr/include -I/usr/include/libxml2
default_PROJECT_INCS=
default_GLOBAL_LIBDIRS=
default_PROJECT_LIBDIRS=
default_GLOBAL_LIBS=
default_PROJECT_LIBS=$(shell $(wxWidgetsPath)/wx-config --libs) -L$(wxXml2Path)/lib -Wl,-rpath,$(wxXml2Path)/lib -l:lib$(wxXml2Lib).so.0 -lxml2

### Targets compiler flags
default_CFLAGS= $(default_PROJECT_CFLAGS) $(default_GLOBAL_CFLAGS)

### Targets linker flags
default_LDFLAGS= $(default_PROJECT_LDFLAGS) $(default_GLOBAL_LDFLAGS)

### Targets include directories
default_INCS= $(default_PROJECT_INCS) $(default_GLOBAL_INCS)

### Targets library directories
default_LIBDIRS= $(default_PROJECT_LIBDIRS) $(default_GLOBAL_LIBDIRS)

### Targets libraries
default_LIBS= $(default_PROJECT_LIBS) $(default_GLOBAL_LIBS)

###############################################################################
#         You shouldn't need to modify anything beyond this point             #
###############################################################################

### Resources used in this Makefile
default_RESOURCE=

### Objects used in this Makefile
default_OBJS=.objs/crc32.o .objs/base64.o .objs/tsapp.o .objs/tschannel.o \
	     .objs/tsclient.o .objs/tscommand.o .objs/tsconnectionthread.o \
	     .objs/tsquerythread.o .objs/tsplayer.o .objs/tsserver.o \
	     .objs/wxstreamex.o .objs/wxbufferex.o
default_LINKOBJS=$(default_OBJS)
default_DEPS=.deps/crc32.d .deps/base64.d .deps/tsapp.d .deps/tschannel.d \
	     .deps/tsclient.d .deps/tscommand.d .deps/tsconnectionthread.d \
	     .deps/tsquerythread.d .deps/tsplayer.d .deps/tsserver.d \
	     .deps/wxstreamex.d .deps/wxbufferex.d

### The targets of this project
default_BIN=tsclient

.PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom depend_default default-before default-after

all: all-before default all-after


dist:
	@zip tsclient.zip Makefile crc32.cpp crc32.h base64.c base64.h tsapp.cpp \
	tsapp.h tschannel.cpp tschannel.h tsclient.cpp tsclient.h tscommand.cpp \
	tscommand.h tsconnectionthread.cpp tsconnectionthread.h tsplayer.cpp \
	tsplayer.h tsserver.cpp tsserver.h wxstreamex.cpp wxstreamex.h

clean_default:
	$(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE)

distclean_default:
	$(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE)

clean: clean_default

distclean: distclean_default

depend_default_DIRS:
	-@if [ ! -e .deps ]; then mkdir .deps; fi

depend_default: depend_default_DIRS $(default_DEPS)

depend: depend_default

default_DIRS:
	-@if [ ! -e .objs ]; then mkdir .objs; fi

default: depend_default default_DIRS default-before $(default_BIN) default-after

$(default_BIN): $(default_LINKOBJS) $(default_RESOURCE)
	$(default_LD) $(default_LIBDIRS) $(default_BIN) $(default_LINKOBJS) $(default_RESOURCE) $(default_LDFLAGS) $(default_LIBS)

tsheaders=tschannel.h tsclient.h tscommand.h tsconnectionthread.h tsheaders.h \
	tsplayer.h tsserver.h

.deps/crc32.d: crc32.cpp crc32.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/crc32.d -MT .objs/crc32.o $(default_INCS) crc32.cpp

.objs/crc32.o: .deps/crc32.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c crc32.cpp -o .objs/crc32.o

.deps/base64.d: base64.cpp base64.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/base64.d -MT .objs/base64.o $(default_INCS) base64.cpp

.objs/base64.o: .deps/base64.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c base64.cpp -o .objs/base64.o

.deps/tsapp.d: tsapp.cpp tsapp.h $(tsheaders) tsquerythread.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsapp.d -MT .objs/tsapp.o $(default_INCS) tsapp.cpp

.objs/tsapp.o: .deps/tsapp.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsapp.cpp -o .objs/tsapp.o

.deps/tschannel.d: tschannel.cpp $(tsheaders)
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tschannel.d -MT .objs/tschannel.o $(default_INCS) tschannel.cpp

.objs/tschannel.o: .deps/tschannel.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tschannel.cpp -o .objs/tschannel.o

.deps/tsclient.d: tsclient.cpp $(tsheaders) tsserver.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsclient.d -MT .objs/tsclient.o $(default_INCS) tsclient.cpp

.objs/tsclient.o: .deps/tsclient.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsclient.cpp -o .objs/tsclient.o

.deps/tscommand.d: tscommand.cpp $(tsheaders) crc32.h wxbufferex.h wxstreamex.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tscommand.d -MT .objs/tscommand.o $(default_INCS) tscommand.cpp

.objs/tscommand.o: .deps/tscommand.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tscommand.cpp -o .objs/tscommand.o

.deps/tsconnectionthread.d: tsconnectionthread.cpp $(tsheaders) wxbufferex.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsconnectionthread.d -MT .objs/tsconnectionthread.o $(default_INCS) tsconnectionthread.cpp

.objs/tsconnectionthread.o: .deps/tsconnectionthread.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsconnectionthread.cpp -o .objs/tsconnectionthread.o

.deps/tsquerythread.d: tsquerythread.cpp tsquerythread.h $(tsheaders) base64.h wxbufferex.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsquerythread.d -MT .objs/tsquerythread.o $(default_INCS) tsquerythread.cpp

.objs/tsquerythread.o: .deps/tsquerythread.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsquerythread.cpp -o .objs/tsquerythread.o

.deps/tsplayer.d: tsplayer.cpp $(tsheaders)
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsplayer.d -MT .objs/tsplayer.o $(default_INCS) tsplayer.cpp

.objs/tsplayer.o: .deps/tsplayer.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsplayer.cpp -o .objs/tsplayer.o

.deps/tsserver.d: tsserver.cpp tsserver.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsserver.d -MT .objs/tsserver.o $(default_INCS) tsserver.cpp

.objs/tsserver.o: .deps/tsserver.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsserver.cpp -o .objs/tsserver.o

.deps/wxstreamex.d: wxstreamex.cpp wxbufferex.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/wxstreamex.d -MT .objs/wxstreamex.o $(default_INCS) wxstreamex.cpp

.objs/wxstreamex.o: .deps/wxstreamex.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c wxstreamex.cpp -o .objs/wxstreamex.o

.deps/wxbufferex.d: wxbufferex.cpp wxstreamex.h
	$(default_CPP) -MM $(default_CFLAGS) -MF .deps/wxbufferex.d -MT .objs/wxbufferex.o $(default_INCS) wxbufferex.cpp

.objs/wxbufferex.o: .deps/wxbufferex.d
	$(default_CPP) $(default_CFLAGS) $(default_INCS) -c wxbufferex.cpp -o .objs/wxbufferex.o