diff --git a/.gitignore b/.gitignore index 14d31b85511450e2b7b67a7e52049b1452e99b36..57cd94c23daab6f79aa81a26ca9f1f76a8badefc 100644 --- a/.gitignore +++ b/.gitignore @@ -53,22 +53,22 @@ doc/*.html *.depend *i686-pc-linux-gnu -/libs/pjproject-1.0/build.mak -/libs/pjproject-1.0/build/os-auto.mak -/libs/pjproject-1.0/config.log -/libs/pjproject-1.0/config.status -/libs/pjproject-1.0/pjlib-util/build/os-auto.mak -/libs/pjproject-1.0/pjlib/build/os-auto.mak -/libs/pjproject-1.0/pjlib/include/pj/compat/m_auto.h -/libs/pjproject-1.0/pjlib/include/pj/compat/os_auto.h -/libs/pjproject-1.0/pjlib/include/pj/config_site.h -/libs/pjproject-1.0/pjmedia/build/os-auto.mak -/libs/pjproject-1.0/pjmedia/include/pjmedia-codec/config_auto.h -/libs/pjproject-1.0/pjmedia/include/pjmedia/config_auto.h -/libs/pjproject-1.0/pjsip/build/os-auto.mak -/libs/pjproject-1.0/pjsip/include/pjsip/sip_autoconf.h -/libs/pjproject-1.0/third_party/build/os-auto.mak -/libs/pjproject-1.0/third_party/build/portaudio/os-auto.mak +/libs/pjproject-1.0.1/build.mak +/libs/pjproject-1.0.1/build/os-auto.mak +/libs/pjproject-1.0.1/config.log +/libs/pjproject-1.0.1/config.status +/libs/pjproject-1.0.1/pjlib-util/build/os-auto.mak +/libs/pjproject-1.0.1/pjlib/build/os-auto.mak +/libs/pjproject-1.0.1/pjlib/include/pj/compat/m_auto.h +/libs/pjproject-1.0.1/pjlib/include/pj/compat/os_auto.h +/libs/pjproject-1.0.1/pjlib/include/pj/config_site.h +/libs/pjproject-1.0.1/pjmedia/build/os-auto.mak +/libs/pjproject-1.0.1/pjmedia/include/pjmedia-codec/config_auto.h +/libs/pjproject-1.0.1/pjmedia/include/pjmedia/config_auto.h +/libs/pjproject-1.0.1/pjsip/build/os-auto.mak +/libs/pjproject-1.0.1/pjsip/include/pjsip/sip_autoconf.h +/libs/pjproject-1.0.1/third_party/build/os-auto.mak +/libs/pjproject-1.0.1/third_party/build/portaudio/os-auto.mak # Ignore sflphone-gtk stuff diff --git a/libs/pjproject-1.0.1/Makefile b/libs/pjproject-1.0.1/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..469f20c49d060d40d46e4bd6df81084d99432aed --- /dev/null +++ b/libs/pjproject-1.0.1/Makefile @@ -0,0 +1,82 @@ +include build.mak +include build/host-$(HOST_NAME).mak + +DIRS = pjlib pjlib-util pjnath third_party pjmedia pjsip pjsip-apps + +ifdef MINSIZE +MAKE_FLAGS := MINSIZE=1 +endif + +all clean dep depend distclean print realclean: + for dir in $(DIRS); do \ + if $(MAKE) $(MAKE_FLAGS) -C $$dir/build $@; then \ + true; \ + else \ + exit 1; \ + fi; \ + done + +doc: + @if test \( ! "$(WWWDIR)" == "" \) -a \( ! -d $(WWWDIR)/pjlib/docs/html \) ; then \ + echo 'Directory "$(WWWDIR)" does not look like a valid pjsip web directory'; \ + exit 1; \ + fi + for dir in $(DIRS); do \ + if $(MAKE) $(MAKE_FLAGS) -C $$dir/build $@; then \ + true; \ + else \ + exit 1; \ + fi; \ + done + +LIBS = pjlib/lib/libpj-sfl-$(TARGET_NAME).a \ + pjlib-util/lib/libpjlib-util-sfl-$(TARGET_NAME).a \ + pjnath/lib/libpjnath-sfl-$(TARGET_NAME).a \ + pjmedia/lib/libpjmedia-sfl-$(TARGET_NAME).a \ + pjmedia/lib/libpjmedia-codec-sfl-$(TARGET_NAME).a \ + pjsip/lib/libpjsip-sfl-$(TARGET_NAME).a \ + pjsip/lib/libpjsip-ua-sfl-$(TARGET_NAME).a \ + pjsip/lib/libpjsip-simple-sfl-$(TARGET_NAME).a \ + pjsip/lib/libpjsua-sfl-$(TARGET_NAME).a +BINS = pjsip-apps/bin/pjsua-sfl-$(TARGET_NAME)$(HOST_EXE) + +size: + @echo -n 'Date: ' + @date + @echo + @for lib in $(LIBS); do \ + echo "$$lib:"; \ + size -t $$lib | awk '{print $$1 "\t" $$2 "\t" $$3 "\t" $$6}'; \ + echo; \ + done + @echo + @for bin in $(BINS); do \ + echo "size $$bin:"; \ + size $$bin; \ + done + +#dos2unix: +# for f in `find . | egrep '(mak|h|c|S|s|Makefile)$$'`; do \ +# dos2unix "$$f" > dos2unix.tmp; \ +# cp dos2unix.tmp "$$f"; \ +# done +# rm -f dos2unix.tmp + +xhdrid: + for f in `find . | egrep '\.(h|c|S|s|cpp|hpp)$$'`; do \ + echo Processing $$f...; \ + cat $$f | sed 's/.*\$$Author\$$/ */' > /tmp/id; \ + cp /tmp/id $$f; \ + done + +prefix = /usr/local +install: + mkdir -p $(DESTDIR)$(prefix)/lib + cp -L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib + mkdir -p $(DESTDIR)$(prefix)/include + cp -RL $$(find . -name include) $(DESTDIR)$(prefix) + cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\ + ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\ + done + mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig + sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpj-sfl.pc.in > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpj-sfl.pc