source: src-qt4/pc-pbigui/Makefile @ 1f0939e

9.1-release9.2-releasereleng/10.0releng/10.0.1
Last change on this file since 1f0939e was 1f0939e, checked in by Kris Moore <kris@…>, 12 months ago
  • Initial merge of code from PC-BSD SVN repo for my private (pre-release) hacking
  • Property mode set to 100644
File size: 11.6 KB
Line 
1#############################################################################
2# Makefile for building: pc-pbigui
3# Generated by qmake (2.01a) (Qt 4.8.3) on: Sat Jan 5 01:07:25 2013
4# Project:  pc-pbigui.pro
5# Template: app
6# Command: /usr/local/bin/qmake-qt4 -o Makefile pc-pbigui.pro
7#############################################################################
8
9####### Compiler, tools and options
10
11CC            = gcc
12CXX           = g++
13DEFINES       = -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
14CFLAGS        = -pipe -O2 -Wall -W $(DEFINES)
15CXXFLAGS      = -pipe -O2 -Wall -W $(DEFINES)
16INCPATH       = -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4 -I. -I. -I/usr/local/include/qt4 -I/usr/local/include
17LINK          = g++
18LFLAGS        = -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4
19LIBS          = $(SUBLIBS)  -L/usr/local/lib/qt4 -L/usr/local/lib -lQtGui -L/usr/local/lib -L/usr/local/lib/qt4 -lQtCore
20AR            = ar cqs
21RANLIB        = 
22QMAKE         = /usr/local/bin/qmake-qt4
23TAR           = tar -cf
24COMPRESS      = gzip -9f
25COPY          = cp -f
26SED           = sed
27COPY_FILE     = $(COPY)
28COPY_DIR      = $(COPY) -R
29STRIP         = 
30INSTALL_FILE  = $(COPY_FILE)
31INSTALL_DIR   = $(COPY_DIR)
32INSTALL_PROGRAM = $(COPY_FILE)
33DEL_FILE      = rm -f
34SYMLINK       = ln -f -s
35DEL_DIR       = rmdir
36MOVE          = mv -f
37CHK_DIR_EXISTS= test -d
38MKDIR         = mkdir -p
39
40####### Output directory
41
42OBJECTS_DIR   = ./
43
44####### Files
45
46SOURCES       = main.cpp \
47                pbi.cpp moc_pbi.cpp \
48                qrc_pc-pbigui.cpp
49OBJECTS       = main.o \
50                pbi.o \
51                moc_pbi.o \
52                qrc_pc-pbigui.o
53DIST          = /usr/local/share/qt4/mkspecs/common/unix.conf \
54                /usr/local/share/qt4/mkspecs/common/gcc-base.conf \
55                /usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf \
56                /usr/local/share/qt4/mkspecs/common/g++-base.conf \
57                /usr/local/share/qt4/mkspecs/common/g++-unix.conf \
58                /usr/local/share/qt4/mkspecs/qconfig.pri \
59                /usr/local/share/qt4/mkspecs/modules/qt_phonon.pri \
60                /usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri \
61                /usr/local/share/qt4/mkspecs/features/qt_functions.prf \
62                /usr/local/share/qt4/mkspecs/features/qt_config.prf \
63                /usr/local/share/qt4/mkspecs/features/exclusive_builds.prf \
64                /usr/local/share/qt4/mkspecs/features/default_pre.prf \
65                /usr/local/share/qt4/mkspecs/features/release.prf \
66                /usr/local/share/qt4/mkspecs/features/default_post.prf \
67                /usr/local/share/qt4/mkspecs/features/warn_on.prf \
68                /usr/local/share/qt4/mkspecs/features/qt.prf \
69                /usr/local/share/qt4/mkspecs/features/moc.prf \
70                /usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
71                /usr/local/share/qt4/mkspecs/features/unix/thread.prf \
72                /usr/local/share/qt4/mkspecs/features/resources.prf \
73                /usr/local/share/qt4/mkspecs/features/uic.prf \
74                /usr/local/share/qt4/mkspecs/features/yacc.prf \
75                /usr/local/share/qt4/mkspecs/features/lex.prf \
76                /usr/local/share/qt4/mkspecs/features/include_source_dir.prf \
77                pc-pbigui.pro
78QMAKE_TARGET  = pc-pbigui
79DESTDIR       = 
80TARGET        = pc-pbigui
81
82first: all
83####### Implicit rules
84
85.SUFFIXES: .o .c .cpp .cc .cxx .C
86
87.cpp.o:
88        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
89
90.cc.o:
91        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
92
93.cxx.o:
94        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
95
96.C.o:
97        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
98
99.c.o:
100        $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
101
102####### Build rules
103
104all: Makefile $(TARGET)
105
106$(TARGET): ui_pbi.h $(OBJECTS) 
107        $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
108
109Makefile: pc-pbigui.pro  /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf /usr/local/share/qt4/mkspecs/common/unix.conf \
110                /usr/local/share/qt4/mkspecs/common/gcc-base.conf \
111                /usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf \
112                /usr/local/share/qt4/mkspecs/common/g++-base.conf \
113                /usr/local/share/qt4/mkspecs/common/g++-unix.conf \
114                /usr/local/share/qt4/mkspecs/qconfig.pri \
115                /usr/local/share/qt4/mkspecs/modules/qt_phonon.pri \
116                /usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri \
117                /usr/local/share/qt4/mkspecs/features/qt_functions.prf \
118                /usr/local/share/qt4/mkspecs/features/qt_config.prf \
119                /usr/local/share/qt4/mkspecs/features/exclusive_builds.prf \
120                /usr/local/share/qt4/mkspecs/features/default_pre.prf \
121                /usr/local/share/qt4/mkspecs/features/release.prf \
122                /usr/local/share/qt4/mkspecs/features/default_post.prf \
123                /usr/local/share/qt4/mkspecs/features/warn_on.prf \
124                /usr/local/share/qt4/mkspecs/features/qt.prf \
125                /usr/local/share/qt4/mkspecs/features/moc.prf \
126                /usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
127                /usr/local/share/qt4/mkspecs/features/unix/thread.prf \
128                /usr/local/share/qt4/mkspecs/features/resources.prf \
129                /usr/local/share/qt4/mkspecs/features/uic.prf \
130                /usr/local/share/qt4/mkspecs/features/yacc.prf \
131                /usr/local/share/qt4/mkspecs/features/lex.prf \
132                /usr/local/share/qt4/mkspecs/features/include_source_dir.prf \
133                /usr/local/lib/qt4/libQtGui.prl \
134                /usr/local/lib/qt4/libQtCore.prl
135        $(QMAKE) -o Makefile pc-pbigui.pro
136/usr/local/share/qt4/mkspecs/common/unix.conf:
137/usr/local/share/qt4/mkspecs/common/gcc-base.conf:
138/usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf:
139/usr/local/share/qt4/mkspecs/common/g++-base.conf:
140/usr/local/share/qt4/mkspecs/common/g++-unix.conf:
141/usr/local/share/qt4/mkspecs/qconfig.pri:
142/usr/local/share/qt4/mkspecs/modules/qt_phonon.pri:
143/usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri:
144/usr/local/share/qt4/mkspecs/features/qt_functions.prf:
145/usr/local/share/qt4/mkspecs/features/qt_config.prf:
146/usr/local/share/qt4/mkspecs/features/exclusive_builds.prf:
147/usr/local/share/qt4/mkspecs/features/default_pre.prf:
148/usr/local/share/qt4/mkspecs/features/release.prf:
149/usr/local/share/qt4/mkspecs/features/default_post.prf:
150/usr/local/share/qt4/mkspecs/features/warn_on.prf:
151/usr/local/share/qt4/mkspecs/features/qt.prf:
152/usr/local/share/qt4/mkspecs/features/moc.prf:
153/usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
154/usr/local/share/qt4/mkspecs/features/unix/thread.prf:
155/usr/local/share/qt4/mkspecs/features/resources.prf:
156/usr/local/share/qt4/mkspecs/features/uic.prf:
157/usr/local/share/qt4/mkspecs/features/yacc.prf:
158/usr/local/share/qt4/mkspecs/features/lex.prf:
159/usr/local/share/qt4/mkspecs/features/include_source_dir.prf:
160/usr/local/lib/qt4/libQtGui.prl:
161/usr/local/lib/qt4/libQtCore.prl:
162qmake:  FORCE
163        @$(QMAKE) -o Makefile pc-pbigui.pro
164
165dist:
166        @$(CHK_DIR_EXISTS) .tmp/pc-pbigui1.0.0 || $(MKDIR) .tmp/pc-pbigui1.0.0
167        $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/pc-pbigui1.0.0/ && $(COPY_FILE) --parents pbi.h .tmp/pc-pbigui1.0.0/ && $(COPY_FILE) --parents pc-pbigui.qrc .tmp/pc-pbigui1.0.0/ && $(COPY_FILE) --parents main.cpp pbi.cpp .tmp/pc-pbigui1.0.0/ && $(COPY_FILE) --parents pbi.ui .tmp/pc-pbigui1.0.0/ && $(COPY_FILE) --parents i18n/PBI_af.ts i18n/PBI_ar.ts i18n/PBI_az.ts i18n/PBI_bg.ts i18n/PBI_bn.ts i18n/PBI_bs.ts i18n/PBI_ca.ts i18n/PBI_cs.ts i18n/PBI_cy.ts i18n/PBI_da.ts i18n/PBI_de.ts i18n/PBI_el.ts i18n/PBI_es.ts i18n/PBI_et.ts i18n/PBI_eu.ts i18n/PBI_fa.ts i18n/PBI_fi.ts i18n/PBI_fr.ts i18n/PBI_fr_CA.ts i18n/PBI_gl.ts i18n/PBI_he.ts i18n/PBI_hi.ts i18n/PBI_hr.ts i18n/PBI_hu.ts i18n/PBI_id.ts i18n/PBI_is.ts i18n/PBI_it.ts i18n/PBI_ja.ts i18n/PBI_ka.ts i18n/PBI_ko.ts i18n/PBI_lt.ts i18n/PBI_lv.ts i18n/PBI_mk.ts i18n/PBI_mn.ts i18n/PBI_ms.ts i18n/PBI_mt.ts i18n/PBI_nb.ts i18n/PBI_nl.ts i18n/PBI_pa.ts i18n/PBI_pl.ts i18n/PBI_pt.ts i18n/PBI_pt_BR.ts i18n/PBI_ro.ts i18n/PBI_ru.ts i18n/PBI_sk.ts i18n/PBI_sl.ts i18n/PBI_sr.ts i18n/PBI_sv.ts i18n/PBI_sw.ts i18n/PBI_ta.ts i18n/PBI_tg.ts i18n/PBI_th.ts i18n/PBI_tr.ts i18n/PBI_uk.ts i18n/PBI_uz.ts i18n/PBI_vi.ts i18n/PBI_zh_CN.ts i18n/PBI_zh_HK.ts i18n/PBI_zh_TW.ts i18n/PBI_zu.ts .tmp/pc-pbigui1.0.0/ && (cd `dirname .tmp/pc-pbigui1.0.0` && $(TAR) pc-pbigui1.0.0.tar pc-pbigui1.0.0 && $(COMPRESS) pc-pbigui1.0.0.tar) && $(MOVE) `dirname .tmp/pc-pbigui1.0.0`/pc-pbigui1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/pc-pbigui1.0.0
168
169
170clean:compiler_clean
171        -$(DEL_FILE) $(OBJECTS)
172        -$(DEL_FILE) *~ core *.core
173
174
175####### Sub-libraries
176
177distclean: clean
178        -$(DEL_FILE) $(TARGET) 
179        -$(DEL_FILE) Makefile
180
181
182check: first
183
184mocclean: compiler_moc_header_clean compiler_moc_source_clean
185
186mocables: compiler_moc_header_make_all compiler_moc_source_make_all
187
188compiler_moc_header_make_all: moc_pbi.cpp
189compiler_moc_header_clean:
190        -$(DEL_FILE) moc_pbi.cpp
191moc_pbi.cpp: ui_pbi.h \
192                pbi.h
193        /usr/local/bin/moc-qt4 $(DEFINES) $(INCPATH) pbi.h -o moc_pbi.cpp
194
195compiler_rcc_make_all: qrc_pc-pbigui.cpp
196compiler_rcc_clean:
197        -$(DEL_FILE) qrc_pc-pbigui.cpp
198qrc_pc-pbigui.cpp: pc-pbigui.qrc \
199                no-sign.png \
200                folder-blue.png \
201                application.png \
202                invalid-sign.png \
203                leftside.png \
204                valid-sign.png \
205                header.png
206        /usr/local/bin/rcc -name pc-pbigui pc-pbigui.qrc -o qrc_pc-pbigui.cpp
207
208compiler_image_collection_make_all: qmake_image_collection.cpp
209compiler_image_collection_clean:
210        -$(DEL_FILE) qmake_image_collection.cpp
211compiler_moc_source_make_all:
212compiler_moc_source_clean:
213compiler_uic_make_all: ui_pbi.h
214compiler_uic_clean:
215        -$(DEL_FILE) ui_pbi.h
216ui_pbi.h: pbi.ui
217        /usr/local/bin/uic-qt4 pbi.ui -o ui_pbi.h
218
219compiler_yacc_decl_make_all:
220compiler_yacc_decl_clean:
221compiler_yacc_impl_make_all:
222compiler_yacc_impl_clean:
223compiler_lex_make_all:
224compiler_lex_clean:
225compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean
226
227####### Compile
228
229main.o: main.cpp pbi.h \
230                ui_pbi.h \
231                ../config.h
232        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
233
234pbi.o: pbi.cpp pbi.h \
235                ui_pbi.h
236        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pbi.o pbi.cpp
237
238moc_pbi.o: moc_pbi.cpp
239        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_pbi.o moc_pbi.cpp
240
241qrc_pc-pbigui.o: qrc_pc-pbigui.cpp
242        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_pc-pbigui.o qrc_pc-pbigui.cpp
243
244####### Install
245
246install_target: first FORCE
247        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
248        -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
249
250uninstall_target:  FORCE
251        -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
252        -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/
253
254
255install_dotrans: first FORCE
256        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/i18n/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/i18n/
257        cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm /usr/local/share/pcbsd/i18n/
258
259
260install_applnk: first FORCE
261        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/applications/
262        cd resources && xdg-desktop-menu install pcbsd-pbi.desktop
263
264
265install_pbiimg: first FORCE
266        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/images/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/images/
267        cd resources && xdg-icon-resource install --context mimetypes --size 64 pcbsd-pbi.png application-pbi
268
269
270install_mimexml: first FORCE
271        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/mime/packages/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/mime/packages/
272        cd resources && xdg-mime install pcbsd-pbi.xml
273
274
275install_runpbibin: first FORCE
276        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
277        -$(INSTALL_FILE) /usr/home/kris/source/pcbsd/current/src-qt4/pc-pbigui/resources/runpbi $(INSTALL_ROOT)/usr/local/bin/
278
279
280uninstall_runpbibin:  FORCE
281        -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/bin/runpbi
282        -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/
283
284
285install_runpbichmod: first FORCE
286        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
287        chmod 755 /usr/local/bin/runpbi
288
289
290install:  install_target install_dotrans install_applnk install_pbiimg install_mimexml install_runpbibin install_runpbichmod  FORCE
291
292uninstall: uninstall_target uninstall_runpbibin   FORCE
293
294FORCE:
295
Note: See TracBrowser for help on using the repository browser.