############################################################################# ####### Compiler, tools and options CXX = $(SYSCONF_CXX) $(QT_CXX_MT) CXXFLAGS= $(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) $(SYSCONF_CXXFLAGS_LIB) -DQCONFIG=\"qpe\" CC = $(SYSCONF_CC) $(QT_C_MT) CFLAGS = $(SYSCONF_CFLAGS) $(SYSCONF_CFLAGS_LIB) -DQCONFIG=\"qpe\" INCPATH = -I$(QPEDIR)/include -I.. LFLAGS = $(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) LIBS = $(SUBLIBS) -lqpe -lm $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS_QTAPP) MOC = $(SYSCONF_MOC) UIC = $(SYSCONF_UIC) ####### Target DESTDIR = ../../plugins/codecs/ VER_MAJ = 1 VER_MIN = 0 VER_PATCH = 0 TARGET = madplugin TARGET1 = lib$(TARGET).so.$(VER_MAJ) ####### Files HEADERS = libmad_version.h \ fixed.h \ bit.h \ timer.h \ stream.h \ frame.h \ synth.h \ decoder.h \ layer12.h \ layer3.h \ huffman.h \ libmad_global.h \ mad.h \ libmadplugin.h \ libmadpluginimpl.h SOURCES = version.c \ fixed.c \ bit.c \ timer.c \ stream.c \ frame.c \ synth.c \ decoder.c \ layer12.c \ layer3.c \ huffman.c \ libmadplugin.cpp \ libmadpluginimpl.cpp OBJECTS = version.o \ fixed.o \ bit.o \ timer.o \ stream.o \ frame.o \ synth.o \ decoder.o \ layer12.o \ layer3.o \ huffman.o \ libmadplugin.o \ libmadpluginimpl.o INTERFACES = UICDECLS = UICIMPLS = SRCMOC = OBJMOC = ####### Implicit rules .SUFFIXES: .cpp .cxx .cc .C .c .cpp.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cxx.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .cc.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .C.o: $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< .c.o: $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< ####### Build rules all: $(DESTDIR)$(SYSCONF_LINK_TARGET) $(DESTDIR)$(SYSCONF_LINK_TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) $(SYSCONF_LINK_LIB) moc: $(SRCMOC) tmake: tmake libmad.pro clean: -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) -rm -f *~ core -rm -f allmoc.cpp ####### Extension Modules listpromodules: @echo listallmodules: @echo listaddonpromodules: @echo listaddonentmodules: @echo REQUIRES= ####### Sub-libraries ###### Combined headers ####### Compile version.o: version.c \ libmad_global.h \ libmad_version.h fixed.o: fixed.c \ libmad_global.h \ fixed.h bit.o: bit.c \ libmad_global.h \ bit.h timer.o: timer.c \ libmad_global.h \ timer.h stream.o: stream.c \ libmad_global.h \ bit.h \ stream.h frame.o: frame.c \ libmad_global.h \ bit.h \ stream.h \ frame.h \ fixed.h \ timer.h \ layer12.h \ layer3.h synth.o: synth.c \ libmad_global.h \ fixed.h \ frame.h \ timer.h \ stream.h \ bit.h \ synth.h \ D.dat decoder.o: decoder.c \ libmad_global.h \ stream.h \ bit.h \ frame.h \ fixed.h \ timer.h \ synth.h \ decoder.h layer12.o: layer12.c \ libmad_global.h \ fixed.h \ bit.h \ stream.h \ frame.h \ timer.h \ layer12.h \ sf_table.dat \ qc_table.dat layer3.o: layer3.c \ libmad_global.h \ fixed.h \ bit.h \ stream.h \ frame.h \ timer.h \ huffman.h \ layer3.h \ rq_table.dat \ imdct_s.dat huffman.o: huffman.c \ libmad_global.h \ huffman.h libmadplugin.o: libmadplugin.cpp \ libmadplugin.h \ ../mediaplayerplugininterface.h \ mad.h libmadpluginimpl.o: libmadpluginimpl.cpp \ libmadplugin.h \ ../mediaplayerplugininterface.h \ libmadpluginimpl.h \ ../mediaplayerplugininterface.h