]> rtime.felk.cvut.cz Git - frescor/streamer.git/blobdiff - Makefile
Added closing of the FFmpeg output stream.
[frescor/streamer.git] / Makefile
index 57ae86b83fa6a79dcde42ec471c7845a782cc206..b22a35765d37ba44709f41e4182c62dbed0e43b7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,39 +1,14 @@
-FFSRC ?= $(FFDIR)
-CPPFLAGS= -I $(FFSRC)
-CFLAGS = -Wall
-CFLAGS += -Wdeclaration-after-statement
-CFLAGS += -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-CFLAGS += -Wno-pointer-sign 
-LDFLAGS= -L $(FFDIR)/libavutil -L $(FFDIR)/libavcodec -L $(FFDIR)/libavformat -L $(FFDIR)/libavdevice
-LDLIBS = -lavdevice -lavformat -lavcodec -lavutil
+# Generic directory or leaf node makefile for OCERA make framework
 
-LDLIBS += -lm -lz
-CFLAGS += -g
-
-OBJS = input.o codec.o output.o
+ifndef MAKERULES_DIR
+MAKERULES_DIR := $(shell ( old_pwd="" ;  while [ ! -e Makefile.rules ] ; do if [ "$$old_pwd" = `pwd`  ] ; then exit 1 ; else old_pwd=`pwd` ; cd -L .. 2>/dev/null ; fi ; done ; pwd ) )
+endif
 
-ifdef AQUOSA
-CPPFLAGS += -I$(AQUOSA)/include
-LDFLAGS += -L$(AQUOSA)/lib
-LDLIBS += -lqreslib -lqmgrlib -lrt
-OBJS += rt_qosmgr.o
+ifeq ($(MAKERULES_DIR),)
+all : default
+.DEFAULT::
+       @echo -e "\nThe Makefile.rules has not been found in this or partent directory\n"
 else
-OBJS += rt.o
+include $(MAKERULES_DIR)/Makefile.rules
 endif
 
-
-all: streamer
-
-streamer: streamer.o $(OBJS)
-
-clean:
-       rm -f *.o streamer *.d
-
-###################################
-%.d: %.c
-       $(CC) $(CPPFLAGS) -MM -MF $@ $<
-
-%.o: %.d
-
--include $(OBJS:.o=.d)
-