summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.am53
1 files changed, 53 insertions, 0 deletions
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 $<