c++/POSIXoveFronty/Fronta/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sun, 20 Sep 2009 23:08:30 +0200
changeset 12 7b718fcf981c
parent 6 617fef4676b9
child 15 b166c6f49719
permissions -rw-r--r--
Projekt „ukazatele“: pro pochopení ukazatelů (pointerů) v C++
     1 #############################################################################
     2 # Makefile for building: Fronta
     3 # Generated by qmake (2.01a) (Qt 4.4.3) on: ne dub 5 22:16:48 2009
     4 # Project:  Fronta.pro
     5 # Template: app
     6 # Command: /usr/bin/qmake -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
    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       = fronta.cpp \
    46 		program.cpp \
    47 		qtc-gdbmacros/gdbmacros.cpp 
    48 OBJECTS       = fronta.o \
    49 		program.o \
    50 		gdbmacros.o
    51 DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
    52 		/usr/share/qt4/mkspecs/common/unix.conf \
    53 		/usr/share/qt4/mkspecs/common/linux.conf \
    54 		/usr/share/qt4/mkspecs/qconfig.pri \
    55 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
    56 		/usr/share/qt4/mkspecs/features/qt_config.prf \
    57 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
    58 		/usr/share/qt4/mkspecs/features/default_pre.prf \
    59 		/usr/share/qt4/mkspecs/features/release.prf \
    60 		/usr/share/qt4/mkspecs/features/default_post.prf \
    61 		/usr/share/qt4/mkspecs/features/warn_on.prf \
    62 		/usr/share/qt4/mkspecs/features/qt.prf \
    63 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
    64 		/usr/share/qt4/mkspecs/features/moc.prf \
    65 		/usr/share/qt4/mkspecs/features/resources.prf \
    66 		/usr/share/qt4/mkspecs/features/uic.prf \
    67 		/usr/share/qt4/mkspecs/features/yacc.prf \
    68 		/usr/share/qt4/mkspecs/features/lex.prf \
    69 		Fronta.pro
    70 QMAKE_TARGET  = Fronta
    71 DESTDIR       = 
    72 TARGET        = Fronta
    73 
    74 first: all
    75 ####### Implicit rules
    76 
    77 .SUFFIXES: .o .c .cpp .cc .cxx .C
    78 
    79 .cpp.o:
    80 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    81 
    82 .cc.o:
    83 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    84 
    85 .cxx.o:
    86 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    87 
    88 .C.o:
    89 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    90 
    91 .c.o:
    92 	$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
    93 
    94 ####### Build rules
    95 
    96 all: Makefile $(TARGET)
    97 
    98 $(TARGET):  $(OBJECTS)  
    99 	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
   100 
   101 Makefile: Fronta.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
   102 		/usr/share/qt4/mkspecs/common/unix.conf \
   103 		/usr/share/qt4/mkspecs/common/linux.conf \
   104 		/usr/share/qt4/mkspecs/qconfig.pri \
   105 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
   106 		/usr/share/qt4/mkspecs/features/qt_config.prf \
   107 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
   108 		/usr/share/qt4/mkspecs/features/default_pre.prf \
   109 		/usr/share/qt4/mkspecs/features/release.prf \
   110 		/usr/share/qt4/mkspecs/features/default_post.prf \
   111 		/usr/share/qt4/mkspecs/features/warn_on.prf \
   112 		/usr/share/qt4/mkspecs/features/qt.prf \
   113 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
   114 		/usr/share/qt4/mkspecs/features/moc.prf \
   115 		/usr/share/qt4/mkspecs/features/resources.prf \
   116 		/usr/share/qt4/mkspecs/features/uic.prf \
   117 		/usr/share/qt4/mkspecs/features/yacc.prf \
   118 		/usr/share/qt4/mkspecs/features/lex.prf \
   119 		/usr/lib/libQtGui.prl \
   120 		/usr/lib/libQtCore.prl
   121 	$(QMAKE) -unix -o Makefile Fronta.pro
   122 /usr/share/qt4/mkspecs/common/g++.conf:
   123 /usr/share/qt4/mkspecs/common/unix.conf:
   124 /usr/share/qt4/mkspecs/common/linux.conf:
   125 /usr/share/qt4/mkspecs/qconfig.pri:
   126 /usr/share/qt4/mkspecs/features/qt_functions.prf:
   127 /usr/share/qt4/mkspecs/features/qt_config.prf:
   128 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
   129 /usr/share/qt4/mkspecs/features/default_pre.prf:
   130 /usr/share/qt4/mkspecs/features/release.prf:
   131 /usr/share/qt4/mkspecs/features/default_post.prf:
   132 /usr/share/qt4/mkspecs/features/warn_on.prf:
   133 /usr/share/qt4/mkspecs/features/qt.prf:
   134 /usr/share/qt4/mkspecs/features/unix/thread.prf:
   135 /usr/share/qt4/mkspecs/features/moc.prf:
   136 /usr/share/qt4/mkspecs/features/resources.prf:
   137 /usr/share/qt4/mkspecs/features/uic.prf:
   138 /usr/share/qt4/mkspecs/features/yacc.prf:
   139 /usr/share/qt4/mkspecs/features/lex.prf:
   140 /usr/lib/libQtGui.prl:
   141 /usr/lib/libQtCore.prl:
   142 qmake:  FORCE
   143 	@$(QMAKE) -unix -o Makefile Fronta.pro
   144 
   145 dist: 
   146 	@$(CHK_DIR_EXISTS) .tmp/Fronta1.0.0 || $(MKDIR) .tmp/Fronta1.0.0 
   147 	$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/Fronta1.0.0/ && $(COPY_FILE) --parents fronta.h program.h .tmp/Fronta1.0.0/ && $(COPY_FILE) --parents fronta.cpp program.cpp qtc-gdbmacros/gdbmacros.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
   148 
   149 
   150 clean:compiler_clean 
   151 	-$(DEL_FILE) $(OBJECTS)
   152 	-$(DEL_FILE) *~ core *.core
   153 
   154 
   155 ####### Sub-libraries
   156 
   157 distclean: clean
   158 	-$(DEL_FILE) $(TARGET) 
   159 	-$(DEL_FILE) Makefile
   160 
   161 
   162 mocclean: compiler_moc_header_clean compiler_moc_source_clean
   163 
   164 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
   165 
   166 compiler_moc_header_make_all:
   167 compiler_moc_header_clean:
   168 compiler_rcc_make_all:
   169 compiler_rcc_clean:
   170 compiler_image_collection_make_all: qmake_image_collection.cpp
   171 compiler_image_collection_clean:
   172 	-$(DEL_FILE) qmake_image_collection.cpp
   173 compiler_moc_source_make_all:
   174 compiler_moc_source_clean:
   175 compiler_uic_make_all:
   176 compiler_uic_clean:
   177 compiler_yacc_decl_make_all:
   178 compiler_yacc_decl_clean:
   179 compiler_yacc_impl_make_all:
   180 compiler_yacc_impl_clean:
   181 compiler_lex_make_all:
   182 compiler_lex_clean:
   183 compiler_clean: 
   184 
   185 ####### Compile
   186 
   187 fronta.o: fronta.cpp fronta.h
   188 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o fronta.o fronta.cpp
   189 
   190 program.o: program.cpp program.h
   191 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o program.o program.cpp
   192 
   193 gdbmacros.o: qtc-gdbmacros/gdbmacros.cpp 
   194 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o gdbmacros.o qtc-gdbmacros/gdbmacros.cpp
   195 
   196 ####### Install
   197 
   198 install:   FORCE
   199 
   200 uninstall:   FORCE
   201 
   202 FORCE:
   203