TARGET = QtMultimedia.so
OFILES = sipQtMultimediacmodule.o sipQtMultimediaQList0100QAudioDeviceInfo.o sipQtMultimediaQVideoSurfaceFormat.o sipQtMultimediaQList0100QVideoFramePixelFormat.o sipQtMultimediaQVideoFrame.o sipQtMultimediaQAudioOutput.o sipQtMultimediaQAudioInput.o sipQtMultimediaQList0100QAudioFormatSampleType.o sipQtMultimediaQList0100QAudioFormatEndian.o sipQtMultimediaQAudioFormat.o sipQtMultimediaQAudioDeviceInfo.o sipQtMultimediaQAudio.o sipQtMultimediaQAbstractVideoSurface.o sipQtMultimediaQAbstractVideoBuffer.o
HFILES = sipAPIQtMultimedia.h 

CC = gcc
CXX = g++
LINK = g++
CPPFLAGS = -DNDEBUG -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_DEBUG -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/usr/include/python2.5 -I/opt/qt4-maemo5/mkspecs/default -I/opt/qt4-maemo5/include/QtMultimedia -I/opt/qt4-maemo5/include/QtGui -I/opt/qt4-maemo5/include/QtCore -I/opt/qt4-maemo5/include -I/usr/X11R6/include
CFLAGS = -pipe -fPIC -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT
CXXFLAGS = -pipe -fPIC -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT
LFLAGS = -Wl,-rpath-link,/usr/lib -shared -Wl,-O1 -Wl,--hash-style=gnu -Wl,--version-script=QtMultimedia.exp
LIBS = -L/opt/qt4-maemo5/lib -L/usr/X11R6/lib -lQtMultimedia -L/opt/qt4-maemo5/lib -lQtGui -L/opt/qt4-maemo5/lib -L/usr/X11R6/lib -lQtCore -lpthread -lQtGui -L/opt/qt4-maemo5/lib -L/usr/X11R6/lib -lQtCore -L/opt/qt4-maemo5/lib -lpthread -lQtCore -L/opt/qt4-maemo5/lib -lpthread -lXext -lX11 -lm -lpthread
MOC = /opt/qt4-maemo5/bin/moc
.SUFFIXES: .c .o .cpp .cc .cxx .C


.cpp.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.cc.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.cxx.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.C.o:
	$(CXX) -c $(CXXFLAGS) $(CPPFLAGS) -o $@ $<

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<

all: $(TARGET)

$(OFILES): $(HFILES)

$(TARGET): $(OFILES)
	@echo '{ global: initQtMultimedia; local: *; };' > QtMultimedia.exp
	$(LINK) $(LFLAGS) -o $(TARGET) $(OFILES) $(LIBS)

install: $(TARGET)
	@test -d $(DESTDIR)/usr/lib/python2.5/site-packages/PyQt4 || mkdir -p $(DESTDIR)/usr/lib/python2.5/site-packages/PyQt4
	cp -f $(TARGET) $(DESTDIR)/usr/lib/python2.5/site-packages/PyQt4/$(TARGET)
	strip $(DESTDIR)/usr/lib/python2.5/site-packages/PyQt4/$(TARGET)
	@test -d $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia || mkdir -p $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qvideosurfaceformat.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qvideosurfaceformat.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qvideoframe.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qvideoframe.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/QtMultimediamod.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/QtMultimediamod.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qabstractvideosurface.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qabstractvideosurface.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qabstractvideobuffer.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qabstractvideobuffer.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qaudio.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qaudio.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qaudiodeviceinfo.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qaudiodeviceinfo.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qaudiooutput.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qaudiooutput.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qaudioformat.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qaudioformat.sip
	cp -f /home/maemo/python-qt4-experimental-4.7.3/sip/QtMultimedia/qaudioinput.sip $(DESTDIR)/usr/share/sip/PyQt4/QtMultimedia/qaudioinput.sip

clean:
	-rm -f $(TARGET)
	-rm -f sipQtMultimediacmodule.o
	-rm -f sipQtMultimediaQList0100QAudioDeviceInfo.o
	-rm -f sipQtMultimediaQVideoSurfaceFormat.o
	-rm -f sipQtMultimediaQList0100QVideoFramePixelFormat.o
	-rm -f sipQtMultimediaQVideoFrame.o
	-rm -f sipQtMultimediaQAudioOutput.o
	-rm -f sipQtMultimediaQAudioInput.o
	-rm -f sipQtMultimediaQList0100QAudioFormatSampleType.o
	-rm -f sipQtMultimediaQList0100QAudioFormatEndian.o
	-rm -f sipQtMultimediaQAudioFormat.o
	-rm -f sipQtMultimediaQAudioDeviceInfo.o
	-rm -f sipQtMultimediaQAudio.o
	-rm -f sipQtMultimediaQAbstractVideoSurface.o
	-rm -f sipQtMultimediaQAbstractVideoBuffer.o
	-rm -f QtMultimedia.exp
