Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Makefile 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. #############################################################################
  2. # Makefile for building: tests
  3. # Generated by qmake (2.01a) (Qt 4.8.2) on: jeu. janv. 2 17:22:59 2014
  4. # Project: tests.pro
  5. # Template: app
  6. # Command: /usr/bin/qmake -o Makefile tests.pro
  7. #############################################################################
  8. ####### Compiler, tools and options
  9. CC = gcc
  10. CXX = g++
  11. DEFINES = -DQT_WEBKIT -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED
  12. CFLAGS = -m64 -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
  13. CXXFLAGS = -m64 -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
  14. INCPATH = -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I../ptsocket -I.
  15. LINK = g++
  16. LFLAGS = -m64
  17. LIBS = $(SUBLIBS) -L/usr/lib/x86_64-linux-gnu -L/home/robin/libptsocket/tests/../ptsocket/ -lptsocket -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. STRIP = strip
  28. INSTALL_FILE = install -m 644 -p
  29. INSTALL_DIR = $(COPY_DIR)
  30. INSTALL_PROGRAM = install -m 755 -p
  31. DEL_FILE = rm -f
  32. SYMLINK = ln -f -s
  33. DEL_DIR = rmdir
  34. MOVE = mv -f
  35. CHK_DIR_EXISTS= test -d
  36. MKDIR = mkdir -p
  37. ####### Output directory
  38. OBJECTS_DIR = ./
  39. ####### Files
  40. SOURCES = main.cpp \
  41. test.cpp \
  42. bctest.cpp moc_test.cpp \
  43. moc_bctest.cpp
  44. OBJECTS = main.o \
  45. test.o \
  46. bctest.o \
  47. moc_test.o \
  48. moc_bctest.o
  49. DIST = /usr/share/qt4/mkspecs/common/unix.conf \
  50. /usr/share/qt4/mkspecs/common/linux.conf \
  51. /usr/share/qt4/mkspecs/common/gcc-base.conf \
  52. /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \
  53. /usr/share/qt4/mkspecs/common/g++-base.conf \
  54. /usr/share/qt4/mkspecs/common/g++-unix.conf \
  55. /usr/share/qt4/mkspecs/qconfig.pri \
  56. /usr/share/qt4/mkspecs/modules/qt_phonon.pri \
  57. /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
  58. /usr/share/qt4/mkspecs/features/qt_functions.prf \
  59. /usr/share/qt4/mkspecs/features/qt_config.prf \
  60. /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
  61. /usr/share/qt4/mkspecs/features/default_pre.prf \
  62. ../commons.pri \
  63. /usr/share/qt4/mkspecs/features/debug.prf \
  64. /usr/share/qt4/mkspecs/features/default_post.prf \
  65. /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
  66. /usr/share/qt4/mkspecs/features/warn_on.prf \
  67. /usr/share/qt4/mkspecs/features/qt.prf \
  68. /usr/share/qt4/mkspecs/features/unix/thread.prf \
  69. /usr/share/qt4/mkspecs/features/moc.prf \
  70. /usr/share/qt4/mkspecs/features/resources.prf \
  71. /usr/share/qt4/mkspecs/features/uic.prf \
  72. /usr/share/qt4/mkspecs/features/yacc.prf \
  73. /usr/share/qt4/mkspecs/features/lex.prf \
  74. /usr/share/qt4/mkspecs/features/include_source_dir.prf \
  75. tests.pro
  76. QMAKE_TARGET = tests
  77. DESTDIR =
  78. TARGET = tests
  79. first: all
  80. ####### Implicit rules
  81. .SUFFIXES: .o .c .cpp .cc .cxx .C
  82. .cpp.o:
  83. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  84. .cc.o:
  85. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  86. .cxx.o:
  87. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  88. .C.o:
  89. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
  90. .c.o:
  91. $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
  92. ####### Build rules
  93. all: Makefile $(TARGET)
  94. $(TARGET): $(OBJECTS)
  95. $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
  96. { test -n "$(DESTDIR)" && DESTDIR="$(DESTDIR)" || DESTDIR=.; } && test $$(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $$DESTDIR" -ex quit '$(TARGET)' && test -f $(TARGET).gdb-index && objcopy --add-section '.gdb_index=$(TARGET).gdb-index' --set-section-flags '.gdb_index=readonly' '$(TARGET)' '$(TARGET)' && rm -f $(TARGET).gdb-index || true
  97. Makefile: tests.pro /usr/share/qt4/mkspecs/linux-g++-64/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
  98. /usr/share/qt4/mkspecs/common/linux.conf \
  99. /usr/share/qt4/mkspecs/common/gcc-base.conf \
  100. /usr/share/qt4/mkspecs/common/gcc-base-unix.conf \
  101. /usr/share/qt4/mkspecs/common/g++-base.conf \
  102. /usr/share/qt4/mkspecs/common/g++-unix.conf \
  103. /usr/share/qt4/mkspecs/qconfig.pri \
  104. /usr/share/qt4/mkspecs/modules/qt_phonon.pri \
  105. /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
  106. /usr/share/qt4/mkspecs/features/qt_functions.prf \
  107. /usr/share/qt4/mkspecs/features/qt_config.prf \
  108. /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
  109. /usr/share/qt4/mkspecs/features/default_pre.prf \
  110. ../commons.pri \
  111. /usr/share/qt4/mkspecs/features/debug.prf \
  112. /usr/share/qt4/mkspecs/features/default_post.prf \
  113. /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
  114. /usr/share/qt4/mkspecs/features/warn_on.prf \
  115. /usr/share/qt4/mkspecs/features/qt.prf \
  116. /usr/share/qt4/mkspecs/features/unix/thread.prf \
  117. /usr/share/qt4/mkspecs/features/moc.prf \
  118. /usr/share/qt4/mkspecs/features/resources.prf \
  119. /usr/share/qt4/mkspecs/features/uic.prf \
  120. /usr/share/qt4/mkspecs/features/yacc.prf \
  121. /usr/share/qt4/mkspecs/features/lex.prf \
  122. /usr/share/qt4/mkspecs/features/include_source_dir.prf \
  123. /usr/lib/x86_64-linux-gnu/libQtNetwork.prl \
  124. /usr/lib/x86_64-linux-gnu/libQtCore.prl
  125. $(QMAKE) -o Makefile tests.pro
  126. /usr/share/qt4/mkspecs/common/unix.conf:
  127. /usr/share/qt4/mkspecs/common/linux.conf:
  128. /usr/share/qt4/mkspecs/common/gcc-base.conf:
  129. /usr/share/qt4/mkspecs/common/gcc-base-unix.conf:
  130. /usr/share/qt4/mkspecs/common/g++-base.conf:
  131. /usr/share/qt4/mkspecs/common/g++-unix.conf:
  132. /usr/share/qt4/mkspecs/qconfig.pri:
  133. /usr/share/qt4/mkspecs/modules/qt_phonon.pri:
  134. /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri:
  135. /usr/share/qt4/mkspecs/features/qt_functions.prf:
  136. /usr/share/qt4/mkspecs/features/qt_config.prf:
  137. /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
  138. /usr/share/qt4/mkspecs/features/default_pre.prf:
  139. ../commons.pri:
  140. /usr/share/qt4/mkspecs/features/debug.prf:
  141. /usr/share/qt4/mkspecs/features/default_post.prf:
  142. /usr/share/qt4/mkspecs/features/unix/gdb_dwarf_index.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/share/qt4/mkspecs/features/include_source_dir.prf:
  152. /usr/lib/x86_64-linux-gnu/libQtNetwork.prl:
  153. /usr/lib/x86_64-linux-gnu/libQtCore.prl:
  154. qmake: FORCE
  155. @$(QMAKE) -o Makefile tests.pro
  156. dist:
  157. @$(CHK_DIR_EXISTS) .tmp/tests1.0.0 || $(MKDIR) .tmp/tests1.0.0
  158. $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/tests1.0.0/ && $(COPY_FILE) --parents test.h bctest.h .tmp/tests1.0.0/ && $(COPY_FILE) --parents main.cpp test.cpp bctest.cpp .tmp/tests1.0.0/ && (cd `dirname .tmp/tests1.0.0` && $(TAR) tests1.0.0.tar tests1.0.0 && $(COMPRESS) tests1.0.0.tar) && $(MOVE) `dirname .tmp/tests1.0.0`/tests1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/tests1.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. check: first
  167. mocclean: compiler_moc_header_clean compiler_moc_source_clean
  168. mocables: compiler_moc_header_make_all compiler_moc_source_make_all
  169. compiler_moc_header_make_all: moc_test.cpp moc_bctest.cpp
  170. compiler_moc_header_clean:
  171. -$(DEL_FILE) moc_test.cpp moc_bctest.cpp
  172. moc_test.cpp: ../ptsocket/ptserver.h \
  173. ../ptsocket/libptsocket_global.h \
  174. ../ptsocket/ptsocket.h \
  175. test.h
  176. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) test.h -o moc_test.cpp
  177. moc_bctest.cpp: ../ptsocket/broadcast.h \
  178. ../ptsocket/ptsocket.h \
  179. ../ptsocket/libptsocket_global.h \
  180. bctest.h
  181. /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) bctest.h -o moc_bctest.cpp
  182. compiler_rcc_make_all:
  183. compiler_rcc_clean:
  184. compiler_image_collection_make_all: qmake_image_collection.cpp
  185. compiler_image_collection_clean:
  186. -$(DEL_FILE) qmake_image_collection.cpp
  187. compiler_moc_source_make_all:
  188. compiler_moc_source_clean:
  189. compiler_uic_make_all:
  190. compiler_uic_clean:
  191. compiler_yacc_decl_make_all:
  192. compiler_yacc_decl_clean:
  193. compiler_yacc_impl_make_all:
  194. compiler_yacc_impl_clean:
  195. compiler_lex_make_all:
  196. compiler_lex_clean:
  197. compiler_clean: compiler_moc_header_clean
  198. ####### Compile
  199. main.o: main.cpp test.h \
  200. ../ptsocket/ptserver.h \
  201. ../ptsocket/libptsocket_global.h \
  202. ../ptsocket/ptsocket.h \
  203. bctest.h \
  204. ../ptsocket/broadcast.h
  205. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
  206. test.o: test.cpp test.h \
  207. ../ptsocket/ptserver.h \
  208. ../ptsocket/libptsocket_global.h \
  209. ../ptsocket/ptsocket.h
  210. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o test.o test.cpp
  211. bctest.o: bctest.cpp bctest.h \
  212. ../ptsocket/broadcast.h \
  213. ../ptsocket/ptsocket.h \
  214. ../ptsocket/libptsocket_global.h
  215. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o bctest.o bctest.cpp
  216. moc_test.o: moc_test.cpp
  217. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_test.o moc_test.cpp
  218. moc_bctest.o: moc_bctest.cpp
  219. $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_bctest.o moc_bctest.cpp
  220. ####### Install
  221. install: FORCE
  222. uninstall: FORCE
  223. FORCE: