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

9.1-release9.2-releasereleng/10.0releng/10.0.1releng/10.0.2
Last change on this file since 1f0939e was 1f0939e, checked in by Kris Moore <kris@…>, 17 months ago
  • Initial merge of code from PC-BSD SVN repo for my private (pre-release) hacking
  • Property mode set to 100644
File size: 15.2 KB
Line 
1#############################################################################
2# Makefile for building: pc-controlpanel
3# Generated by qmake (2.01a) (Qt 4.8.3) on: Sat Jan 5 01:01:29 2013
4# Project:  pc-controlpanel.pro
5# Template: app
6# Command: /usr/local/bin/qmake-qt4 -o Makefile pc-controlpanel.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 -lQtSolutions_SingleApplication-head -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                mainwnd.cpp \
48                qautoexpandlist.cpp \
49                item.cpp \
50                grouplist.cpp \
51                pbiinfo.cpp \
52                deinfo.cpp moc_mainwnd.cpp \
53                moc_qautoexpandlist.cpp \
54                moc_grouplist.cpp \
55                qrc_controlpanel.cpp
56OBJECTS       = main.o \
57                mainwnd.o \
58                qautoexpandlist.o \
59                item.o \
60                grouplist.o \
61                pbiinfo.o \
62                deinfo.o \
63                moc_mainwnd.o \
64                moc_qautoexpandlist.o \
65                moc_grouplist.o \
66                qrc_controlpanel.o
67DIST          = /usr/local/share/qt4/mkspecs/common/unix.conf \
68                /usr/local/share/qt4/mkspecs/common/gcc-base.conf \
69                /usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf \
70                /usr/local/share/qt4/mkspecs/common/g++-base.conf \
71                /usr/local/share/qt4/mkspecs/common/g++-unix.conf \
72                /usr/local/share/qt4/mkspecs/qconfig.pri \
73                /usr/local/share/qt4/mkspecs/modules/qt_phonon.pri \
74                /usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri \
75                /usr/local/share/qt4/mkspecs/features/qt_functions.prf \
76                /usr/local/share/qt4/mkspecs/features/qt_config.prf \
77                /usr/local/share/qt4/mkspecs/features/exclusive_builds.prf \
78                /usr/local/share/qt4/mkspecs/features/default_pre.prf \
79                /usr/local/share/qt4/mkspecs/features/release.prf \
80                /usr/local/share/qt4/mkspecs/features/default_post.prf \
81                /usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
82                /usr/local/share/qt4/mkspecs/features/unix/thread.prf \
83                /usr/local/share/qt4/mkspecs/features/warn_on.prf \
84                /usr/local/share/qt4/mkspecs/features/qt.prf \
85                /usr/local/share/qt4/mkspecs/features/moc.prf \
86                /usr/local/share/qt4/mkspecs/features/resources.prf \
87                /usr/local/share/qt4/mkspecs/features/uic.prf \
88                /usr/local/share/qt4/mkspecs/features/yacc.prf \
89                /usr/local/share/qt4/mkspecs/features/lex.prf \
90                /usr/local/share/qt4/mkspecs/features/include_source_dir.prf \
91                pc-controlpanel.pro
92QMAKE_TARGET  = pc-controlpanel
93DESTDIR       = 
94TARGET        = pc-controlpanel
95
96first: all
97####### Implicit rules
98
99.SUFFIXES: .o .c .cpp .cc .cxx .C
100
101.cpp.o:
102        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
103
104.cc.o:
105        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
106
107.cxx.o:
108        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
109
110.C.o:
111        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
112
113.c.o:
114        $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
115
116####### Build rules
117
118all: Makefile $(TARGET)
119
120$(TARGET): ui_mainwnd.h $(OBJECTS) 
121        $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
122
123Makefile: pc-controlpanel.pro  /usr/local/share/qt4/mkspecs/freebsd-g++/qmake.conf /usr/local/share/qt4/mkspecs/common/unix.conf \
124                /usr/local/share/qt4/mkspecs/common/gcc-base.conf \
125                /usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf \
126                /usr/local/share/qt4/mkspecs/common/g++-base.conf \
127                /usr/local/share/qt4/mkspecs/common/g++-unix.conf \
128                /usr/local/share/qt4/mkspecs/qconfig.pri \
129                /usr/local/share/qt4/mkspecs/modules/qt_phonon.pri \
130                /usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri \
131                /usr/local/share/qt4/mkspecs/features/qt_functions.prf \
132                /usr/local/share/qt4/mkspecs/features/qt_config.prf \
133                /usr/local/share/qt4/mkspecs/features/exclusive_builds.prf \
134                /usr/local/share/qt4/mkspecs/features/default_pre.prf \
135                /usr/local/share/qt4/mkspecs/features/release.prf \
136                /usr/local/share/qt4/mkspecs/features/default_post.prf \
137                /usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf \
138                /usr/local/share/qt4/mkspecs/features/unix/thread.prf \
139                /usr/local/share/qt4/mkspecs/features/warn_on.prf \
140                /usr/local/share/qt4/mkspecs/features/qt.prf \
141                /usr/local/share/qt4/mkspecs/features/moc.prf \
142                /usr/local/share/qt4/mkspecs/features/resources.prf \
143                /usr/local/share/qt4/mkspecs/features/uic.prf \
144                /usr/local/share/qt4/mkspecs/features/yacc.prf \
145                /usr/local/share/qt4/mkspecs/features/lex.prf \
146                /usr/local/share/qt4/mkspecs/features/include_source_dir.prf \
147                /usr/local/lib/qt4/libQtGui.prl \
148                /usr/local/lib/qt4/libQtCore.prl
149        $(QMAKE) -o Makefile pc-controlpanel.pro
150/usr/local/share/qt4/mkspecs/common/unix.conf:
151/usr/local/share/qt4/mkspecs/common/gcc-base.conf:
152/usr/local/share/qt4/mkspecs/common/gcc-base-unix.conf:
153/usr/local/share/qt4/mkspecs/common/g++-base.conf:
154/usr/local/share/qt4/mkspecs/common/g++-unix.conf:
155/usr/local/share/qt4/mkspecs/qconfig.pri:
156/usr/local/share/qt4/mkspecs/modules/qt_phonon.pri:
157/usr/local/share/qt4/mkspecs/modules/qt_webkit_version.pri:
158/usr/local/share/qt4/mkspecs/features/qt_functions.prf:
159/usr/local/share/qt4/mkspecs/features/qt_config.prf:
160/usr/local/share/qt4/mkspecs/features/exclusive_builds.prf:
161/usr/local/share/qt4/mkspecs/features/default_pre.prf:
162/usr/local/share/qt4/mkspecs/features/release.prf:
163/usr/local/share/qt4/mkspecs/features/default_post.prf:
164/usr/local/share/qt4/mkspecs/features/unix/gdb_dwarf_index.prf:
165/usr/local/share/qt4/mkspecs/features/unix/thread.prf:
166/usr/local/share/qt4/mkspecs/features/warn_on.prf:
167/usr/local/share/qt4/mkspecs/features/qt.prf:
168/usr/local/share/qt4/mkspecs/features/moc.prf:
169/usr/local/share/qt4/mkspecs/features/resources.prf:
170/usr/local/share/qt4/mkspecs/features/uic.prf:
171/usr/local/share/qt4/mkspecs/features/yacc.prf:
172/usr/local/share/qt4/mkspecs/features/lex.prf:
173/usr/local/share/qt4/mkspecs/features/include_source_dir.prf:
174/usr/local/lib/qt4/libQtGui.prl:
175/usr/local/lib/qt4/libQtCore.prl:
176qmake:  FORCE
177        @$(QMAKE) -o Makefile pc-controlpanel.pro
178
179dist:
180        @$(CHK_DIR_EXISTS) .tmp/pc-controlpanel1.0.0 || $(MKDIR) .tmp/pc-controlpanel1.0.0
181        $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/pc-controlpanel1.0.0/ && $(COPY_FILE) --parents mainwnd.h qautoexpandlist.h item.h grouplist.h pbiinfo.h deinfo.h .tmp/pc-controlpanel1.0.0/ && $(COPY_FILE) --parents controlpanel.qrc .tmp/pc-controlpanel1.0.0/ && $(COPY_FILE) --parents main.cpp mainwnd.cpp qautoexpandlist.cpp item.cpp grouplist.cpp pbiinfo.cpp deinfo.cpp .tmp/pc-controlpanel1.0.0/ && $(COPY_FILE) --parents mainwnd.ui .tmp/pc-controlpanel1.0.0/ && $(COPY_FILE) --parents i18n/pc-controlpanel_af.ts i18n/pc-controlpanel_ar.ts i18n/pc-controlpanel_az.ts i18n/pc-controlpanel_bg.ts i18n/pc-controlpanel_bn.ts i18n/pc-controlpanel_bs.ts i18n/pc-controlpanel_ca.ts i18n/pc-controlpanel_cs.ts i18n/pc-controlpanel_cy.ts i18n/pc-controlpanel_da.ts i18n/pc-controlpanel_de.ts i18n/pc-controlpanel_el.ts i18n/pc-controlpanel_en_GB.ts i18n/pc-controlpanel_en_ZA.ts i18n/pc-controlpanel_es.ts i18n/pc-controlpanel_et.ts i18n/pc-controlpanel_eu.ts i18n/pc-controlpanel_fa.ts i18n/pc-controlpanel_fi.ts i18n/pc-controlpanel_fr.ts i18n/pc-controlpanel_fr_CA.ts i18n/pc-controlpanel_fur.ts i18n/pc-controlpanel_gl.ts i18n/pc-controlpanel_he.ts i18n/pc-controlpanel_hi.ts i18n/pc-controlpanel_hr.ts i18n/pc-controlpanel_hu.ts i18n/pc-controlpanel_id.ts i18n/pc-controlpanel_is.ts i18n/pc-controlpanel_it.ts i18n/pc-controlpanel_ja.ts i18n/pc-controlpanel_ka.ts i18n/pc-controlpanel_ko.ts i18n/pc-controlpanel_lt.ts i18n/pc-controlpanel_lv.ts i18n/pc-controlpanel_mk.ts i18n/pc-controlpanel_mn.ts i18n/pc-controlpanel_ms.ts i18n/pc-controlpanel_mt.ts i18n/pc-controlpanel_nb.ts i18n/pc-controlpanel_ne.ts i18n/pc-controlpanel_nl.ts i18n/pc-controlpanel_pa.ts i18n/pc-controlpanel_pl.ts i18n/pc-controlpanel_pt.ts i18n/pc-controlpanel_pt_BR.ts i18n/pc-controlpanel_ro.ts i18n/pc-controlpanel_ru.ts i18n/pc-controlpanel_sk.ts i18n/pc-controlpanel_sl.ts i18n/pc-controlpanel_sr.ts i18n/pc-controlpanel_sv.ts i18n/pc-controlpanel_sw.ts i18n/pc-controlpanel_ta.ts i18n/pc-controlpanel_tg.ts i18n/pc-controlpanel_th.ts i18n/pc-controlpanel_tr.ts i18n/pc-controlpanel_uk.ts i18n/pc-controlpanel_uz.ts i18n/pc-controlpanel_vi.ts i18n/pc-controlpanel_zh_CN.ts i18n/pc-controlpanel_zh_HK.ts i18n/pc-controlpanel_zh_TW.ts i18n/pc-controlpanel_zu.ts .tmp/pc-controlpanel1.0.0/ && (cd `dirname .tmp/pc-controlpanel1.0.0` && $(TAR) pc-controlpanel1.0.0.tar pc-controlpanel1.0.0 && $(COMPRESS) pc-controlpanel1.0.0.tar) && $(MOVE) `dirname .tmp/pc-controlpanel1.0.0`/pc-controlpanel1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/pc-controlpanel1.0.0
182
183
184clean:compiler_clean
185        -$(DEL_FILE) $(OBJECTS)
186        -$(DEL_FILE) *~ core *.core
187
188
189####### Sub-libraries
190
191distclean: clean
192        -$(DEL_FILE) $(TARGET) 
193        -$(DEL_FILE) Makefile
194
195
196check: first
197
198mocclean: compiler_moc_header_clean compiler_moc_source_clean
199
200mocables: compiler_moc_header_make_all compiler_moc_source_make_all
201
202compiler_moc_header_make_all: moc_mainwnd.cpp moc_qautoexpandlist.cpp moc_grouplist.cpp
203compiler_moc_header_clean:
204        -$(DEL_FILE) moc_mainwnd.cpp moc_qautoexpandlist.cpp moc_grouplist.cpp
205moc_mainwnd.cpp: grouplist.h \
206                qautoexpandlist.h \
207                item.h \
208                pbiinfo.h \
209                deinfo.h \
210                mainwnd.h
211        /usr/local/bin/moc-qt4 $(DEFINES) $(INCPATH) mainwnd.h -o moc_mainwnd.cpp
212
213moc_qautoexpandlist.cpp: qautoexpandlist.h
214        /usr/local/bin/moc-qt4 $(DEFINES) $(INCPATH) qautoexpandlist.h -o moc_qautoexpandlist.cpp
215
216moc_grouplist.cpp: qautoexpandlist.h \
217                item.h \
218                pbiinfo.h \
219                deinfo.h \
220                grouplist.h
221        /usr/local/bin/moc-qt4 $(DEFINES) $(INCPATH) grouplist.h -o moc_grouplist.cpp
222
223compiler_rcc_make_all: qrc_controlpanel.cpp
224compiler_rcc_clean:
225        -$(DEL_FILE) qrc_controlpanel.cpp
226qrc_controlpanel.cpp: controlpanel.qrc \
227                icon.png \
228                images/lxde.png \
229                images/object-locked.png \
230                images/gnome.png \
231                images/unsupported_de.png \
232                images/refresh.png \
233                images/all_desktops.png \
234                images/xfce.png \
235                images/e16.png \
236                images/security-medium.png \
237                images/kde.png
238        /usr/local/bin/rcc -name controlpanel controlpanel.qrc -o qrc_controlpanel.cpp
239
240compiler_image_collection_make_all: qmake_image_collection.cpp
241compiler_image_collection_clean:
242        -$(DEL_FILE) qmake_image_collection.cpp
243compiler_moc_source_make_all:
244compiler_moc_source_clean:
245compiler_uic_make_all: ui_mainwnd.h
246compiler_uic_clean:
247        -$(DEL_FILE) ui_mainwnd.h
248ui_mainwnd.h: mainwnd.ui
249        /usr/local/bin/uic-qt4 mainwnd.ui -o ui_mainwnd.h
250
251compiler_yacc_decl_make_all:
252compiler_yacc_decl_clean:
253compiler_yacc_impl_make_all:
254compiler_yacc_impl_clean:
255compiler_lex_make_all:
256compiler_lex_clean:
257compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean
258
259####### Compile
260
261main.o: main.cpp mainwnd.h \
262                grouplist.h \
263                qautoexpandlist.h \
264                item.h \
265                pbiinfo.h \
266                deinfo.h \
267                ../config.h
268        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
269
270mainwnd.o: mainwnd.cpp mainwnd.h \
271                grouplist.h \
272                qautoexpandlist.h \
273                item.h \
274                pbiinfo.h \
275                deinfo.h \
276                ui_mainwnd.h \
277                ../config.h
278        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwnd.o mainwnd.cpp
279
280qautoexpandlist.o: qautoexpandlist.cpp qautoexpandlist.h
281        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qautoexpandlist.o qautoexpandlist.cpp
282
283item.o: item.cpp item.h \
284                pbiinfo.h \
285                deinfo.h \
286                ../config.h
287        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o item.o item.cpp
288
289grouplist.o: grouplist.cpp grouplist.h \
290                qautoexpandlist.h \
291                item.h \
292                pbiinfo.h \
293                deinfo.h
294        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o grouplist.o grouplist.cpp
295
296pbiinfo.o: pbiinfo.cpp pbiinfo.h
297        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o pbiinfo.o pbiinfo.cpp
298
299deinfo.o: deinfo.cpp deinfo.h
300        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o deinfo.o deinfo.cpp
301
302moc_mainwnd.o: moc_mainwnd.cpp
303        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwnd.o moc_mainwnd.cpp
304
305moc_qautoexpandlist.o: moc_qautoexpandlist.cpp
306        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qautoexpandlist.o moc_qautoexpandlist.cpp
307
308moc_grouplist.o: moc_grouplist.cpp
309        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_grouplist.o moc_grouplist.cpp
310
311qrc_controlpanel.o: qrc_controlpanel.cpp
312        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qrc_controlpanel.o qrc_controlpanel.cpp
313
314####### Install
315
316install_target: first FORCE
317        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/bin/
318        -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
319
320uninstall_target:  FORCE
321        -$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
322        -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/bin/
323
324
325install_dotrans: first FORCE
326        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/i18n/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/i18n/
327        cd i18n && lrelease-qt4 -nounfinished *.ts && cp *.qm /usr/local/share/pcbsd/i18n/
328
329
330install_desktop: first FORCE
331        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/applications/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/applications/
332        -$(INSTALL_FILE) /usr/home/kris/source/pcbsd/current/src-qt4/pc-controlpanel/pccontrol.desktop $(INSTALL_ROOT)/usr/local/share/applications/
333
334
335uninstall_desktop:  FORCE
336        -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/local/share/applications/pccontrol.desktop
337        -$(DEL_DIR) $(INSTALL_ROOT)/usr/local/share/applications/
338
339
340install_cleanitems: first FORCE
341        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/
342        rm -rf /usr/local/share/pcbsd/pc-controlpanel/items
343
344
345install_mkdiritems: first FORCE
346        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/
347        mkdir -p /usr/local/share/pcbsd/pc-controlpanel/items
348
349
350install_cpitems: first FORCE
351        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/
352        tar cvf - --exclude .svn/ -C items . 2>/dev/null | tar xvf - -C /usr/local/share/pcbsd/pc-controlpanel/items 2>/dev/null
353
354
355install_mkdiricons: first FORCE
356        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/icons/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/icons/
357        mkdir -p /usr/local/share/pcbsd/pc-controlpanel/icons
358
359
360install_cpicons: first FORCE
361        @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/ || $(MKDIR) $(INSTALL_ROOT)/usr/local/share/pcbsd/pc-controlpanel/items/
362        tar cvf - --exclude .svn/ -C icons . 2>/dev/null | tar xvf - -C /usr/local/share/pcbsd/pc-controlpanel/icons 2>/dev/null
363
364
365install:  install_target install_dotrans install_desktop install_cleanitems install_mkdiritems install_cpitems install_mkdiricons install_cpicons  FORCE
366
367uninstall: uninstall_target uninstall_desktop   FORCE
368
369FORCE:
370
Note: See TracBrowser for help on using the repository browser.