## ## sydra ## ## sydra is a toolbox which allows you to set up multiple bidirectional ## Video/Audio streams from external locations. ## sydra has been written to be used for the Elevate Festival in Graz ## Austria in order to involve external locations to present themselves ## at the festival. ## ## ## Copyright (C) 2014 Christian Pointner ## ## This file is part of sydra. ## ## sydra is free software: you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation, either version 3 of the License, or ## any later version. ## ## sydra is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with sydra. If not, see . ## ## In addition, as a special exception, the copyright holders hereby ## grant permission for non-GPL-compatible GStreamer plugins to be used ## and distributed together with GStreamer and sydra. ## This permission goes above and beyond the permissions granted by the ## GPL license sydra is covered by. ## ifneq ($(MAKECMDGOALS),distclean) include include.mk endif EXECUTABLE_RTP := sydra-rtp EXECUTABLES := $(EXECUTABLE_RTP) C_OBJS_COMMON := log.o \ utils.o C_OBJS_RTP := $(C_OBJS_COMMON) \ options-rtp.o \ pipelines-rtp.o \ udp.o \ sydra-rtp.o C_SRCS_RTP := $(C_OBJS_RTP:%.o=%.c) C_SRCS := $(C_SRCS_RTP) .PHONY: clean cleanall distclean manpage install install-bin uninstall remove all: $(EXECUTABLES) %.d: %.c @set -e; rm -f $@; \ $(CC) -MM $(CFLAGS) $< > $@.$$$$; \ sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \ rm -f $@.$$$$; echo '(re)building $@' ifneq ($(MAKECMDGOALS),distclean) -include $(C_SRCS:%.c=%.d) endif $(EXECUTABLE_RTP): $(C_OBJS_RTP) $(CC) $(C_OBJS_RTP) -o $@ $(LDFLAGS) %.o: %.c $(CC) $(CFLAGS) -c $< strip: $(EXECUTABLES) $(STRIP) -s $(EXECUTABLE_RTP) distclean: clean find . -name *.o -exec rm -f {} \; find . -name "*.\~*" -exec rm -rf {} \; rm -f include.mk rm -f config*.h clean: rm -f *.o rm -f *.d rm -f *.d.* rm -f $(EXECUTABLES) INSTALL_TARGETS := install-bin REMOVE_TARGETS := remove-bin ifdef MANDIR INSTALL_TARGETS += install-man REMOVE_TARGETS += remove-man endif install: all $(INSTALL_TARGETS) install-bin: $(EXECUTABLES) $(INSTALL) -d $(DESTDIR)$(BINDIR) $(INSTALL) -m 755 $(EXECUTABLE_RTP) $(DESTDIR)$(BINDIR) install-man: manpage $(INSTALL) -d $(DESTDIR)$(MANDIR)/man8/ $(INSTALL) -m 644 ../doc/$(EXECUTABLE_RTP).8 $(DESTDIR)$(MANDIR)/man8/$(EXECUTABLE_RTP).8 uninstall: remove remove: $(REMOVE_TARGETS) remove-bin: rm -f $(DESTDIR)$(BINDIR)/$(EXECUTABLE_RTP) remove-man: rm -f $(DESTDIR)$(MANDIR)/man8/$(EXECUTABLE_RTP).8