X-Git-Url: http://git.maemo.org/git/?p=confmgr;a=blobdiff_plain;f=src%2FMakefile;fp=src%2FMakefile;h=27fb32172d5413d412a0c4a353964d3a6d9253ec;hp=0000000000000000000000000000000000000000;hb=6f0e06a23515e795b75e08161487d60c9fc4f933;hpb=8cdf509abbdb8654def1e0df79e1f607e9a41807 diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..27fb321 --- /dev/null +++ b/src/Makefile @@ -0,0 +1,365 @@ +############################################################################# +# Makefile for building: confmgr +# Generated by qmake (2.01a) (Qt 4.6.2) on: Sat Jul 3 23:40:14 2010 +# Project: confmgr.pro +# Template: app +# Command: /usr/bin/qmake -unix -o Makefile confmgr.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -O2 -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtXml -I/targets/FREMANTLE_X86/usr/include/QtDBus -I/targets/FREMANTLE_X86/usr/include/QtMaemo5 -I/targets/FREMANTLE_X86/usr/include -I. -I. +LINK = g++ +LFLAGS = -Wl,-O1 -Wl,-rpath,/usr/lib +LIBS = $(SUBLIBS) -L/usr/lib -lQtMaemo5 -L/usr/lib -L/usr/X11R6/lib -lQtDBus -lQtXml -lQtGui -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = /usr/bin/qmake +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = main.cpp \ + mainwindow.cpp \ + xmlutil.cpp \ + profile.cpp \ + config.cpp \ + addprofile.cpp \ + addstep.cpp \ + dbusutility.cpp \ + confmanager.cpp moc_mainwindow.cpp \ + moc_xmlutil.cpp \ + moc_profile.cpp \ + moc_config.cpp \ + moc_addprofile.cpp \ + moc_addstep.cpp \ + moc_confmanager.cpp +OBJECTS = main.o \ + mainwindow.o \ + xmlutil.o \ + profile.o \ + config.o \ + addprofile.o \ + addstep.o \ + dbusutility.o \ + confmanager.o \ + moc_mainwindow.o \ + moc_xmlutil.o \ + moc_profile.o \ + moc_config.o \ + moc_addprofile.o \ + moc_addstep.o \ + moc_confmanager.o +DIST = /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \ + confmgr.pro +QMAKE_TARGET = confmgr +DESTDIR = +TARGET = confmgr + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx .C + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): ui_mainwindow.h ui_addprofile.h ui_addstep.h $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: confmgr.pro /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++/qmake.conf /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \ + /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \ + /usr/lib/libQtMaemo5.prl \ + /usr/lib/libQtDBus.prl \ + /usr/lib/libQtXml.prl \ + /usr/lib/libQtCore.prl \ + /usr/lib/libQtGui.prl + $(QMAKE) -unix -o Makefile confmgr.pro +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusinterfaces.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/dbusadaptors.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf: +/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf: +/usr/lib/libQtMaemo5.prl: +/usr/lib/libQtDBus.prl: +/usr/lib/libQtXml.prl: +/usr/lib/libQtCore.prl: +/usr/lib/libQtGui.prl: +qmake: FORCE + @$(QMAKE) -unix -o Makefile confmgr.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/confmgr1.0.0 || $(MKDIR) .tmp/confmgr1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/confmgr1.0.0/ && $(COPY_FILE) --parents mainwindow.h xmlutil.h profile.h config.h addprofile.h addstep.h dbusutility.h confmanager.h .tmp/confmgr1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp xmlutil.cpp profile.cpp config.cpp addprofile.cpp addstep.cpp dbusutility.cpp confmanager.cpp .tmp/confmgr1.0.0/ && $(COPY_FILE) --parents mainwindow.ui addprofile.ui addstep.ui .tmp/confmgr1.0.0/ && (cd `dirname .tmp/confmgr1.0.0` && $(TAR) confmgr1.0.0.tar confmgr1.0.0 && $(COMPRESS) confmgr1.0.0.tar) && $(MOVE) `dirname .tmp/confmgr1.0.0`/confmgr1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/confmgr1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_mainwindow.cpp moc_xmlutil.cpp moc_profile.cpp moc_config.cpp moc_addprofile.cpp moc_addstep.cpp moc_confmanager.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_mainwindow.cpp moc_xmlutil.cpp moc_profile.cpp moc_config.cpp moc_addprofile.cpp moc_addstep.cpp moc_confmanager.cpp +moc_mainwindow.cpp: config.h \ + profile.h \ + addprofile.h \ + addstep.h \ + confmanager.h \ + dbusutility.h \ + mainwindow.h + /usr/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp + +moc_xmlutil.cpp: profile.h \ + xmlutil.h + /usr/bin/moc $(DEFINES) $(INCPATH) xmlutil.h -o moc_xmlutil.cpp + +moc_profile.cpp: profile.h + /usr/bin/moc $(DEFINES) $(INCPATH) profile.h -o moc_profile.cpp + +moc_config.cpp: profile.h \ + config.h + /usr/bin/moc $(DEFINES) $(INCPATH) config.h -o moc_config.cpp + +moc_addprofile.cpp: addstep.h \ + profile.h \ + addprofile.h + /usr/bin/moc $(DEFINES) $(INCPATH) addprofile.h -o moc_addprofile.cpp + +moc_addstep.cpp: profile.h \ + addstep.h + /usr/bin/moc $(DEFINES) $(INCPATH) addstep.h -o moc_addstep.cpp + +moc_confmanager.cpp: profile.h \ + dbusutility.h \ + confmanager.h + /usr/bin/moc $(DEFINES) $(INCPATH) confmanager.h -o moc_confmanager.cpp + +compiler_dbus_interface_source_make_all: +compiler_dbus_interface_source_clean: +compiler_dbus_adaptor_source_make_all: +compiler_dbus_adaptor_source_clean: +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_dbus_interface_header_make_all: +compiler_dbus_interface_header_clean: +compiler_dbus_interface_moc_make_all: +compiler_dbus_interface_moc_clean: +compiler_dbus_adaptor_header_make_all: +compiler_dbus_adaptor_header_clean: +compiler_dbus_adaptor_moc_make_all: +compiler_dbus_adaptor_moc_clean: +compiler_uic_make_all: ui_mainwindow.h ui_addprofile.h ui_addstep.h +compiler_uic_clean: + -$(DEL_FILE) ui_mainwindow.h ui_addprofile.h ui_addstep.h +ui_mainwindow.h: mainwindow.ui + /usr/bin/uic mainwindow.ui -o ui_mainwindow.h + +ui_addprofile.h: addprofile.ui + /usr/bin/uic addprofile.ui -o ui_addprofile.h + +ui_addstep.h: addstep.ui + /usr/bin/uic addstep.ui -o ui_addstep.h + +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean compiler_uic_clean + +####### Compile + +main.o: main.cpp mainwindow.h \ + config.h \ + profile.h \ + addprofile.h \ + addstep.h \ + confmanager.h \ + dbusutility.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp + +mainwindow.o: mainwindow.cpp mainwindow.h \ + config.h \ + profile.h \ + addprofile.h \ + addstep.h \ + confmanager.h \ + dbusutility.h \ + ui_mainwindow.h \ + xmlutil.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp + +xmlutil.o: xmlutil.cpp xmlutil.h \ + profile.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o xmlutil.o xmlutil.cpp + +profile.o: profile.cpp profile.h \ + xmlutil.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o profile.o profile.cpp + +config.o: config.cpp config.h \ + profile.h \ + xmlutil.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o config.o config.cpp + +addprofile.o: addprofile.cpp addprofile.h \ + addstep.h \ + profile.h \ + ui_addprofile.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o addprofile.o addprofile.cpp + +addstep.o: addstep.cpp addstep.h \ + profile.h \ + ui_addstep.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o addstep.o addstep.cpp + +dbusutility.o: dbusutility.cpp dbusutility.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o dbusutility.o dbusutility.cpp + +confmanager.o: confmanager.cpp confmanager.h \ + profile.h \ + dbusutility.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o confmanager.o confmanager.cpp + +moc_mainwindow.o: moc_mainwindow.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp + +moc_xmlutil.o: moc_xmlutil.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_xmlutil.o moc_xmlutil.cpp + +moc_profile.o: moc_profile.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_profile.o moc_profile.cpp + +moc_config.o: moc_config.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_config.o moc_config.cpp + +moc_addprofile.o: moc_addprofile.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_addprofile.o moc_addprofile.cpp + +moc_addstep.o: moc_addstep.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_addstep.o moc_addstep.cpp + +moc_confmanager.o: moc_confmanager.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_confmanager.o moc_confmanager.cpp + +####### Install + +install: FORCE + +uninstall: FORCE + +FORCE: +