Diff of /branches/win32-mingw/Makefile.cc-mingw [000000] .. [r12273] Maximize Restore

  Switch to side-by-side view

--- a
+++ b/branches/win32-mingw/Makefile.cc-mingw
@@ -0,0 +1,204 @@
+
+VERSION		:= 10.06
+CODENAME	:= Betty Prior
+
+PREFIX		:= /usr/local
+
+CXX		:= i586-mingw32msvc-c++ -I../include -I../include/pthread -L../lib 
+LD		:= i586-mingw32msvc-c++ -I../include -I../include/pthread -L../lib
+INSTALL         := /usr/bin/install -c
+MKDIR_P         := /bin/mkdir -p
+PERL		:= /usr/bin/perl
+XARGS		:= /usr/bin/xargs
+MAKEDEPEND	:= /usr/bin/makedepend
+SHA1SUM		:= /usr/bin/sha1sum
+CUT		:= /usr/bin/cut
+
+MOC		:= /work/win32-builds/Qt/4.5.1/bin/moc.exe
+UIC		:= /work/win32-builds/Qt/4.5.1/bin/uic.exe
+RCC		:= /work/win32-builds/Qt/4.5.1/bin/rcc.exe
+LUPDATE		:= /work/win32-builds/Qt/4.5.1/bin/lupdate.exe
+LRELEASE	:= /work/win32-builds/Qt/4.5.1/bin/lrelease.exe
+
+CXXFLAGS	:= -g0 -O2 -Wall -pipe -DNDEBUG -DBUILD_RELEASE -DNO_TIMING \
+		    -DHAVE_LIBSNDFILE \
+		   -I/work/win32-builds/Qt/4.5.1/include/Qt3Support -I/work/win32-builds/Qt/4.5.1/include/QtGui -I/work/win32-builds/Qt/4.5.1/include/QtXml -I/work/win32-builds/Qt/4.5.1/include/QtNetwork -I/work/win32-builds/Qt/4.5.1/include/QtCore -I/work/win32-builds/Qt/4.5.1/include -DQT3_SUPPORT \
+		     \
+		     \
+		     \
+		   -Isrc/sound/dssi-compatibility \
+		   -DLITTLE_ENDIAN=1 \
+		   -D'VERSION="$(VERSION)"' \
+		   -D'CODENAME="$(CODENAME)"' \
+		   -DUNSTABLE=1 \
+		   -Isrc
+
+RCC_CXXFLAGS	:= -I/work/win32-builds/Qt/4.5.1/include/Qt3Support -I/work/win32-builds/Qt/4.5.1/include/QtGui -I/work/win32-builds/Qt/4.5.1/include/QtXml -I/work/win32-builds/Qt/4.5.1/include/QtNetwork -I/work/win32-builds/Qt/4.5.1/include/QtCore -I/work/win32-builds/Qt/4.5.1/include -DQT3_SUPPORT \
+                   -DLITTLE_ENDIAN=1 \
+                   -g0 -O0
+
+RCCFLAGS	:= -threshold 0 -compress 9
+
+MOCFLAGS	:=  -DHAVE_LIBSNDFILE -DLITTLE_ENDIAN=1
+
+LIBS		:= -L/work/win32-builds/Qt/4.5.1/bin -lQt3Support4 -lQtGui4 -lQtXml4 -lQtNetwork4 -lQtCore4 \
+		   -lfftw3f -lm   \
+		   -lsamplerate   \
+		   -lsndfile -logg -lvorbis -lvorbisenc -lFLAC -logg  \
+		   -lpthreadGC2 -lws2_32
+
+INSTBINDIR	:= $(DESTDIR)$(PREFIX)/bin
+INSTMIME16DIR	:= $(DESTDIR)$(PREFIX)/share/icons/hicolor/16x16/mimetypes
+INSTMIME32DIR	:= $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/mimetypes
+INSTMIME64DIR	:= $(DESTDIR)$(PREFIX)/share/icons/hicolor/64x64/mimetypes
+INSTMIMEDIR	:= $(DESTDIR)$(PREFIX)/share/mime
+INSTMIMEXMLDIR	:= $(INSTMIMEDIR)/packages
+INSTDESKTOPDIR	:= $(DESTDIR)$(PREFIX)/share/applications
+INSTICONDIR	:= $(DESTDIR)$(PREFIX)/share/icons/hicolor/32x32/apps
+
+RESOURCES	:= $(wildcard data/*.qrc data/*/*.qrc src/*.qrc src/*/*.qrc src/*/*/*.qrc src/*/*/*/*.qrc)
+QRCSOURCES	:= $(patsubst %.qrc,%.cpp,$(RESOURCES))
+HEADERS		:= $(filter-out templates/template.h, $(wildcard src/*.h src/*/*.h src/*/*/*.h src/*/*/*/*.h src/*/*/*/*/*.h))
+SOURCES		:= $(QRCSOURCES) $(filter-out templates/template.cpp, $(wildcard src/*.cpp src/*/*.cpp src/*/*/*.cpp src/*/*/*/*.cpp src/*/*/*/*/*.cpp))
+KEYSOURCES	:= $(filter-out data/data.cpp, $(SOURCES))
+QHEADERS	:= $(shell fgrep -l Q_OBJECT $(HEADERS))
+OBJECTS		:= $(patsubst %.cpp,%.o,$(SOURCES))
+QSOURCES	:= $(patsubst %.h,%.moc,$(QHEADERS))
+UI		:= $(wildcard src/*/*/*.ui)
+UIHEADERS	:= $(patsubst %.ui,%.h,$(UI))
+RCS		:= $(wildcard data/rc/*.rc)
+TRANSLATIONS	:= $(filter-out data/locale/rosegarden.ts, $(wildcard data/locale/*.ts))
+TRANSLATIONSQM	:= $(filter-out data/locale/rosegarden.qm, $(shell echo $(TRANSLATIONS) | sed "s/ts/qm/g"))
+
+BUILDKEY	:= $(shell cat $(KEYSOURCES) | $(SHA1SUM) | $(CUT) -c1-10)
+CXXFLAGS	:= $(CXXFLAGS) -D'BUILDKEY="$(BUILDKEY)"'
+
+DATA_FILES	:= $(shell scripts/extract-data-files)
+
+all:	$(QSOURCES) $(UIHEADERS) $(UISOURCES) $(UIMOC) $(OBJECTS) $(LIBRARIES) $(EXECUTABLES) rosegarden
+
+rosegarden:	$(OBJECTS)
+		$(CXX) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+%.h: %.ui
+	$(UIC) $< > $@
+
+%.cpp: %.ui %.h
+	$(UIC) -pch $(patsubst %.cpp,%.moc,$@) -impl $(patsubst %.cpp,%.h,$@) $(patsubst %.cpp,%.ui,$@) > $@
+
+%.moc: %.h
+	$(MOC) $(MOCFLAGS) $< -o $@
+
+%.cpp: %.qrc
+	$(RCC) $(RCCFLAGS) $< -o $@
+
+data/data.o: data/data.cpp
+	$(CXX) -c $(RCC_CXXFLAGS) $< -o $@
+
+data/data.cpp: $(DATA_FILES)
+
+%.o: %.cpp
+	$(CXX) -c $(CXXFLAGS) $< -o $@
+
+%.qm: %.ts
+	$(LRELEASE) $(@:.qm=.ts)
+
+instrument-ts:
+	$(PERL) scripts/extract_instrument_tr_strings.pl data/presets/presets.xml > data/InstrumentStrings.cpp
+
+menu-ts:
+	$(PERL) scripts/extract_menu_tr_strings.pl $(RCS) > data/QMenuStrings.cpp
+
+autoload-ts:
+	gunzip -c data/autoload/autoload.rg > data/autoload/autoload.xml # (couldn't make macro $(GUNZIP_C) work)
+	$(PERL) scripts/extract_autoload_tr_strings.pl data/autoload/autoload.xml > data/AutoloadStrings.cpp
+	rm -f data/autoload/autoload.xml
+
+ts:	menu-ts instrument-ts autoload-ts
+	$(MKDIR_P) data/locale
+	$(LUPDATE) $(UI) $(HEADERS) $(SOURCES) data/QMenuStrings.cpp data/InstrumentStrings.cpp data/AutoloadStrings.cpp -ts data/locale/rosegarden.ts $(TRANSLATIONS)
+	@scripts/ts-stats
+
+ts-noobsolete:	menu-ts instrument-ts
+	$(MKDIR_P) data/locale
+	$(LUPDATE) -noobsolete $(HEADERS) $(SOURCES) data/QMenuStrings.cpp data/InstrumentStrings.cpp data/AutoloadStrings.cpp -ts data/locale/rosegarden.ts $(TRANSLATIONS)
+	@scripts/ts-stats
+
+locale:	$(TRANSLATIONSQM)
+
+clean:
+	rm -f $(QSOURCES) $(UIHEADERS) $(UISOURCES) $(UIMOC) $(OBJECTS) $(LIBRARIES) $(EXECUTABLES) data/data.o data/data.cpp
+
+distclean:	clean
+	rm -rf autom4te.cache/
+	rm -f aclocal.m4
+	rm -f config.log config.status configure
+	rm -f dependencies dependencies.bak
+	rm -f data/InstrumentStrings.cpp data/AutoloadStrings.cpp data/QMenuStrings.cpp data/data.cpp
+	rm -f src/gui/dialogs/RosegardenTransportUi.h
+	rm -f src/gui/studio/DeviceManagerDialogUi.h
+	rm -f Makefile
+
+showfiles:
+	echo $(QSOURCES) $(DATA_FILES)
+
+dependencies: $(KEYSOURCES) $(HEADERS) Makefile
+	@echo Rebuilding dependencies file...
+	@rm -f $@ 
+	@touch $@
+	@echo $(KEYSOURCES) | $(XARGS) -n 100 $(MAKEDEPEND) -f$@ -a -Y -Isrc >/dev/null 2>&1
+
+qrc:	locale
+	@bash ./scripts/rebuild-qrc
+
+install:
+	$(MKDIR_P) -m 755 $(INSTBINDIR)
+	$(INSTALL) -m 755 rosegarden $(INSTBINDIR)/rosegarden
+	$(MKDIR_P) -m 755 $(INSTMIME16DIR)
+	$(MKDIR_P) -m 755 $(INSTMIME32DIR)
+	$(MKDIR_P) -m 755 $(INSTMIME64DIR)
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi16-rosegarden.png $(INSTMIME16DIR)/audio-x-rosegarden-composition.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi32-rosegarden.png $(INSTMIME32DIR)/audio-x-rosegarden-composition.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi64-rosegarden.png $(INSTMIME64DIR)/audio-x-rosegarden-composition.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi16-rosegarden-rgd.png $(INSTMIME16DIR)/audio-x-rosegarden-device.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi32-rosegarden-rgd.png $(INSTMIME32DIR)/audio-x-rosegarden-device.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi64-rosegarden-rgd.png $(INSTMIME64DIR)/audio-x-rosegarden-device.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi16-rosegarden-rgp.png $(INSTMIME16DIR)/audio-x-rosegarden-project.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi32-rosegarden-rgp.png $(INSTMIME32DIR)/audio-x-rosegarden-project.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi64-rosegarden-rgp.png $(INSTMIME64DIR)/audio-x-rosegarden-project.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi16-rosegarden-rgt.png $(INSTMIME16DIR)/audio-x-rosegarden-template.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi32-rosegarden-rgt.png $(INSTMIME32DIR)/audio-x-rosegarden-template.png
+	$(INSTALL) -m 644 data/pixmaps/icons/mm-mime-hi64-rosegarden-rgt.png $(INSTMIME64DIR)/audio-x-rosegarden-template.png
+	$(MKDIR_P) -m 755 $(INSTMIMEXMLDIR)
+	$(INSTALL) -m 644 data/mime/rosegarden.xml $(INSTMIMEXMLDIR)
+	$(MKDIR_P) -m 755 $(INSTDESKTOPDIR)
+	$(INSTALL) -m 644 data/desktop/rosegarden.desktop $(INSTDESKTOPDIR)
+	$(MKDIR_P) -m 755 $(INSTICONDIR)
+	$(INSTALL) -m 644 data/pixmaps/icons/rg-rwb-rose3-32x32.png $(INSTICONDIR)/rosegarden.png
+
+uninstall:
+	rm -f $(INSTBINDIR)/rosegarden
+	rm -f $(INSTMIME16DIR)/audio-x-rosegarden*
+	rm -f $(INSTMIME32DIR)/audio-x-rosegarden*
+	rm -f $(INSTMIME64DIR)/audio-x-rosegarden*
+	rm -f $(INSTMIMEXMLDIR)/rosegarden.xml
+	rm -f $(INSTDESKTOPDIR)/rosegarden.desktop
+	rm -f $(INSTICONDIR)/rosegarden.png
+	rmdir -p --ignore-fail-on-non-empty $(INSTMIME16DIR)
+	rmdir -p --ignore-fail-on-non-empty $(INSTMIME32DIR)
+	rmdir -p --ignore-fail-on-non-empty $(INSTMIME64DIR)
+	rmdir -p --ignore-fail-on-non-empty $(INSTMIMEXMLDIR)
+	rmdir -p --ignore-fail-on-non-empty $(INSTICONDIR)
+
+Makefile:	Makefile.in configure configure.ac acinclude.m4
+	@echo "*** WARNING: One or more of Makefile.in, configure, configure.ac and/or"
+	@echo "             acinclude.m4 has been modified since the Makefile was generated;"
+	@echo "             consider running ./configure again"
+
+configure:	configure.ac acinclude.m4
+	sh ./bootstrap.sh
+
+.PHONY: autoload-ts instrument-ts menu-ts ts ts-noobsolete locale
+
+include dependencies
+