Viergewinnt (four-in-a-row) implementation in c++ and QT
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. #############################################################################
  2. # Makefile for building: viergewinnt-qt
  3. # Generated by qmake (2.01a) (Qt 4.4.3) on: Di Jan 20 23:09:39 2009
  4. # Project: viergewinnt-qt.pro
  5. # Template: app
  6. # Command: /usr/bin/qmake -unix -o Makefile viergewinnt-qt.pro
  7. #############################################################################
  8. ####### Compiler, tools and options
  9. CC = gcc
  10. CXX = g++
  11. DEFINES = -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
  12. CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
  13. CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
  14. INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I.
  15. LINK = g++
  16. LFLAGS =
  17. LIBS = $(SUBLIBS) -L/usr/lib -lQtGui -lQtNetwork -lQtCore -lpthread
  18. AR = ar cqs
  19. RANLIB =
  20. QMAKE = /usr/bin/qmake
  21. TAR = tar -cf
  22. COMPRESS = gzip -9f
  23. COPY = cp -f
  24. SED = sed
  25. COPY_FILE = $(COPY)
  26. COPY_DIR = $(COPY) -r
  27. INSTALL_FILE = install -m 644 -p
  28. INSTALL_DIR = $(COPY_DIR)
  29. INSTALL_PROGRAM = install -m 755 -p
  30. DEL_FILE = rm -f
  31. SYMLINK = ln -sf
  32. DEL_DIR = rmdir
  33. MOVE = mv -f
  34. CHK_DIR_EXISTS= test -d
  35. MKDIR = mkdir -p
  36. ####### Output directory
  37. OBJECTS_DIR = ./
  38. ####### Files
  39. SOURCES = about.cpp \
  40. creategame.cpp \
  41. findserver.cpp \
  42. main.cpp \
  43. newgame.cpp \
  44. playerwait.cpp \
  45. renderarea.cpp \
  46. selectmaster.cpp \
  47. viergewinnt.cpp moc_about.cpp \
  48. moc_creategame.cpp \
  49. moc_findserver.cpp \
  50. moc_newgame.cpp \
  51. moc_playerwait.cpp \
  52. moc_renderarea.cpp \
  53. moc_selectmaster.cpp \
  54. moc_viergewinnt.cpp
  55. OBJECTS = about.o \
  56. creategame.o \
  57. findserver.o \
  58. main.o \
  59. newgame.o \
  60. playerwait.o \
  61. renderarea.o \
  62. selectmaster.o \
  63. viergewinnt.o \
  64. moc_about.o \
  65. moc_creategame.o \
  66. moc_findserver.o \
  67. moc_newgame.o \
  68. moc_playerwait.o \
  69. moc_renderarea.o \
  70. moc_selectmaster.o \
  71. moc_viergewinnt.o
  72. DIST = /usr/share/qt4/mkspecs/common/g++.conf \
  73. /usr/share/qt4/mkspecs/common/unix.conf \
  74. /usr/share/qt4/mkspecs/common/linux.conf \
  75. /usr/share/qt4/mkspecs/qconfig.pri \
  76. /usr/share/qt4/mkspecs/features/qt_functions.prf \
  77. /usr/share/qt4/mkspecs/features/qt_config.prf \
  78. /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
  79. /usr/share/qt4/mkspecs/features/default_pre.prf \
  80. /usr/share/qt4/mkspecs/features/release.prf \
  81. /usr/share/qt4/mkspecs/features/default_post.prf \
  82. /usr/share/qt4/mkspecs/features/warn_on.prf \
  83. /usr/share/qt4/mkspecs/features/qt.prf \
  84. /usr/share/qt4/mkspecs/features/unix/thread.prf \
  85. /usr/share/qt4/mkspecs/features/moc.prf \
  86. /usr/share/qt4/mkspecs/features/resources.prf \
  87. /usr/share/qt4/mkspecs/features/uic.prf \
  88. /usr/share/qt4/mkspecs/features/yacc.prf \
  89. /usr/share/qt4/mkspecs/features/lex.prf \
  90. viergewinnt-qt.pro
  91. QMAKE_TARGET = viergewinnt-qt
  92. DESTDIR =
  93. TARGET = viergewinnt-qt
  94. first: all
  95. ####### Implicit rules
  96. .SUFFIXES: .o .c .cpp .cc .cxx .C
  97. .cpp.o:
  98. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  99. .cc.o:
  100. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  101. .cxx.o:
  102. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  103. .C.o:
  104. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  105. .c.o:
  106. $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
  107. ####### Build rules
  108. all: Makefile $(TARGET)
  109. $(TARGET): $(OBJECTS)
  110. $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
  111. Makefile: viergewinnt-qt.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
  112. /usr/share/qt4/mkspecs/common/unix.conf \
  113. /usr/share/qt4/mkspecs/common/linux.conf \
  114. /usr/share/qt4/mkspecs/qconfig.pri \
  115. /usr/share/qt4/mkspecs/features/qt_functions.prf \
  116. /usr/share/qt4/mkspecs/features/qt_config.prf \
  117. /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
  118. /usr/share/qt4/mkspecs/features/default_pre.prf \
  119. /usr/share/qt4/mkspecs/features/release.prf \
  120. /usr/share/qt4/mkspecs/features/default_post.prf \
  121. /usr/share/qt4/mkspecs/features/warn_on.prf \
  122. /usr/share/qt4/mkspecs/features/qt.prf \
  123. /usr/share/qt4/mkspecs/features/unix/thread.prf \
  124. /usr/share/qt4/mkspecs/features/moc.prf \
  125. /usr/share/qt4/mkspecs/features/resources.prf \
  126. /usr/share/qt4/mkspecs/features/uic.prf \
  127. /usr/share/qt4/mkspecs/features/yacc.prf \
  128. /usr/share/qt4/mkspecs/features/lex.prf \
  129. /usr/lib/libQtGui.prl \
  130. /usr/lib/libQtNetwork.prl \
  131. /usr/lib/libQtCore.prl
  132. $(QMAKE) -unix -o Makefile viergewinnt-qt.pro
  133. /usr/share/qt4/mkspecs/common/g++.conf:
  134. /usr/share/qt4/mkspecs/common/unix.conf:
  135. /usr/share/qt4/mkspecs/common/linux.conf:
  136. /usr/share/qt4/mkspecs/qconfig.pri:
  137. /usr/share/qt4/mkspecs/features/qt_functions.prf:
  138. /usr/share/qt4/mkspecs/features/qt_config.prf:
  139. /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
  140. /usr/share/qt4/mkspecs/features/default_pre.prf:
  141. /usr/share/qt4/mkspecs/features/release.prf:
  142. /usr/share/qt4/mkspecs/features/default_post.prf:
  143. /usr/share/qt4/mkspecs/features/warn_on.prf:
  144. /usr/share/qt4/mkspecs/features/qt.prf:
  145. /usr/share/qt4/mkspecs/features/unix/thread.prf:
  146. /usr/share/qt4/mkspecs/features/moc.prf:
  147. /usr/share/qt4/mkspecs/features/resources.prf:
  148. /usr/share/qt4/mkspecs/features/uic.prf:
  149. /usr/share/qt4/mkspecs/features/yacc.prf:
  150. /usr/share/qt4/mkspecs/features/lex.prf:
  151. /usr/lib/libQtGui.prl:
  152. /usr/lib/libQtNetwork.prl:
  153. /usr/lib/libQtCore.prl:
  154. qmake: FORCE
  155. @$(QMAKE) -unix -o Makefile viergewinnt-qt.pro
  156. dist:
  157. @$(CHK_DIR_EXISTS) .tmp/viergewinnt-qt1.0.0 || $(MKDIR) .tmp/viergewinnt-qt1.0.0
  158. $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/viergewinnt-qt1.0.0/ && $(COPY_FILE) --parents about.h creategame.h findserver.h newgame.h playerwait.h renderarea.h selectmaster.h viergewinnt.h .tmp/viergewinnt-qt1.0.0/ && $(COPY_FILE) --parents about.cpp creategame.cpp findserver.cpp main.cpp newgame.cpp playerwait.cpp renderarea.cpp selectmaster.cpp viergewinnt.cpp .tmp/viergewinnt-qt1.0.0/ && $(COPY_FILE) --parents trans/viergewinnt-qt_en.ts .tmp/viergewinnt-qt1.0.0/ && (cd `dirname .tmp/viergewinnt-qt1.0.0` && $(TAR) viergewinnt-qt1.0.0.tar viergewinnt-qt1.0.0 && $(COMPRESS) viergewinnt-qt1.0.0.tar) && $(MOVE) `dirname .tmp/viergewinnt-qt1.0.0`/viergewinnt-qt1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/viergewinnt-qt1.0.0
  159. clean:compiler_clean
  160. -$(DEL_FILE) $(OBJECTS)
  161. -$(DEL_FILE) *~ core *.core
  162. ####### Sub-libraries
  163. distclean: clean
  164. -$(DEL_FILE) $(TARGET)
  165. -$(DEL_FILE) Makefile
  166. mocclean: compiler_moc_header_clean compiler_moc_source_clean
  167. mocables: compiler_moc_header_make_all compiler_moc_source_make_all
  168. compiler_moc_header_make_all: moc_about.cpp moc_creategame.cpp moc_findserver.cpp moc_newgame.cpp moc_playerwait.cpp moc_renderarea.cpp moc_selectmaster.cpp moc_viergewinnt.cpp
  169. compiler_moc_header_clean:
  170. -$(DEL_FILE) moc_about.cpp moc_creategame.cpp moc_findserver.cpp moc_newgame.cpp moc_playerwait.cpp moc_renderarea.cpp moc_selectmaster.cpp moc_viergewinnt.cpp
  171. moc_about.cpp: about.h
  172. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) about.h -o moc_about.cpp
  173. moc_creategame.cpp: creategame.h
  174. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) creategame.h -o moc_creategame.cpp
  175. moc_findserver.cpp: selectmaster.h \
  176. creategame.h \
  177. viergewinnt.h \
  178. newgame.h \
  179. playerwait.h \
  180. about.h \
  181. findserver.h
  182. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) findserver.h -o moc_findserver.cpp
  183. moc_newgame.cpp: newgame.h
  184. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) newgame.h -o moc_newgame.cpp
  185. moc_playerwait.cpp: playerwait.h
  186. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) playerwait.h -o moc_playerwait.cpp
  187. moc_renderarea.cpp: viergewinnt.h \
  188. newgame.h \
  189. playerwait.h \
  190. renderarea.h
  191. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) renderarea.h -o moc_renderarea.cpp
  192. moc_selectmaster.cpp: selectmaster.h
  193. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) selectmaster.h -o moc_selectmaster.cpp
  194. moc_viergewinnt.cpp: newgame.h \
  195. playerwait.h \
  196. viergewinnt.h
  197. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) viergewinnt.h -o moc_viergewinnt.cpp
  198. compiler_rcc_make_all:
  199. compiler_rcc_clean:
  200. compiler_image_collection_make_all: qmake_image_collection.cpp
  201. compiler_image_collection_clean:
  202. -$(DEL_FILE) qmake_image_collection.cpp
  203. compiler_moc_source_make_all:
  204. compiler_moc_source_clean:
  205. compiler_uic_make_all:
  206. compiler_uic_clean:
  207. compiler_yacc_decl_make_all:
  208. compiler_yacc_decl_clean:
  209. compiler_yacc_impl_make_all:
  210. compiler_yacc_impl_clean:
  211. compiler_lex_make_all:
  212. compiler_lex_clean:
  213. compiler_clean: compiler_moc_header_clean
  214. ####### Compile
  215. about.o: about.cpp about.h
  216. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o about.o about.cpp
  217. creategame.o: creategame.cpp creategame.h
  218. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o creategame.o creategame.cpp
  219. findserver.o: findserver.cpp findserver.h \
  220. selectmaster.h \
  221. creategame.h \
  222. viergewinnt.h \
  223. newgame.h \
  224. playerwait.h \
  225. about.h
  226. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o findserver.o findserver.cpp
  227. main.o: main.cpp findserver.h \
  228. selectmaster.h \
  229. creategame.h \
  230. viergewinnt.h \
  231. newgame.h \
  232. playerwait.h \
  233. about.h
  234. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
  235. newgame.o: newgame.cpp newgame.h
  236. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o newgame.o newgame.cpp
  237. playerwait.o: playerwait.cpp playerwait.h
  238. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o playerwait.o playerwait.cpp
  239. renderarea.o: renderarea.cpp renderarea.h \
  240. viergewinnt.h \
  241. newgame.h \
  242. playerwait.h
  243. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o renderarea.o renderarea.cpp
  244. selectmaster.o: selectmaster.cpp selectmaster.h
  245. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o selectmaster.o selectmaster.cpp
  246. viergewinnt.o: viergewinnt.cpp viergewinnt.h \
  247. newgame.h \
  248. playerwait.h \
  249. renderarea.h
  250. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o viergewinnt.o viergewinnt.cpp
  251. moc_about.o: moc_about.cpp
  252. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_about.o moc_about.cpp
  253. moc_creategame.o: moc_creategame.cpp
  254. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_creategame.o moc_creategame.cpp
  255. moc_findserver.o: moc_findserver.cpp
  256. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_findserver.o moc_findserver.cpp
  257. moc_newgame.o: moc_newgame.cpp
  258. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_newgame.o moc_newgame.cpp
  259. moc_playerwait.o: moc_playerwait.cpp
  260. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_playerwait.o moc_playerwait.cpp
  261. moc_renderarea.o: moc_renderarea.cpp
  262. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_renderarea.o moc_renderarea.cpp
  263. moc_selectmaster.o: moc_selectmaster.cpp
  264. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_selectmaster.o moc_selectmaster.cpp
  265. moc_viergewinnt.o: moc_viergewinnt.cpp
  266. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_viergewinnt.o moc_viergewinnt.cpp
  267. ####### Install
  268. install: FORCE
  269. uninstall: FORCE
  270. FORCE: