c++/POSIXoveFronty/Fronta/Makefile
author František Kučera <franta-hg@frantovo.cz>
Tue Apr 24 21:02:52 2012 +0200 (2012-04-24)
changeset 16 131d2652b241
parent 6 617fef4676b9
permissions -rw-r--r--
LED displej – ovládání řadiče – první verze
     1 #############################################################################
     2 # Makefile for building: Fronta
     3 # Generated by qmake (2.01a) (Qt 4.7.0) on: st 2 9 19:12:09 2011
     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/QtGui -I/usr/include/qt4 -I. -I.
    17 LINK          = g++
    18 LFLAGS        = -Wl,-O1
    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 STRIP         = strip
    30 INSTALL_FILE  = install -m 644 -p
    31 INSTALL_DIR   = $(COPY_DIR)
    32 INSTALL_PROGRAM = install -m 755 -p
    33 DEL_FILE      = rm -f
    34 SYMLINK       = ln -f -s
    35 DEL_DIR       = rmdir
    36 MOVE          = mv -f
    37 CHK_DIR_EXISTS= test -d
    38 MKDIR         = mkdir -p
    39 
    40 ####### Output directory
    41 
    42 OBJECTS_DIR   = ./
    43 
    44 ####### Files
    45 
    46 SOURCES       = fronta.cpp \
    47 		program.cpp \
    48 		qtc-gdbmacros/gdbmacros.cpp 
    49 OBJECTS       = fronta.o \
    50 		program.o \
    51 		gdbmacros.o
    52 DIST          = /usr/share/qt4/mkspecs/common/g++.conf \
    53 		/usr/share/qt4/mkspecs/common/unix.conf \
    54 		/usr/share/qt4/mkspecs/common/linux.conf \
    55 		/usr/share/qt4/mkspecs/qconfig.pri \
    56 		/usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
    57 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
    58 		/usr/share/qt4/mkspecs/features/qt_config.prf \
    59 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
    60 		/usr/share/qt4/mkspecs/features/default_pre.prf \
    61 		/usr/share/qt4/mkspecs/features/release.prf \
    62 		/usr/share/qt4/mkspecs/features/default_post.prf \
    63 		/usr/share/qt4/mkspecs/features/warn_on.prf \
    64 		/usr/share/qt4/mkspecs/features/qt.prf \
    65 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
    66 		/usr/share/qt4/mkspecs/features/moc.prf \
    67 		/usr/share/qt4/mkspecs/features/resources.prf \
    68 		/usr/share/qt4/mkspecs/features/uic.prf \
    69 		/usr/share/qt4/mkspecs/features/yacc.prf \
    70 		/usr/share/qt4/mkspecs/features/lex.prf \
    71 		/usr/share/qt4/mkspecs/features/include_source_dir.prf \
    72 		Fronta.pro
    73 QMAKE_TARGET  = Fronta
    74 DESTDIR       = 
    75 TARGET        = Fronta
    76 
    77 first: all
    78 ####### Implicit rules
    79 
    80 .SUFFIXES: .o .c .cpp .cc .cxx .C
    81 
    82 .cpp.o:
    83 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    84 
    85 .cc.o:
    86 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    87 
    88 .cxx.o:
    89 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    90 
    91 .C.o:
    92 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
    93 
    94 .c.o:
    95 	$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
    96 
    97 ####### Build rules
    98 
    99 all: Makefile $(TARGET)
   100 
   101 $(TARGET):  $(OBJECTS)  
   102 	$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
   103 
   104 Makefile: Fronta.pro  /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \
   105 		/usr/share/qt4/mkspecs/common/unix.conf \
   106 		/usr/share/qt4/mkspecs/common/linux.conf \
   107 		/usr/share/qt4/mkspecs/qconfig.pri \
   108 		/usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \
   109 		/usr/share/qt4/mkspecs/features/qt_functions.prf \
   110 		/usr/share/qt4/mkspecs/features/qt_config.prf \
   111 		/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
   112 		/usr/share/qt4/mkspecs/features/default_pre.prf \
   113 		/usr/share/qt4/mkspecs/features/release.prf \
   114 		/usr/share/qt4/mkspecs/features/default_post.prf \
   115 		/usr/share/qt4/mkspecs/features/warn_on.prf \
   116 		/usr/share/qt4/mkspecs/features/qt.prf \
   117 		/usr/share/qt4/mkspecs/features/unix/thread.prf \
   118 		/usr/share/qt4/mkspecs/features/moc.prf \
   119 		/usr/share/qt4/mkspecs/features/resources.prf \
   120 		/usr/share/qt4/mkspecs/features/uic.prf \
   121 		/usr/share/qt4/mkspecs/features/yacc.prf \
   122 		/usr/share/qt4/mkspecs/features/lex.prf \
   123 		/usr/share/qt4/mkspecs/features/include_source_dir.prf \
   124 		/usr/lib/libQtGui.prl \
   125 		/usr/lib/libQtCore.prl
   126 	$(QMAKE) -unix -o Makefile Fronta.pro
   127 /usr/share/qt4/mkspecs/common/g++.conf:
   128 /usr/share/qt4/mkspecs/common/unix.conf:
   129 /usr/share/qt4/mkspecs/common/linux.conf:
   130 /usr/share/qt4/mkspecs/qconfig.pri:
   131 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri:
   132 /usr/share/qt4/mkspecs/features/qt_functions.prf:
   133 /usr/share/qt4/mkspecs/features/qt_config.prf:
   134 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
   135 /usr/share/qt4/mkspecs/features/default_pre.prf:
   136 /usr/share/qt4/mkspecs/features/release.prf:
   137 /usr/share/qt4/mkspecs/features/default_post.prf:
   138 /usr/share/qt4/mkspecs/features/warn_on.prf:
   139 /usr/share/qt4/mkspecs/features/qt.prf:
   140 /usr/share/qt4/mkspecs/features/unix/thread.prf:
   141 /usr/share/qt4/mkspecs/features/moc.prf:
   142 /usr/share/qt4/mkspecs/features/resources.prf:
   143 /usr/share/qt4/mkspecs/features/uic.prf:
   144 /usr/share/qt4/mkspecs/features/yacc.prf:
   145 /usr/share/qt4/mkspecs/features/lex.prf:
   146 /usr/share/qt4/mkspecs/features/include_source_dir.prf:
   147 /usr/lib/libQtGui.prl:
   148 /usr/lib/libQtCore.prl:
   149 qmake:  FORCE
   150 	@$(QMAKE) -unix -o Makefile Fronta.pro
   151 
   152 dist: 
   153 	@$(CHK_DIR_EXISTS) .tmp/Fronta1.0.0 || $(MKDIR) .tmp/Fronta1.0.0 
   154 	$(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
   155 
   156 
   157 clean:compiler_clean 
   158 	-$(DEL_FILE) $(OBJECTS)
   159 	-$(DEL_FILE) *~ core *.core
   160 
   161 
   162 ####### Sub-libraries
   163 
   164 distclean: clean
   165 	-$(DEL_FILE) $(TARGET) 
   166 	-$(DEL_FILE) Makefile
   167 
   168 
   169 check: first
   170 
   171 mocclean: compiler_moc_header_clean compiler_moc_source_clean
   172 
   173 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
   174 
   175 compiler_moc_header_make_all:
   176 compiler_moc_header_clean:
   177 compiler_rcc_make_all:
   178 compiler_rcc_clean:
   179 compiler_image_collection_make_all: qmake_image_collection.cpp
   180 compiler_image_collection_clean:
   181 	-$(DEL_FILE) qmake_image_collection.cpp
   182 compiler_moc_source_make_all:
   183 compiler_moc_source_clean:
   184 compiler_uic_make_all:
   185 compiler_uic_clean:
   186 compiler_yacc_decl_make_all:
   187 compiler_yacc_decl_clean:
   188 compiler_yacc_impl_make_all:
   189 compiler_yacc_impl_clean:
   190 compiler_lex_make_all:
   191 compiler_lex_clean:
   192 compiler_clean: 
   193 
   194 ####### Compile
   195 
   196 fronta.o: fronta.cpp fronta.h
   197 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o fronta.o fronta.cpp
   198 
   199 program.o: program.cpp program.h \
   200 		fronta.h
   201 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o program.o program.cpp
   202 
   203 gdbmacros.o: qtc-gdbmacros/gdbmacros.cpp 
   204 	$(CXX) -c $(CXXFLAGS) $(INCPATH) -o gdbmacros.o qtc-gdbmacros/gdbmacros.cpp
   205 
   206 ####### Install
   207 
   208 install:   FORCE
   209 
   210 uninstall:   FORCE
   211 
   212 FORCE:
   213