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