]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/qt-console/Makefile
kes Apply fix from for building wx-console on the Mac from
[bacula/bacula] / bacula / src / qt-console / Makefile
1 #############################################################################
2 # Makefile for building: bat
3 # Generated by qmake (2.01a) (Qt 4.2.1) on: Mon Mar 5 17:45:21 2007
4 # Project:  bat.pro
5 # Template: app
6 # Command: /usr/bin/qmake -unix -o Makefile bat.pro
7 #############################################################################
8
9 ####### Compiler, tools and options
10
11 CC            = gcc
12 CXX           = g++
13 LEX           = flex
14 YACC          = yacc
15 DEFINES       = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
16 CFLAGS        = -pipe -g -D_REENTRANT -Wall -W  $(DEFINES)
17 CXXFLAGS      = -pipe -g -D_REENTRANT -Wall -W  $(DEFINES)
18 LEXFLAGS      = 
19 YACCFLAGS     = -d
20 INCPATH       = -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui -I/usr/include/QtGui -I/usr/include -I. -Iconsole -Irestore -I.. -Imoc -I.
21 LINK          = g++
22 LFLAGS        = 
23 LIBS          = $(SUBLIBS)  -L/usr/lib -L../lib -lbac -lssl -lcrypto -lQtGui -L/usr/lib -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXrandr -lXfixes -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -ldl -lpthread
24 AR            = ar cqs
25 RANLIB        = 
26 QMAKE         = /usr/bin/qmake
27 TAR           = tar -cf
28 COMPRESS      = gzip -9f
29 COPY          = cp -f
30 COPY_FILE     = $(COPY)
31 COPY_DIR      = $(COPY) -r
32 INSTALL_FILE  = install -m 644 -p
33 INSTALL_DIR   = $(COPY_DIR)
34 INSTALL_PROGRAM = install -m 755 -p
35 DEL_FILE      = rm -f
36 SYMLINK       = ln -sf
37 DEL_DIR       = rmdir
38 MOVE          = mv -f
39 CHK_DIR_EXISTS= test -d
40 MKDIR         = mkdir -p
41
42 ####### Output directory
43
44 OBJECTS_DIR   = obj/
45
46 ####### Files
47
48 SOURCES       = main.cpp \
49                 bat_conf.cpp \
50                 mainwin.cpp \
51                 qstd.cpp \
52                 console/authenticate.cpp \
53                 console/console.cpp \
54                 restore/prerestore.cpp \
55                 restore/restore.cpp \
56                 restore/brestore.cpp \
57                 label/label.cpp \
58                 run/run.cpp moc/moc_mainwin.cpp \
59                 moc/moc_console.cpp \
60                 moc/moc_restore.cpp \
61                 moc/moc_label.cpp \
62                 moc/moc_run.cpp \
63                 qrc_main.cpp
64 OBJECTS       = obj/main.o \
65                 obj/bat_conf.o \
66                 obj/mainwin.o \
67                 obj/qstd.o \
68                 obj/authenticate.o \
69                 obj/console.o \
70                 obj/prerestore.o \
71                 obj/restore.o \
72                 obj/brestore.o \
73                 obj/label.o \
74                 obj/run.o \
75                 obj/moc_mainwin.o \
76                 obj/moc_console.o \
77                 obj/moc_restore.o \
78                 obj/moc_label.o \
79                 obj/moc_run.o \
80                 obj/qrc_main.o
81 DIST          = /usr/share/qt4/mkspecs/common/unix.conf \
82                 /usr/share/qt4/mkspecs/common/g++.conf \
83                 /usr/share/qt4/mkspecs/common/linux.conf \
84                 /usr/share/qt4/mkspecs/qconfig.pri \
85                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
86                 /usr/share/qt4/mkspecs/features/qt_config.prf \
87                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
88                 /usr/share/qt4/mkspecs/features/default_pre.prf \
89                 /usr/share/qt4/mkspecs/features/debug.prf \
90                 /usr/share/qt4/mkspecs/features/default_post.prf \
91                 /usr/share/qt4/mkspecs/features/qt.prf \
92                 /usr/share/qt4/mkspecs/features/unix/thread.prf \
93                 /usr/share/qt4/mkspecs/features/moc.prf \
94                 /usr/share/qt4/mkspecs/features/warn_on.prf \
95                 /usr/share/qt4/mkspecs/features/resources.prf \
96                 /usr/share/qt4/mkspecs/features/uic.prf \
97                 bat.pro
98 QMAKE_TARGET  = bat
99 DESTDIR       = 
100 TARGET        = bat
101
102 first: all
103 ####### Implicit rules
104
105 .SUFFIXES: .o .c .cpp .cc .cxx .C
106
107 .cpp.o:
108         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
109
110 .cc.o:
111         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
112
113 .cxx.o:
114         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
115
116 .C.o:
117         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
118
119 .c.o:
120         $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
121
122 ####### Build rules
123
124 all: Makefile $(TARGET)
125
126 $(TARGET): ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h $(OBJECTS)  
127         $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
128
129 Makefile: bat.pro  /usr/share/qt4/mkspecs/default/qmake.conf /usr/share/qt4/mkspecs/common/unix.conf \
130                 /usr/share/qt4/mkspecs/common/g++.conf \
131                 /usr/share/qt4/mkspecs/common/linux.conf \
132                 /usr/share/qt4/mkspecs/qconfig.pri \
133                 /usr/share/qt4/mkspecs/features/qt_functions.prf \
134                 /usr/share/qt4/mkspecs/features/qt_config.prf \
135                 /usr/share/qt4/mkspecs/features/exclusive_builds.prf \
136                 /usr/share/qt4/mkspecs/features/default_pre.prf \
137                 /usr/share/qt4/mkspecs/features/debug.prf \
138                 /usr/share/qt4/mkspecs/features/default_post.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/warn_on.prf \
143                 /usr/share/qt4/mkspecs/features/resources.prf \
144                 /usr/share/qt4/mkspecs/features/uic.prf \
145                 /usr/lib/libQtGui.prl \
146                 /usr/lib/libQtCore.prl
147         $(QMAKE) -unix -o Makefile bat.pro
148 /usr/share/qt4/mkspecs/common/unix.conf:
149 /usr/share/qt4/mkspecs/common/g++.conf:
150 /usr/share/qt4/mkspecs/common/linux.conf:
151 /usr/share/qt4/mkspecs/qconfig.pri:
152 /usr/share/qt4/mkspecs/features/qt_functions.prf:
153 /usr/share/qt4/mkspecs/features/qt_config.prf:
154 /usr/share/qt4/mkspecs/features/exclusive_builds.prf:
155 /usr/share/qt4/mkspecs/features/default_pre.prf:
156 /usr/share/qt4/mkspecs/features/debug.prf:
157 /usr/share/qt4/mkspecs/features/default_post.prf:
158 /usr/share/qt4/mkspecs/features/qt.prf:
159 /usr/share/qt4/mkspecs/features/unix/thread.prf:
160 /usr/share/qt4/mkspecs/features/moc.prf:
161 /usr/share/qt4/mkspecs/features/warn_on.prf:
162 /usr/share/qt4/mkspecs/features/resources.prf:
163 /usr/share/qt4/mkspecs/features/uic.prf:
164 /usr/lib/libQtGui.prl:
165 /usr/lib/libQtCore.prl:
166 qmake:  FORCE
167         @$(QMAKE) -unix -o Makefile bat.pro
168
169 dist: 
170         @$(CHK_DIR_EXISTS) obj/bat1.0.0 || $(MKDIR) obj/bat1.0.0 
171         $(COPY_FILE) --parents $(SOURCES) $(DIST) obj/bat1.0.0/ && $(COPY_FILE) --parents mainwin.h bat.h bat_conf.h qstd.h console/console.h restore/restore.h label/label.h run/run.h obj/bat1.0.0/ && $(COPY_FILE) --parents main.qrc obj/bat1.0.0/ && $(COPY_FILE) --parents main.cpp bat_conf.cpp mainwin.cpp qstd.cpp console/authenticate.cpp console/console.cpp restore/prerestore.cpp restore/restore.cpp restore/brestore.cpp label/label.cpp run/run.cpp obj/bat1.0.0/ && $(COPY_FILE) --parents main.ui label/label.ui console/console.ui restore/restore.ui restore/prerestore.ui restore/brestore.ui run/run.ui obj/bat1.0.0/ && (cd `dirname obj/bat1.0.0` && $(TAR) bat1.0.0.tar bat1.0.0 && $(COMPRESS) bat1.0.0.tar) && $(MOVE) `dirname obj/bat1.0.0`/bat1.0.0.tar.gz . && $(DEL_FILE) -r obj/bat1.0.0
172
173
174 yaccclean:
175 lexclean:
176 clean:compiler_clean 
177         -$(DEL_FILE) $(OBJECTS)
178         -$(DEL_FILE) *~ core *.core
179
180
181 ####### Sub-libraries
182
183 distclean: clean
184         -$(DEL_FILE) $(TARGET) 
185         -$(DEL_FILE) Makefile
186
187
188 /usr/bin/moc:
189         (cd $(QTDIR)/src/tools/moc && $(MAKE))
190
191 mocclean: compiler_moc_header_clean compiler_moc_source_clean
192
193 mocables: compiler_moc_header_make_all compiler_moc_source_make_all
194
195 compiler_moc_header_make_all: moc/moc_mainwin.cpp moc/moc_console.cpp moc/moc_restore.cpp moc/moc_label.cpp moc/moc_run.cpp
196 compiler_moc_header_clean:
197         -$(DEL_FILE) moc/moc_mainwin.cpp moc/moc_console.cpp moc/moc_restore.cpp moc/moc_label.cpp moc/moc_run.cpp
198 moc/moc_mainwin.cpp: ui_main.h \
199                 label/label.h \
200                 ui_label.h \
201                 run/run.h \
202                 ui_run.h \
203                 restore/restore.h \
204                 ui_brestore.h \
205                 ui_restore.h \
206                 ui_prerestore.h \
207                 mainwin.h \
208                 /usr/bin/moc
209         /usr/bin/moc $(DEFINES) $(INCPATH) mainwin.h -o moc/moc_mainwin.cpp
210
211 moc/moc_console.cpp: ui_console.h \
212                 console/console.h \
213                 /usr/bin/moc
214         /usr/bin/moc $(DEFINES) $(INCPATH) console/console.h -o moc/moc_console.cpp
215
216 moc/moc_restore.cpp: ui_brestore.h \
217                 ui_restore.h \
218                 ui_prerestore.h \
219                 restore/restore.h \
220                 /usr/bin/moc
221         /usr/bin/moc $(DEFINES) $(INCPATH) restore/restore.h -o moc/moc_restore.cpp
222
223 moc/moc_label.cpp: ui_label.h \
224                 label/label.h \
225                 /usr/bin/moc
226         /usr/bin/moc $(DEFINES) $(INCPATH) label/label.h -o moc/moc_label.cpp
227
228 moc/moc_run.cpp: ui_run.h \
229                 run/run.h \
230                 /usr/bin/moc
231         /usr/bin/moc $(DEFINES) $(INCPATH) run/run.h -o moc/moc_run.cpp
232
233 compiler_rcc_make_all: qrc_main.cpp
234 compiler_rcc_clean:
235         -$(DEL_FILE) qrc_main.cpp
236 qrc_main.cpp: main.qrc \
237                 /usr/bin/rcc \
238                 images/new.png \
239                 images/disconnected.png \
240                 images/label.png \
241                 images/server.png \
242                 images/restore.png \
243                 images/copy.png \
244                 images/cut.png \
245                 images/connected.png \
246                 images/big-server.png \
247                 images/save.png \
248                 images/bat.png \
249                 images/paste.png \
250                 images/run.png \
251                 images/open.png
252         /usr/bin/rcc -name main main.qrc -o qrc_main.cpp
253
254 compiler_image_collection_make_all: qmake_image_collection.cpp
255 compiler_image_collection_clean:
256         -$(DEL_FILE) qmake_image_collection.cpp
257 compiler_moc_source_make_all:
258 compiler_moc_source_clean:
259 compiler_uic_make_all: ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h
260 compiler_uic_clean:
261         -$(DEL_FILE) ui_main.h ui_label.h ui_console.h ui_restore.h ui_prerestore.h ui_brestore.h ui_run.h
262 ui_main.h: main.ui
263         /usr/bin/uic main.ui -o ui_main.h
264
265 ui_label.h: label/label.ui
266         /usr/bin/uic label/label.ui -o ui_label.h
267
268 ui_console.h: console/console.ui
269         /usr/bin/uic console/console.ui -o ui_console.h
270
271 ui_restore.h: restore/restore.ui
272         /usr/bin/uic restore/restore.ui -o ui_restore.h
273
274 ui_prerestore.h: restore/prerestore.ui
275         /usr/bin/uic restore/prerestore.ui -o ui_prerestore.h
276
277 ui_brestore.h: restore/brestore.ui
278         /usr/bin/uic restore/brestore.ui -o ui_brestore.h
279
280 ui_run.h: run/run.ui
281         /usr/bin/uic run/run.ui -o ui_run.h
282
283 compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean 
284
285 ####### Compile
286
287 obj/main.o: main.cpp bat.h \
288                 mainwin.h \
289                 ui_main.h \
290                 label/label.h \
291                 ui_label.h \
292                 run/run.h \
293                 ui_run.h \
294                 restore/restore.h \
295                 ui_brestore.h \
296                 ui_restore.h \
297                 ui_prerestore.h \
298                 bat_conf.h \
299                 qstd.h
300         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/main.o main.cpp
301
302 obj/bat_conf.o: bat_conf.cpp bat_conf.h
303         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/bat_conf.o bat_conf.cpp
304
305 obj/mainwin.o: mainwin.cpp bat.h \
306                 mainwin.h \
307                 ui_main.h \
308                 label/label.h \
309                 ui_label.h \
310                 run/run.h \
311                 ui_run.h \
312                 restore/restore.h \
313                 ui_brestore.h \
314                 ui_restore.h \
315                 ui_prerestore.h \
316                 bat_conf.h \
317                 qstd.h
318         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/mainwin.o mainwin.cpp
319
320 obj/qstd.o: qstd.cpp qstd.h
321         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qstd.o qstd.cpp
322
323 obj/authenticate.o: console/authenticate.cpp bat.h \
324                 mainwin.h \
325                 ui_main.h \
326                 label/label.h \
327                 ui_label.h \
328                 run/run.h \
329                 ui_run.h \
330                 restore/restore.h \
331                 ui_brestore.h \
332                 ui_restore.h \
333                 ui_prerestore.h \
334                 bat_conf.h \
335                 qstd.h
336         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/authenticate.o console/authenticate.cpp
337
338 obj/console.o: console/console.cpp bat.h \
339                 mainwin.h \
340                 ui_main.h \
341                 label/label.h \
342                 ui_label.h \
343                 run/run.h \
344                 ui_run.h \
345                 restore/restore.h \
346                 ui_brestore.h \
347                 ui_restore.h \
348                 ui_prerestore.h \
349                 bat_conf.h \
350                 qstd.h \
351                 console/console.h \
352                 ui_console.h
353         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/console.o console/console.cpp
354
355 obj/prerestore.o: restore/prerestore.cpp bat.h \
356                 mainwin.h \
357                 ui_main.h \
358                 label/label.h \
359                 ui_label.h \
360                 run/run.h \
361                 ui_run.h \
362                 restore/restore.h \
363                 ui_brestore.h \
364                 ui_restore.h \
365                 ui_prerestore.h \
366                 bat_conf.h \
367                 qstd.h
368         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/prerestore.o restore/prerestore.cpp
369
370 obj/restore.o: restore/restore.cpp bat.h \
371                 mainwin.h \
372                 ui_main.h \
373                 label/label.h \
374                 ui_label.h \
375                 run/run.h \
376                 ui_run.h \
377                 restore/restore.h \
378                 ui_brestore.h \
379                 ui_restore.h \
380                 ui_prerestore.h \
381                 bat_conf.h \
382                 qstd.h
383         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/restore.o restore/restore.cpp
384
385 obj/brestore.o: restore/brestore.cpp bat.h \
386                 mainwin.h \
387                 ui_main.h \
388                 label/label.h \
389                 ui_label.h \
390                 run/run.h \
391                 ui_run.h \
392                 restore/restore.h \
393                 ui_brestore.h \
394                 ui_restore.h \
395                 ui_prerestore.h \
396                 bat_conf.h \
397                 qstd.h
398         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/brestore.o restore/brestore.cpp
399
400 obj/label.o: label/label.cpp bat.h \
401                 mainwin.h \
402                 ui_main.h \
403                 label/label.h \
404                 ui_label.h \
405                 run/run.h \
406                 ui_run.h \
407                 restore/restore.h \
408                 ui_brestore.h \
409                 ui_restore.h \
410                 ui_prerestore.h \
411                 bat_conf.h \
412                 qstd.h
413         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/label.o label/label.cpp
414
415 obj/run.o: run/run.cpp bat.h \
416                 mainwin.h \
417                 ui_main.h \
418                 label/label.h \
419                 ui_label.h \
420                 run/run.h \
421                 ui_run.h \
422                 restore/restore.h \
423                 ui_brestore.h \
424                 ui_restore.h \
425                 ui_prerestore.h \
426                 bat_conf.h \
427                 qstd.h
428         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/run.o run/run.cpp
429
430 obj/moc_mainwin.o: moc/moc_mainwin.cpp 
431         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_mainwin.o moc/moc_mainwin.cpp
432
433 obj/moc_console.o: moc/moc_console.cpp 
434         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_console.o moc/moc_console.cpp
435
436 obj/moc_restore.o: moc/moc_restore.cpp 
437         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_restore.o moc/moc_restore.cpp
438
439 obj/moc_label.o: moc/moc_label.cpp 
440         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_label.o moc/moc_label.cpp
441
442 obj/moc_run.o: moc/moc_run.cpp 
443         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/moc_run.o moc/moc_run.cpp
444
445 obj/qrc_main.o: qrc_main.cpp 
446         $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/qrc_main.o qrc_main.cpp
447
448 ####### Install
449
450 install:   FORCE
451
452 uninstall:   FORCE
453
454 FORCE:
455