X-Git-Url: http://git.maemo.org/git/?p=bootcreen;a=blobdiff_plain;f=Makefile;h=b8ad2ae4f39dbd4ab8081f2bf36e88538bc1ae93;hp=13153966b3c4c278f282c23ad95af8f8d899925d;hb=HEAD;hpb=3ec4cdf81a3d1bef3206718b710096fbf7036175 diff --git a/Makefile b/Makefile index 1315396..b8ad2ae 100644 --- a/Makefile +++ b/Makefile @@ -1,104 +1,77 @@ ############################################################################# # Makefile for building: bootscreen -# Generated by qmake (2.01a) (Qt 4.6.2) on: Sun Feb 28 16:52:17 2010 +# Generated by qmake (2.01a) (Qt 4.6.2) on: Thu Mar 11 01:21:47 2010 # Project: bootscreen.pro -# Template: app -# Command: /opt/qt4-maemo5/bin/qmake-qt4 -unix -o Makefile bootscreen.pro +# Template: subdirs +# Command: /usr/bin/qmake -unix -o Makefile bootscreen.pro ############################################################################# -####### Compiler, tools and options - -CC = gcc -CXX = g++ -DEFINES = -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG -DQT_MAEMO5_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -CFLAGS = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES) -CXXFLAGS = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES) -INCPATH = -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux-g++-maemo5 -I. -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtCore -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtGui -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include/QtMaemo5 -I/targets/FREMANTLE_ARMEL/opt/qt4-maemo5/include -I. -LINK = g++ -LFLAGS = -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu -Wl,-rpath,/opt/qt4-maemo5/lib -LIBS = $(SUBLIBS) -L/opt/qt4-maemo5/lib -lQtMaemo5 -L/opt/qt4-maemo5/lib -L/usr/X11R6/lib -lQtDBus -lQtXml -lQtGui -lQtCore -lpthread -AR = ar cqs -RANLIB = -QMAKE = /opt/qt4-maemo5/bin/qmake-qt4 -TAR = tar -cf -COMPRESS = gzip -9f +first: make_default +MAKEFILE = Makefile +QMAKE = /usr/bin/qmake +DEL_FILE = rm -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p 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 +INSTALL_DIR = $(COPY_DIR) 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 = bootscreen.cpp \ - main.cpp \ - bootscreenR.cpp moc_bootscreen.cpp -OBJECTS = bootscreen.o \ - main.o \ - bootscreenR.o \ - moc_bootscreen.o -DIST = /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/qconfig.pri \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_functions.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt_config.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/exclusive_builds.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_pre.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/release.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/default_post.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/warn_on.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/qt.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/unix/thread.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/moc.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/resources.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/uic.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf \ - bootscreen.pro -QMAKE_TARGET = bootscreen -DESTDIR = -TARGET = bootscreen - -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): $(OBJECTS) - $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) +SUBTARGETS = \ + sub-src \ + sub-plugin + +src/$(MAKEFILE): + @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ + cd src/ && $(QMAKE) /home/valerio/bootcreen/src/src.pro -unix -o $(MAKEFILE) +sub-src-qmake_all: FORCE + @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ + cd src/ && $(QMAKE) /home/valerio/bootcreen/src/src.pro -unix -o $(MAKEFILE) +sub-src: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) +sub-src-make_default: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) +sub-src-make_first: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) first +sub-src-all: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) all +sub-src-clean: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) clean +sub-src-distclean: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) distclean +sub-src-install_subtargets: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) install +sub-src-uninstall_subtargets: src/$(MAKEFILE) FORCE + cd src/ && $(MAKE) -f $(MAKEFILE) uninstall +plugin/$(MAKEFILE): + @$(CHK_DIR_EXISTS) plugin/ || $(MKDIR) plugin/ + cd plugin/ && $(QMAKE) /home/valerio/bootcreen/plugin/plugin.pro -unix -o $(MAKEFILE) +sub-plugin-qmake_all: FORCE + @$(CHK_DIR_EXISTS) plugin/ || $(MKDIR) plugin/ + cd plugin/ && $(QMAKE) /home/valerio/bootcreen/plugin/plugin.pro -unix -o $(MAKEFILE) +sub-plugin: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) +sub-plugin-make_default: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) +sub-plugin-make_first: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) first +sub-plugin-all: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) all +sub-plugin-clean: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) clean +sub-plugin-distclean: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) distclean +sub-plugin-install_subtargets: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) install +sub-plugin-uninstall_subtargets: plugin/$(MAKEFILE) FORCE + cd plugin/ && $(MAKE) -f $(MAKEFILE) uninstall Makefile: bootscreen.pro /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux-g++-maemo5/qmake.conf /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf \ /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf \ @@ -117,12 +90,7 @@ Makefile: bootscreen.pro /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux- /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/uic.prf \ /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf \ /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf \ - /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf \ - /opt/qt4-maemo5/lib/libQtMaemo5.prl \ - /opt/qt4-maemo5/lib/libQtDBus.prl \ - /opt/qt4-maemo5/lib/libQtXml.prl \ - /opt/qt4-maemo5/lib/libQtCore.prl \ - /opt/qt4-maemo5/lib/libQtGui.prl + /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf $(QMAKE) -unix -o Makefile bootscreen.pro /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/unix.conf: /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/common/linux.conf: @@ -142,95 +110,26 @@ Makefile: bootscreen.pro /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/linux- /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/yacc.prf: /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/lex.prf: /targets/FREMANTLE_ARMEL/opt/qt4-maemo5/mkspecs/features/include_source_dir.prf: -/opt/qt4-maemo5/lib/libQtMaemo5.prl: -/opt/qt4-maemo5/lib/libQtDBus.prl: -/opt/qt4-maemo5/lib/libQtXml.prl: -/opt/qt4-maemo5/lib/libQtCore.prl: -/opt/qt4-maemo5/lib/libQtGui.prl: -qmake: FORCE +qmake: qmake_all FORCE @$(QMAKE) -unix -o Makefile bootscreen.pro -dist: - @$(CHK_DIR_EXISTS) .tmp/bootscreen1.0.0 || $(MKDIR) .tmp/bootscreen1.0.0 - $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/bootscreen1.0.0/ && $(COPY_FILE) --parents bootscreen.h bootscreenR.h .tmp/bootscreen1.0.0/ && $(COPY_FILE) --parents bootscreen.cpp main.cpp bootscreenR.cpp .tmp/bootscreen1.0.0/ && (cd `dirname .tmp/bootscreen1.0.0` && $(TAR) bootscreen1.0.0.tar bootscreen1.0.0 && $(COMPRESS) bootscreen1.0.0.tar) && $(MOVE) `dirname .tmp/bootscreen1.0.0`/bootscreen1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/bootscreen1.0.0 - - -clean:compiler_clean - -$(DEL_FILE) $(OBJECTS) - -$(DEL_FILE) *~ core *.core - +qmake_all: sub-src-qmake_all sub-plugin-qmake_all FORCE -####### Sub-libraries - -distclean: clean - -$(DEL_FILE) $(TARGET) +make_default: sub-src-make_default sub-plugin-make_default FORCE +make_first: sub-src-make_first sub-plugin-make_first FORCE +all: sub-src-all sub-plugin-all FORCE +clean: sub-src-clean sub-plugin-clean FORCE +distclean: sub-src-distclean sub-plugin-distclean FORCE -$(DEL_FILE) Makefile - - -install: $(TARGET) install_app install_dsk install_sd install_evd install_scr - -install_app: - $(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)/opt/bootscreen/$(QMAKE_TARGET) - -install_dsk: - $(INSTALL_FILE) data/$(QMAKE_TARGET).desktop $(DESTDIR)/usr/share/applications/hildon/$(QMAKE_TARGET).desktop - -install_sd: - $(INSTALL_FILE) data/$(QMAKE_TARGET).sudoers $(DESTDIR)/etc/sudoers.d/$(QMAKE_TARGET).sudoers - -install_evd: - $(INSTALL_FILE) data/$(QMAKE_TARGET) $(DESTDIR)/etc/event.d/$(QMAKE_TARGET) - -install_scr: - $(INSTALL_FILE) script/$(QMAKE_TARGET) $(DESTDIR)/usr/bin/$(QMAKE_TARGET) +install_subtargets: sub-src-install_subtargets sub-plugin-install_subtargets FORCE +uninstall_subtargets: sub-src-uninstall_subtargets sub-plugin-uninstall_subtargets FORCE mocclean: compiler_moc_header_clean compiler_moc_source_clean mocables: compiler_moc_header_make_all compiler_moc_source_make_all +install: install_subtargets FORCE -compiler_moc_header_make_all: moc_bootscreen.cpp -compiler_moc_header_clean: - -$(DEL_FILE) moc_bootscreen.cpp -moc_bootscreen.cpp: bootscreen.h - /opt/qt4-maemo5/bin/moc $(DEFINES) $(INCPATH) bootscreen.h -o moc_bootscreen.cpp - -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_uic_make_all: -compiler_uic_clean: -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 - -####### Compile - -bootscreen.o: bootscreen.cpp bootscreen.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o bootscreen.o bootscreen.cpp - -main.o: main.cpp bootscreen.h \ - bootscreenR.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp - -bootscreenR.o: bootscreenR.cpp bootscreenR.h - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o bootscreenR.o bootscreenR.cpp - -moc_bootscreen.o: moc_bootscreen.cpp - $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_bootscreen.o moc_bootscreen.cpp - -####### Install - -install: FORCE - -uninstall: FORCE +uninstall: uninstall_subtargets FORCE FORCE: