diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..592d265 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,173 @@ | |||
| 1 | ######################################################## | ||
| 2 | # Makefile automatically generated by Code::Blocks IDE # | ||
| 3 | ######################################################## | ||
| 4 | |||
| 5 | wxWidgetsPath=$(shell dirname `pwd`)/wxBase-2.8.12 | ||
| 6 | wxXml2Path=$(shell dirname `pwd`)/wxxml2 | ||
| 7 | wxXml2Lib=$(shell $(wxWidgetsPath)/wx-config --basename | sed 's/wx\_/wxcode_/')_wxxml2-$(shell $(wxWidgetsPath)/wx-config --release) | ||
| 8 | |||
| 9 | ### Variables used in this Makefile | ||
| 10 | default_CC=$(shell $(wxWidgetsPath)/wx-config --cc) | ||
| 11 | default_CPP=$(shell $(wxWidgetsPath)/wx-config --cxx) | ||
| 12 | default_LD=$(shell $(wxWidgetsPath)/wx-config --ld | sed 's/-shared//') | ||
| 13 | default_LIB= | ||
| 14 | |||
| 15 | ### Compiler/linker options | ||
| 16 | default_GLOBAL_CFLAGS=-g | ||
| 17 | default_PROJECT_CFLAGS=$(shell $(wxWidgetsPath)/wx-config --cppflags) | ||
| 18 | default_PROJECT_CFLAGS+= -Wall -Wextra -pipe -fno-pcc-struct-return -fno-rtti -fno-exceptions -DwxUSE_UNICODE=1 -D_X86_ | ||
| 19 | default_GLOBAL_LDFLAGS= | ||
| 20 | default_PROJECT_LDFLAGS= | ||
| 21 | default_GLOBAL_INCS= -I$(wxXml2Path)/include -I/usr/include -I/usr/include/libxml2 | ||
| 22 | default_PROJECT_INCS= | ||
| 23 | default_GLOBAL_LIBDIRS= | ||
| 24 | default_PROJECT_LIBDIRS= | ||
| 25 | default_GLOBAL_LIBS= | ||
| 26 | default_PROJECT_LIBS=$(shell $(wxWidgetsPath)/wx-config --libs) -L$(wxXml2Path)/lib -Wl,-rpath,$(wxXml2Path)/lib -l:lib$(wxXml2Lib).so.0 -lxml2 | ||
| 27 | |||
| 28 | ### Targets compiler flags | ||
| 29 | default_CFLAGS= $(default_PROJECT_CFLAGS) $(default_GLOBAL_CFLAGS) | ||
| 30 | |||
| 31 | ### Targets linker flags | ||
| 32 | default_LDFLAGS= $(default_PROJECT_LDFLAGS) $(default_GLOBAL_LDFLAGS) | ||
| 33 | |||
| 34 | ### Targets include directories | ||
| 35 | default_INCS= $(default_PROJECT_INCS) $(default_GLOBAL_INCS) | ||
| 36 | |||
| 37 | ### Targets library directories | ||
| 38 | default_LIBDIRS= $(default_PROJECT_LIBDIRS) $(default_GLOBAL_LIBDIRS) | ||
| 39 | |||
| 40 | ### Targets libraries | ||
| 41 | default_LIBS= $(default_PROJECT_LIBS) $(default_GLOBAL_LIBS) | ||
| 42 | |||
| 43 | ############################################################################### | ||
| 44 | # You shouldn't need to modify anything beyond this point # | ||
| 45 | ############################################################################### | ||
| 46 | |||
| 47 | ### Resources used in this Makefile | ||
| 48 | default_RESOURCE= | ||
| 49 | |||
| 50 | ### Objects used in this Makefile | ||
| 51 | default_OBJS=.objs/crc32.o .objs/base64.o .objs/tsapp.o .objs/tschannel.o \ | ||
| 52 | .objs/tsclient.o .objs/tscommand.o .objs/tsconnectionthread.o \ | ||
| 53 | .objs/tsquerythread.o .objs/tsplayer.o .objs/tsserver.o \ | ||
| 54 | .objs/wxstreamex.o .objs/wxbufferex.o | ||
| 55 | default_LINKOBJS=$(default_OBJS) | ||
| 56 | default_DEPS=.deps/crc32.d .deps/base64.d .deps/tsapp.d .deps/tschannel.d \ | ||
| 57 | .deps/tsclient.d .deps/tscommand.d .deps/tsconnectionthread.d \ | ||
| 58 | .deps/tsquerythread.d .deps/tsplayer.d .deps/tsserver.d \ | ||
| 59 | .deps/wxstreamex.d .deps/wxbufferex.d | ||
| 60 | |||
| 61 | ### The targets of this project | ||
| 62 | default_BIN=tsclient | ||
| 63 | |||
| 64 | .PHONY: all all-before all-custom all-after clean clean-custom distclean distclean-custom depend_default default-before default-after | ||
| 65 | |||
| 66 | all: all-before default all-after | ||
| 67 | |||
| 68 | |||
| 69 | dist: | ||
| 70 | @zip tsclient.zip Makefile crc32.cpp crc32.h base64.c base64.h tsapp.cpp \ | ||
| 71 | tsapp.h tschannel.cpp tschannel.h tsclient.cpp tsclient.h tscommand.cpp \ | ||
| 72 | tscommand.h tsconnectionthread.cpp tsconnectionthread.h tsplayer.cpp \ | ||
| 73 | tsplayer.h tsserver.cpp tsserver.h wxstreamex.cpp wxstreamex.h | ||
| 74 | |||
| 75 | clean_default: | ||
| 76 | $(RM) $(default_BIN) $(default_OBJS) $(default_RESOURCE) | ||
| 77 | |||
| 78 | distclean_default: | ||
| 79 | $(RM) $(default_BIN) $(default_OBJS) $(default_DEPS) $(default_RESOURCE) | ||
| 80 | |||
| 81 | clean: clean_default | ||
| 82 | |||
| 83 | distclean: distclean_default | ||
| 84 | |||
| 85 | depend_default_DIRS: | ||
| 86 | -@if [ ! -e .deps ]; then mkdir .deps; fi | ||
| 87 | |||
| 88 | depend_default: depend_default_DIRS $(default_DEPS) | ||
| 89 | |||
| 90 | depend: depend_default | ||
| 91 | |||
| 92 | default_DIRS: | ||
| 93 | -@if [ ! -e .objs ]; then mkdir .objs; fi | ||
| 94 | |||
| 95 | default: depend_default default_DIRS default-before $(default_BIN) default-after | ||
| 96 | |||
| 97 | $(default_BIN): $(default_LINKOBJS) $(default_RESOURCE) | ||
| 98 | $(default_LD) $(default_LIBDIRS) $(default_BIN) $(default_LINKOBJS) $(default_RESOURCE) $(default_LDFLAGS) $(default_LIBS) | ||
| 99 | |||
| 100 | tsheaders=tschannel.h tsclient.h tscommand.h tsconnectionthread.h tsheaders.h \ | ||
| 101 | tsplayer.h tsserver.h | ||
| 102 | |||
| 103 | .deps/crc32.d: crc32.cpp crc32.h | ||
| 104 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/crc32.d -MT .objs/crc32.o $(default_INCS) crc32.cpp | ||
| 105 | |||
| 106 | .objs/crc32.o: .deps/crc32.d | ||
| 107 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c crc32.cpp -o .objs/crc32.o | ||
| 108 | |||
| 109 | .deps/base64.d: base64.cpp base64.h | ||
| 110 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/base64.d -MT .objs/base64.o $(default_INCS) base64.cpp | ||
| 111 | |||
| 112 | .objs/base64.o: .deps/base64.d | ||
| 113 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c base64.cpp -o .objs/base64.o | ||
| 114 | |||
| 115 | .deps/tsapp.d: tsapp.cpp tsapp.h $(tsheaders) tsquerythread.h | ||
| 116 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsapp.d -MT .objs/tsapp.o $(default_INCS) tsapp.cpp | ||
| 117 | |||
| 118 | .objs/tsapp.o: .deps/tsapp.d | ||
| 119 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsapp.cpp -o .objs/tsapp.o | ||
| 120 | |||
| 121 | .deps/tschannel.d: tschannel.cpp $(tsheaders) | ||
| 122 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tschannel.d -MT .objs/tschannel.o $(default_INCS) tschannel.cpp | ||
| 123 | |||
| 124 | .objs/tschannel.o: .deps/tschannel.d | ||
| 125 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tschannel.cpp -o .objs/tschannel.o | ||
| 126 | |||
| 127 | .deps/tsclient.d: tsclient.cpp $(tsheaders) tsserver.h | ||
| 128 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsclient.d -MT .objs/tsclient.o $(default_INCS) tsclient.cpp | ||
| 129 | |||
| 130 | .objs/tsclient.o: .deps/tsclient.d | ||
| 131 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsclient.cpp -o .objs/tsclient.o | ||
| 132 | |||
| 133 | .deps/tscommand.d: tscommand.cpp $(tsheaders) crc32.h wxbufferex.h wxstreamex.h | ||
| 134 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tscommand.d -MT .objs/tscommand.o $(default_INCS) tscommand.cpp | ||
| 135 | |||
| 136 | .objs/tscommand.o: .deps/tscommand.d | ||
| 137 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tscommand.cpp -o .objs/tscommand.o | ||
| 138 | |||
| 139 | .deps/tsconnectionthread.d: tsconnectionthread.cpp $(tsheaders) wxbufferex.h | ||
| 140 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsconnectionthread.d -MT .objs/tsconnectionthread.o $(default_INCS) tsconnectionthread.cpp | ||
| 141 | |||
| 142 | .objs/tsconnectionthread.o: .deps/tsconnectionthread.d | ||
| 143 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsconnectionthread.cpp -o .objs/tsconnectionthread.o | ||
| 144 | |||
| 145 | .deps/tsquerythread.d: tsquerythread.cpp tsquerythread.h $(tsheaders) base64.h wxbufferex.h | ||
| 146 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsquerythread.d -MT .objs/tsquerythread.o $(default_INCS) tsquerythread.cpp | ||
| 147 | |||
| 148 | .objs/tsquerythread.o: .deps/tsquerythread.d | ||
| 149 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsquerythread.cpp -o .objs/tsquerythread.o | ||
| 150 | |||
| 151 | .deps/tsplayer.d: tsplayer.cpp $(tsheaders) | ||
| 152 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsplayer.d -MT .objs/tsplayer.o $(default_INCS) tsplayer.cpp | ||
| 153 | |||
| 154 | .objs/tsplayer.o: .deps/tsplayer.d | ||
| 155 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsplayer.cpp -o .objs/tsplayer.o | ||
| 156 | |||
| 157 | .deps/tsserver.d: tsserver.cpp tsserver.h | ||
| 158 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/tsserver.d -MT .objs/tsserver.o $(default_INCS) tsserver.cpp | ||
| 159 | |||
| 160 | .objs/tsserver.o: .deps/tsserver.d | ||
| 161 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c tsserver.cpp -o .objs/tsserver.o | ||
| 162 | |||
| 163 | .deps/wxstreamex.d: wxstreamex.cpp wxbufferex.h | ||
| 164 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/wxstreamex.d -MT .objs/wxstreamex.o $(default_INCS) wxstreamex.cpp | ||
| 165 | |||
| 166 | .objs/wxstreamex.o: .deps/wxstreamex.d | ||
| 167 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c wxstreamex.cpp -o .objs/wxstreamex.o | ||
| 168 | |||
| 169 | .deps/wxbufferex.d: wxbufferex.cpp wxstreamex.h | ||
| 170 | $(default_CPP) -MM $(default_CFLAGS) -MF .deps/wxbufferex.d -MT .objs/wxbufferex.o $(default_INCS) wxbufferex.cpp | ||
| 171 | |||
| 172 | .objs/wxbufferex.o: .deps/wxbufferex.d | ||
| 173 | $(default_CPP) $(default_CFLAGS) $(default_INCS) -c wxbufferex.cpp -o .objs/wxbufferex.o | ||
