README
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:2k
- Build Process README
- This readme describes technical things about the VOCAL build process.
- For information about licensing, please see the LICENSE file in this
- directory, or http://www.vovida.org/license.html
- ----------------------------------------------------------------------
- Adding Packages / Linking
- ----------------------------------------------------------------------
- VOCAL uses a "package" concept to add software libraries to the build
- system. If you want to add a package, follow these directions.
- 1. For e.g if you want to make a library called libmylib.a and the sources
- are under vocal/mylib then add the following in vocal/build/Makefile.pkg:
- MYLIB_INCLUDEDIRS := $(ROOT)/mylib
- MYLIB_LIBDIRS := $(ROOT)/mylib/obj.$(TARGET_NAME)
- MYLIB_LIBNAME := mylib
- MYLIB_LDFLAGS :=
- MYLIB_DEPENDS := $(ROOT)/mylib/obj.$(TARGET_NAME)/libmylib.a
- $(MYLIB_DEPENDS):
- cd $(ROOT)/mylib;$(MAKE)
- 2. Then in the new directory vocal/mylib, create a Makefile as:
- BUILD = ../build
- include $(BUILD)/Makefile.pre
- PACKAGES =
- INCDIRS += .
- TARGET_LIBRARY := libmylib.a
- SRC =
- Source1.cxx
- Source2.cxx
- TESTPROGRAMS += MyLibTestMain.cxx
- include $(BUILD)/Makefile.post
- docs: doc++/config.txt
- doc++ --config doc++/config.txt
- 3. Include the MYLIB as a package in the vocal/sip/ua/Makefile
- PACKAGES += MYLIB
- 4. Add entries into the vocal/Makefile
- a) add the following to the usage: entry
- usage:
- [stuff...]
- @echo "mylib my newly created library"
- b) add the following as an entry for mylib
- mylib: whatever it depends on
- cd mylib; $(MAKE)
- c) include it into .PHONY: and SUBDIRS =
- ----------------------------------------------------------------------
- $Id: README,v 1.10 2001/07/25 01:55:46 bko Exp $