From d187e8be0b5f33073a2cf6f7f98b42290ac60e64 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 24 Mar 2005 12:02:43 +0000 Subject: Fixed some time scews! --- src/Makefile.am | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/Makefile.am diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 0000000..40e37ee --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,53 @@ +#frekin' wierd +## TODO: Move ffmpeg, libxml and libsdl into configure.in + +AM_CXXFLAGS := $(CXXFLAGS) $(EXTRA_CXXFLAGS) -I../include $(QT_CXXFLAGS) \ + -I/usr/include/ffmpeg +# -I/usr/include/SDL + +bin_PROGRAMS = miav + +miav_SOURCES = $(shell if [ $QT_CXXFLAGS ] ; then ../tools/MocList cc; fi ) \ + aboutwindow.cc \ + camera.cc \ + decoder.cc \ + dvframe.cc \ + encoder.cc \ + ffframe.cc \ + mainwindow.cc \ + cprquerydialog.cc \ + miav.cc \ + network.cc \ + player.cc \ + socket.cc \ + thread.cc \ + util.cc \ + videowidget.cc \ + messagebox.cc \ + miav_config.cc \ + mov_encoder.cc \ + img_encoder.cc \ + server.cc + +miav_LDADD := $(shell if [ $QT_CXXFLAGS ] ; then ../tools/MocList o; fi ) \ + -lavcodec -lavformat +# -lSDL + +miav_MOC = $(shell if [ $QT_CXXFLAGS ] ; then ../tools/MocList cc; fi ) + +BUILT_SOURCES = $(miav_MOC) + +CLEANFILES = $(BUILT_SOURCES) + +%.moc.cc: %.h + $(MOC) -o $@ $< + +%.h: %.ui + $(UIC) -o $@ $< + +%.cc: %.ui + $(UIC) -o $@ -impl $*.h $< + +# command for creating .res file from .rc on Win32 +%.res: %.rc + rc $< -- cgit v1.2.3