c++/POSIXoveFronty/Fronta/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sun Apr 05 12:39:59 2009 +0200 (2009-04-05)
changeset 2 f1aae09bb78e
parent 1 9a570824084d
child 6 617fef4676b9
permissions -rw-r--r--
Přesunutí některých hodnot do konstatnt (počet zpráv, délka zprávy)
     1 #############################################################################
     2 # Makefile for building: Fronta
     3 # Generated by qmake (2.01a) (Qt 4.4.3) on: so dub 4 22:38:33 2009
     4 # Project:  Fronta.pro
     5 # Template: app
     6 # Command: /usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix -o Makefile Fronta.pro
     7 #############################################################################
     8 
     9 ####### Compiler, tools and options
    10 
    11 CC            = gcc
    12 CXX           = g++
    13 DEFINES       = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
    14 CFLAGS        = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    15 CXXFLAGS      = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES)
    16 INCPATH       = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -I.
    17 LINK          = g++
    18 LFLAGS        = -Wl,--no-undefined
    19 LIBS          = $(SUBLIBS)  -L/usr/lib -lQtGui -lQtCore -lpthread
    20 AR            = ar cqs
    21 RANLIB        = 
    22 QMAKE         = /usr/bin/qmake-qt4
    23 TAR           = tar -cf
    24 COMPRESS      = gzip -9f
    25 COPY          = cp -f
    26 SED           = sed
    27 COPY_FILE     = $(COPY)
    28 COPY_DIR      = $(COPY) -r
    29 INSTALL_FILE  = install -m 644 -p
    30 INSTALL_DIR   = $(COPY_DIR)
    31 INSTALL_PROGRAM = install -m 755 -p
    32 DEL_FILE      = rm -f
    33 SYMLINK       = ln -sf
    34 DEL_DIR       = rmdir
    35 MOVE          = mv -f
    36 CHK_DIR_EXISTS= test -d
    37 MKDIR         = mkdir -p
    38 
    39 ####### Output directory
    40 
    41 OBJECTS_DIR   = ./
    42 
    43 ####### Files
    44 
    45 SOURCES       = program.cpp 
    46 OBJECTS       = program.o
    47 DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
    48 		/usr/share/qt4/mkspecs/common/unix.conf \
    49 		/usr/share/qt4/mkspecs/common/linux.conf \
    50 		/usr/share/qt4/mkspecs/qconfig.pri \
    51 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
    52 		/usr/share/qt4/mkspecs/features/qt_config.prf \
    53 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
    54 		/usr/share/qt4/mkspecs/features/default_pre.prf \
    55 		/usr/share/qt4/mkspecs/features/release.prf \
    56 		/usr/share/qt4/mkspecs/features/default_post.prf \
    57 		/usr/share/qt4/mkspecs/features/warn_on.prf \
    58 		/usr/share/qt4/mkspecs/features/qt.prf \
    59 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
    60 		/usr/share/qt4/mkspecs/features/moc.prf \
    61 		/usr/share/qt4/mkspecs/features/resources.prf \
    62 		/usr/share/qt4/mkspecs/features/uic.prf \
    63 		/usr/share/qt4/mkspecs/features/yacc.prf \
    64 		/usr/share/qt4/mkspecs/features/lex.prf \
    65 		Fronta.pro
    66 QMAKE_TARGET  = Fronta
    67 DESTDIR       = 
    68 TARGET        = Fronta
    69 
    70 first: all
    71 ####### Implicit rules
    72 
    73 .SUFFIXES: .o .c .cpp .cc .cxx .C
    74 
    75 .cpp.o:
    76 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    77 
    78 .cc.o:
    79 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    80 
    81 .cxx.o:
    82 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    83 
    84 .C.o:
    85 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    86 
    87 .c.o:
    88 	$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
    89 
    90 ####### Build rules
    91 
    92 all: Makefile $(TARGET)
    93 
    94 $(TARGET):  $(OBJECTS)  
    95 	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
    96 
    97 Makefile: Fronta.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
    98 		/usr/share/qt4/mkspecs/common/unix.conf \
    99 		/usr/share/qt4/mkspecs/common/linux.conf \
   100 		/usr/share/qt4/mkspecs/qconfig.pri \
   101 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
   102 		/usr/share/qt4/mkspecs/features/qt_config.prf \
   103 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
   104 		/usr/share/qt4/mkspecs/features/default_pre.prf \
   105 		/usr/share/qt4/mkspecs/features/release.prf \
   106 		/usr/share/qt4/mkspecs/features/default_post.prf \
   107 		/usr/share/qt4/mkspecs/features/warn_on.prf \
   108 		/usr/share/qt4/mkspecs/features/qt.prf \
   109 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
   110 		/usr/share/qt4/mkspecs/features/moc.prf \
   111 		/usr/share/qt4/mkspecs/features/resources.prf \
   112 		/usr/share/qt4/mkspecs/features/uic.prf \
   113 		/usr/share/qt4/mkspecs/features/yacc.prf \
   114 		/usr/share/qt4/mkspecs/features/lex.prf \
   115 		/usr/lib/libQtGui.prl \
   116 		/usr/lib/libQtCore.prl
   117 	$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix -o Makefile Fronta.pro
   118 /usr/share/qt4/mkspecs/common/g++.conf:
   119 /usr/share/qt4/mkspecs/common/unix.conf:
   120 /usr/share/qt4/mkspecs/common/linux.conf:
   121 /usr/share/qt4/mkspecs/qconfig.pri:
   122 /usr/share/qt4/mkspecs/features/qt_functions.prf:
   123 /usr/share/qt4/mkspecs/features/qt_config.prf:
   124 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
   125 /usr/share/qt4/mkspecs/features/default_pre.prf:
   126 /usr/share/qt4/mkspecs/features/release.prf:
   127 /usr/share/qt4/mkspecs/features/default_post.prf:
   128 /usr/share/qt4/mkspecs/features/warn_on.prf:
   129 /usr/share/qt4/mkspecs/features/qt.prf:
   130 /usr/share/qt4/mkspecs/features/unix/thread.prf:
   131 /usr/share/qt4/mkspecs/features/moc.prf:
   132 /usr/share/qt4/mkspecs/features/resources.prf:
   133 /usr/share/qt4/mkspecs/features/uic.prf:
   134 /usr/share/qt4/mkspecs/features/yacc.prf:
   135 /usr/share/qt4/mkspecs/features/lex.prf:
   136 /usr/lib/libQtGui.prl:
   137 /usr/lib/libQtCore.prl:
   138 qmake:  FORCE
   139 	@$(QMAKE) -spec /usr/share/qt4/mkspecs/linux-g++ -unix -o Makefile Fronta.pro
   140 
   141 dist: 
   142 	@$(CHK_DIR_EXISTS) .tmp/Fronta1.0.0 || $(MKDIR) .tmp/Fronta1.0.0 
   143 	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/Fronta1.0.0/ && $(COPY_FILE) --parents program.h .tmp/Fronta1.0.0/ && $(COPY_FILE) --parents program.cpp .tmp/Fronta1.0.0/ && (cd `dirname .tmp/Fronta1.0.0` && $(TAR) Fronta1.0.0.tar Fronta1.0.0 && $(COMPRESS) Fronta1.0.0.tar) && $(MOVE) `dirname .tmp/Fronta1.0.0`/Fronta1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/Fronta1.0.0
   144 
   145 
   146 clean:compiler_clean 
   147 	-$(DEL_FILE) $(OBJECTS)
   148 	-$(DEL_FILE) *~ core *.core
   149 
   150 
   151 ####### Sub-libraries
   152 
   153 distclean: clean
   154 	-$(DEL_FILE) $(TARGET) 
   155 	-$(DEL_FILE) Makefile
   156 
   157 
   158 mocclean: compiler_moc_header_clean compiler_moc_source_clean
   159 
   160 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
   161 
   162 compiler_moc_header_make_all:
   163 compiler_moc_header_clean:
   164 compiler_rcc_make_all:
   165 compiler_rcc_clean:
   166 compiler_image_collection_make_all: qmake_image_collection.cpp
   167 compiler_image_collection_clean:
   168 	-$(DEL_FILE) qmake_image_collection.cpp
   169 compiler_moc_source_make_all:
   170 compiler_moc_source_clean:
   171 compiler_uic_make_all:
   172 compiler_uic_clean:
   173 compiler_yacc_decl_make_all:
   174 compiler_yacc_decl_clean:
   175 compiler_yacc_impl_make_all:
   176 compiler_yacc_impl_clean:
   177 compiler_lex_make_all:
   178 compiler_lex_clean:
   179 compiler_clean: 
   180 
   181 ####### Compile
   182 
   183 program.o: program.cpp program.h
   184 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o program.o program.cpp
   185 
   186 ####### Install
   187 
   188 install:   FORCE
   189 
   190 uninstall:   FORCE
   191 
   192 FORCE:
   193