qvolray
annotate Makefile @ 11:8990b5d2c7fe
moving to qt
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 09 Apr 2012 23:42:57 +0300 |
parents | 6f275934717b |
children |
rev | line source |
---|---|
nuclear@11 | 1 ############################################################################# |
nuclear@11 | 2 # Makefile for building: qvolray |
nuclear@11 | 3 # Generated by qmake (2.01a) (Qt 4.7.4) on: Mon Apr 9 23:25:44 2012 |
nuclear@11 | 4 # Project: qvolray.pro |
nuclear@11 | 5 # Template: app |
nuclear@11 | 6 # Command: /usr/bin/qmake -o Makefile qvolray.pro |
nuclear@11 | 7 ############################################################################# |
nuclear@0 | 8 |
nuclear@11 | 9 ####### Compiler, tools and options |
nuclear@0 | 10 |
nuclear@11 | 11 CC = gcc |
nuclear@11 | 12 CXX = g++ |
nuclear@11 | 13 DEFINES = -DQT_WEBKIT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED |
nuclear@11 | 14 CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) |
nuclear@11 | 15 CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) |
nuclear@11 | 16 INCPATH = -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I. -Isrc -I/usr/X11R6/include -I. |
nuclear@11 | 17 LINK = g++ |
nuclear@11 | 18 LFLAGS = -Wl,-O1 |
nuclear@11 | 19 LIBS = $(SUBLIBS) -L/usr/lib -L/usr/X11R6/lib -lQtOpenGL -lQtGui -lQtCore -lGLU -lGL -lpthread |
nuclear@11 | 20 AR = ar cqs |
nuclear@11 | 21 RANLIB = |
nuclear@11 | 22 QMAKE = /usr/bin/qmake |
nuclear@11 | 23 TAR = tar -cf |
nuclear@11 | 24 COMPRESS = gzip -9f |
nuclear@11 | 25 COPY = cp -f |
nuclear@11 | 26 SED = sed |
nuclear@11 | 27 COPY_FILE = $(COPY) |
nuclear@11 | 28 COPY_DIR = $(COPY) -r |
nuclear@11 | 29 STRIP = strip |
nuclear@11 | 30 INSTALL_FILE = install -m 644 -p |
nuclear@11 | 31 INSTALL_DIR = $(COPY_DIR) |
nuclear@11 | 32 INSTALL_PROGRAM = install -m 755 -p |
nuclear@11 | 33 DEL_FILE = rm -f |
nuclear@11 | 34 SYMLINK = ln -f -s |
nuclear@11 | 35 DEL_DIR = rmdir |
nuclear@11 | 36 MOVE = mv -f |
nuclear@11 | 37 CHK_DIR_EXISTS= test -d |
nuclear@11 | 38 MKDIR = mkdir -p |
nuclear@0 | 39 |
nuclear@11 | 40 ####### Output directory |
nuclear@0 | 41 |
nuclear@11 | 42 OBJECTS_DIR = ./ |
nuclear@0 | 43 |
nuclear@11 | 44 ####### Files |
nuclear@0 | 45 |
nuclear@11 | 46 SOURCES = src/main.cc \ |
nuclear@11 | 47 src/sdr.c \ |
nuclear@11 | 48 src/volray.cc \ |
nuclear@11 | 49 src/volume.cc |
nuclear@11 | 50 OBJECTS = main.o \ |
nuclear@11 | 51 sdr.o \ |
nuclear@11 | 52 volray.o \ |
nuclear@11 | 53 volume.o |
nuclear@11 | 54 DIST = /usr/share/qt4/mkspecs/common/g++.conf \ |
nuclear@11 | 55 /usr/share/qt4/mkspecs/common/unix.conf \ |
nuclear@11 | 56 /usr/share/qt4/mkspecs/common/linux.conf \ |
nuclear@11 | 57 /usr/share/qt4/mkspecs/qconfig.pri \ |
nuclear@11 | 58 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ |
nuclear@11 | 59 /usr/share/qt4/mkspecs/features/qt_functions.prf \ |
nuclear@11 | 60 /usr/share/qt4/mkspecs/features/qt_config.prf \ |
nuclear@11 | 61 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ |
nuclear@11 | 62 /usr/share/qt4/mkspecs/features/default_pre.prf \ |
nuclear@11 | 63 /usr/share/qt4/mkspecs/features/release.prf \ |
nuclear@11 | 64 /usr/share/qt4/mkspecs/features/default_post.prf \ |
nuclear@11 | 65 /usr/share/qt4/mkspecs/features/warn_on.prf \ |
nuclear@11 | 66 /usr/share/qt4/mkspecs/features/qt.prf \ |
nuclear@11 | 67 /usr/share/qt4/mkspecs/features/unix/opengl.prf \ |
nuclear@11 | 68 /usr/share/qt4/mkspecs/features/unix/thread.prf \ |
nuclear@11 | 69 /usr/share/qt4/mkspecs/features/moc.prf \ |
nuclear@11 | 70 /usr/share/qt4/mkspecs/features/resources.prf \ |
nuclear@11 | 71 /usr/share/qt4/mkspecs/features/uic.prf \ |
nuclear@11 | 72 /usr/share/qt4/mkspecs/features/yacc.prf \ |
nuclear@11 | 73 /usr/share/qt4/mkspecs/features/lex.prf \ |
nuclear@11 | 74 /usr/share/qt4/mkspecs/features/include_source_dir.prf \ |
nuclear@11 | 75 qvolray.pro |
nuclear@11 | 76 QMAKE_TARGET = qvolray |
nuclear@11 | 77 DESTDIR = |
nuclear@11 | 78 TARGET = qvolray |
nuclear@11 | 79 |
nuclear@11 | 80 first: all |
nuclear@11 | 81 ####### Implicit rules |
nuclear@11 | 82 |
nuclear@11 | 83 .SUFFIXES: .o .c .cpp .cc .cxx .C |
nuclear@11 | 84 |
nuclear@11 | 85 .cpp.o: |
nuclear@11 | 86 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
nuclear@11 | 87 |
nuclear@11 | 88 .cc.o: |
nuclear@11 | 89 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
nuclear@11 | 90 |
nuclear@11 | 91 .cxx.o: |
nuclear@11 | 92 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
nuclear@11 | 93 |
nuclear@11 | 94 .C.o: |
nuclear@11 | 95 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" |
nuclear@11 | 96 |
nuclear@11 | 97 .c.o: |
nuclear@11 | 98 $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" |
nuclear@11 | 99 |
nuclear@11 | 100 ####### Build rules |
nuclear@11 | 101 |
nuclear@11 | 102 all: Makefile $(TARGET) |
nuclear@11 | 103 |
nuclear@11 | 104 $(TARGET): $(OBJECTS) |
nuclear@11 | 105 $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) |
nuclear@11 | 106 |
nuclear@11 | 107 Makefile: qvolray.pro /usr/share/qt4/mkspecs/linux-g++/qmake.conf /usr/share/qt4/mkspecs/common/g++.conf \ |
nuclear@11 | 108 /usr/share/qt4/mkspecs/common/unix.conf \ |
nuclear@11 | 109 /usr/share/qt4/mkspecs/common/linux.conf \ |
nuclear@11 | 110 /usr/share/qt4/mkspecs/qconfig.pri \ |
nuclear@11 | 111 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri \ |
nuclear@11 | 112 /usr/share/qt4/mkspecs/features/qt_functions.prf \ |
nuclear@11 | 113 /usr/share/qt4/mkspecs/features/qt_config.prf \ |
nuclear@11 | 114 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ |
nuclear@11 | 115 /usr/share/qt4/mkspecs/features/default_pre.prf \ |
nuclear@11 | 116 /usr/share/qt4/mkspecs/features/release.prf \ |
nuclear@11 | 117 /usr/share/qt4/mkspecs/features/default_post.prf \ |
nuclear@11 | 118 /usr/share/qt4/mkspecs/features/warn_on.prf \ |
nuclear@11 | 119 /usr/share/qt4/mkspecs/features/qt.prf \ |
nuclear@11 | 120 /usr/share/qt4/mkspecs/features/unix/opengl.prf \ |
nuclear@11 | 121 /usr/share/qt4/mkspecs/features/unix/thread.prf \ |
nuclear@11 | 122 /usr/share/qt4/mkspecs/features/moc.prf \ |
nuclear@11 | 123 /usr/share/qt4/mkspecs/features/resources.prf \ |
nuclear@11 | 124 /usr/share/qt4/mkspecs/features/uic.prf \ |
nuclear@11 | 125 /usr/share/qt4/mkspecs/features/yacc.prf \ |
nuclear@11 | 126 /usr/share/qt4/mkspecs/features/lex.prf \ |
nuclear@11 | 127 /usr/share/qt4/mkspecs/features/include_source_dir.prf \ |
nuclear@11 | 128 /usr/lib/libQtOpenGL.prl \ |
nuclear@11 | 129 /usr/lib/libQtGui.prl \ |
nuclear@11 | 130 /usr/lib/libQtCore.prl |
nuclear@11 | 131 $(QMAKE) -o Makefile qvolray.pro |
nuclear@11 | 132 /usr/share/qt4/mkspecs/common/g++.conf: |
nuclear@11 | 133 /usr/share/qt4/mkspecs/common/unix.conf: |
nuclear@11 | 134 /usr/share/qt4/mkspecs/common/linux.conf: |
nuclear@11 | 135 /usr/share/qt4/mkspecs/qconfig.pri: |
nuclear@11 | 136 /usr/share/qt4/mkspecs/modules/qt_webkit_version.pri: |
nuclear@11 | 137 /usr/share/qt4/mkspecs/features/qt_functions.prf: |
nuclear@11 | 138 /usr/share/qt4/mkspecs/features/qt_config.prf: |
nuclear@11 | 139 /usr/share/qt4/mkspecs/features/exclusive_builds.prf: |
nuclear@11 | 140 /usr/share/qt4/mkspecs/features/default_pre.prf: |
nuclear@11 | 141 /usr/share/qt4/mkspecs/features/release.prf: |
nuclear@11 | 142 /usr/share/qt4/mkspecs/features/default_post.prf: |
nuclear@11 | 143 /usr/share/qt4/mkspecs/features/warn_on.prf: |
nuclear@11 | 144 /usr/share/qt4/mkspecs/features/qt.prf: |
nuclear@11 | 145 /usr/share/qt4/mkspecs/features/unix/opengl.prf: |
nuclear@11 | 146 /usr/share/qt4/mkspecs/features/unix/thread.prf: |
nuclear@11 | 147 /usr/share/qt4/mkspecs/features/moc.prf: |
nuclear@11 | 148 /usr/share/qt4/mkspecs/features/resources.prf: |
nuclear@11 | 149 /usr/share/qt4/mkspecs/features/uic.prf: |
nuclear@11 | 150 /usr/share/qt4/mkspecs/features/yacc.prf: |
nuclear@11 | 151 /usr/share/qt4/mkspecs/features/lex.prf: |
nuclear@11 | 152 /usr/share/qt4/mkspecs/features/include_source_dir.prf: |
nuclear@11 | 153 /usr/lib/libQtOpenGL.prl: |
nuclear@11 | 154 /usr/lib/libQtGui.prl: |
nuclear@11 | 155 /usr/lib/libQtCore.prl: |
nuclear@11 | 156 qmake: FORCE |
nuclear@11 | 157 @$(QMAKE) -o Makefile qvolray.pro |
nuclear@11 | 158 |
nuclear@11 | 159 dist: |
nuclear@11 | 160 @$(CHK_DIR_EXISTS) .tmp/qvolray1.0.0 || $(MKDIR) .tmp/qvolray1.0.0 |
nuclear@11 | 161 $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/qvolray1.0.0/ && $(COPY_FILE) --parents src/sdr.h src/volray.h src/volume.h .tmp/qvolray1.0.0/ && $(COPY_FILE) --parents src/main.cc src/sdr.c src/volray.cc src/volume.cc .tmp/qvolray1.0.0/ && (cd `dirname .tmp/qvolray1.0.0` && $(TAR) qvolray1.0.0.tar qvolray1.0.0 && $(COMPRESS) qvolray1.0.0.tar) && $(MOVE) `dirname .tmp/qvolray1.0.0`/qvolray1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/qvolray1.0.0 |
nuclear@11 | 162 |
nuclear@11 | 163 |
nuclear@11 | 164 clean:compiler_clean |
nuclear@11 | 165 -$(DEL_FILE) $(OBJECTS) |
nuclear@11 | 166 -$(DEL_FILE) *~ core *.core |
nuclear@11 | 167 |
nuclear@11 | 168 |
nuclear@11 | 169 ####### Sub-libraries |
nuclear@11 | 170 |
nuclear@11 | 171 distclean: clean |
nuclear@11 | 172 -$(DEL_FILE) $(TARGET) |
nuclear@11 | 173 -$(DEL_FILE) Makefile |
nuclear@11 | 174 |
nuclear@11 | 175 |
nuclear@11 | 176 check: first |
nuclear@11 | 177 |
nuclear@11 | 178 mocclean: compiler_moc_header_clean compiler_moc_source_clean |
nuclear@11 | 179 |
nuclear@11 | 180 mocables: compiler_moc_header_make_all compiler_moc_source_make_all |
nuclear@11 | 181 |
nuclear@11 | 182 compiler_moc_header_make_all: |
nuclear@11 | 183 compiler_moc_header_clean: |
nuclear@11 | 184 compiler_rcc_make_all: |
nuclear@11 | 185 compiler_rcc_clean: |
nuclear@11 | 186 compiler_image_collection_make_all: qmake_image_collection.cpp |
nuclear@11 | 187 compiler_image_collection_clean: |
nuclear@11 | 188 -$(DEL_FILE) qmake_image_collection.cpp |
nuclear@11 | 189 compiler_moc_source_make_all: main.moc |
nuclear@11 | 190 compiler_moc_source_clean: |
nuclear@11 | 191 -$(DEL_FILE) main.moc |
nuclear@11 | 192 main.moc: src/volray.h \ |
nuclear@11 | 193 src/main.cc |
nuclear@11 | 194 /usr/bin/moc-qt4 $(DEFINES) $(INCPATH) src/main.cc -o main.moc |
nuclear@11 | 195 |
nuclear@11 | 196 compiler_uic_make_all: |
nuclear@11 | 197 compiler_uic_clean: |
nuclear@11 | 198 compiler_yacc_decl_make_all: |
nuclear@11 | 199 compiler_yacc_decl_clean: |
nuclear@11 | 200 compiler_yacc_impl_make_all: |
nuclear@11 | 201 compiler_yacc_impl_clean: |
nuclear@11 | 202 compiler_lex_make_all: |
nuclear@11 | 203 compiler_lex_clean: |
nuclear@11 | 204 compiler_clean: compiler_moc_source_clean |
nuclear@11 | 205 |
nuclear@11 | 206 ####### Compile |
nuclear@11 | 207 |
nuclear@11 | 208 main.o: src/main.cc src/volray.h |
nuclear@11 | 209 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o src/main.cc |
nuclear@11 | 210 |
nuclear@11 | 211 sdr.o: src/sdr.c src/sdr.h |
nuclear@11 | 212 $(CC) -c $(CFLAGS) $(INCPATH) -o sdr.o src/sdr.c |
nuclear@11 | 213 |
nuclear@11 | 214 volray.o: src/volray.cc src/sdr.h \ |
nuclear@11 | 215 src/volume.h |
nuclear@11 | 216 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o volray.o src/volray.cc |
nuclear@11 | 217 |
nuclear@11 | 218 volume.o: src/volume.cc src/volume.h |
nuclear@11 | 219 $(CXX) -c $(CXXFLAGS) $(INCPATH) -o volume.o src/volume.cc |
nuclear@11 | 220 |
nuclear@11 | 221 ####### Install |
nuclear@11 | 222 |
nuclear@11 | 223 install: FORCE |
nuclear@11 | 224 |
nuclear@11 | 225 uninstall: FORCE |
nuclear@11 | 226 |
nuclear@11 | 227 FORCE: |
nuclear@11 | 228 |