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