Makefile
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:4k
- # $Id: Makefile,v 1.53 2001/06/26 21:02:13 icahoon Exp $
- BUILD = ../build
- include $(BUILD)/Makefile.pre
- ifeq ($(OSTYPE),SunOS)
- ifeq ($(VOCAL_TOOLCHAIN_TYPE),gnu)
- IMAP_OS_ARG = gso
- endif
- ifeq ($(VOCAL_TOOLCHAIN_TYPE),sunpro)
- IMAP_OS_ARG = fso
- endif
- endif
- ifeq ($(OSTYPE),FreeBSD)
- IMAP_OS_ARG = bsf
- endif
- ifeq ($(OSTYPE),Linux)
- IMAP_OS_ARG = lnp
- endif
- MAKE_NOJ = $(patsubst %-j4,%, $(patsubst %-j2,%, $(MAKE)))
- INSTALL = install
- CODE_DEPENDS = libxml
- ifeq ($(OSTYPE),FreeBSD)
- CODE_DEPENDS += libcext_bsd libcext_lgpl
- endif
- ifeq ($(OSTYPE),SunOS)
- CODE_DEPENDS += libcext_bsd
- endif
- ifeq ($(USE_YARROW),1)
- CODE_DEPENDS += yarrow
- endif
- ifeq ($(VOCAL_HAS_ENUM),1)
- CODE_DEPENDS += $(wildcard enum)
- endif
- CODE_DEPENDS += $(wildcard quicknet andreasen hitachi)
- code: $(CODE_DEPENDS)
- quicknet:
- cd quicknet ; $(MAKE)
- andreasen:
- cd andreasen ; $(MAKE)
- hitachi:
- ifeq ($(OS_ARCH),sh)
- cd hitachi ; $(MAKE)
- endif
- .PHONY: libxml Equivalence libcext imap osp xerces-c-src1_4_0 andreasen quicknet hitachi
- imap: imap.$(OS_ARCH)
- $(LNDIR) ../imap imap.$(OS_ARCH)
- cd imap.$(OS_ARCH) && env MAKEFLAGS= MAKELEVEL= $(MAKE) $(IMAP_OS_ARG)
- imap.$(OS_ARCH):
- -mkdir imap.$(OS_ARCH)
- yarrow: yarrow.$(OS_ARCH)
- $(LNDIR) ../yarrow yarrow.$(OS_ARCH)
- cd yarrow.$(OS_ARCH) ; $(MAKE_NOJ)
- yarrow.$(OS_ARCH):
- -mkdir yarrow.$(OS_ARCH)
- enum: enum.$(OS_ARCH)
- cd enum.$(OS_ARCH) ; $(MAKE)
- enum.$(OS_ARCH):
- cp -r enum enum.$(OS_ARCH)
- -mkdir -p enum.$(OS_ARCH)/bin enum.$(OS_ARCH)/lib
- cd enum.$(OS_ARCH) ; cp Makefile.$(OS_ARCH) makefile ; $(MAKE)
- xerces-c-src1_4_0: xerces-c-src1_4_0.$(OS_ARCH)
- XERCESCROOT="`pwd`/xerces-c-src1_4_0.$(OS_ARCH)";cd xerces-c-src1_4_0.$(OS_ARCH)/src; export XERCESCROOT;$(MAKE_NOJ)
- ifeq ($(OSTYPE),SunOS)
- XERCES_CONFIGURE=-psolaris -ccc -xCC -minmem -nfileonly -tnative
- else
- ifeq ($(OSTYPE),Linux)
- XERCES_CONFIGURE=-plinux -cgcc -xg++ -minmem -nfileonly -tnative
- endif
- endif
- xerces-c-src1_4_0.$(OS_ARCH):
- cp -r xerces-c-src1_4_0 xerces-c-src1_4_0.$(OS_ARCH)
- XERCESCROOT="`pwd`/xerces-c-src1_4_0.$(OS_ARCH)" ; cd xerces-c-src1_4_0.$(OS_ARCH)/src; export XERCESCROOT; chmod u+x runConfigure; chmod u+x configure; ./runConfigure $(XERCES_CONFIGURE)
- libxml: libxml2.$(OS_ARCH)
- cd libxml2.$(OS_ARCH) ; env CC=$(CC) $(MAKE)
- libxml2.$(OS_ARCH):
- $(LNDIR) ../libxml-2.x libxml2.$(OS_ARCH)
- cd libxml2.$(OS_ARCH) ; env CC=$(CC) ./configure
- libcext: libcext_bsd libcext_lgpl
- libcext_bsd: libcext_bsd.$(OS_ARCH)
- $(LNDIR) ../libcext_bsd libcext_bsd.$(OS_ARCH)
- cd libcext_bsd.$(OS_ARCH) ; $(MAKE_NOJ)
- libcext_bsd.$(OS_ARCH):
- -mkdir libcext_bsd.$(OS_ARCH)
- libcext_lgpl: libcext_lgpl.$(OS_ARCH)
- $(LNDIR) ../libcext_lgpl libcext_lgpl.$(OS_ARCH)
- cd libcext_lgpl.$(OS_ARCH) ; $(MAKE_NOJ)
- libcext_lgpl.$(OS_ARCH):
- -mkdir libcext_lgpl.$(OS_ARCH)
- libsndfile: libsndfile.$(OS_ARCH)
- cd libsndfile.$(OS_ARCH) ; $(MAKE_NOJ)
- ifeq ($(OSTYPE),SunOS)
- libsndfile.$(OS_ARCH):
- cp -r libsndfile-0.0.22 libsndfile.$(OS_ARCH)
- ln -s /usr/include/assert.h libsndfile.$(OS_ARCH)/src/GSM610/assert.h
- cd libsndfile.$(OS_ARCH) ; ./configure
- else
- libsndfile.$(OS_ARCH):
- cp -r libsndfile-0.0.22 libsndfile.$(OS_ARCH)
- cd libsndfile.$(OS_ARCH) ; ./configure
- endif
- ifeq ($(OSTYPE), SunOS)
- OSP_COMPILER = -o use_spro
- endif
- osp: osp.$(OS_ARCH)/dependencies
- cd osp.$(OS_ARCH)/src ; OSTYPE=$(OSTYPE) ; export OSTYPE ; OS_ARCH=$(OS_ARCH) ; export OS_ARCH ; ./osp_sdk_compile.ksh -d client $(OSP_COMPILER)
- osp.$(OS_ARCH)/dependencies: osp.$(OS_ARCH)
- $(LNDIR) ../OSPToolkit-2.5.2 osp.$(OS_ARCH)
- touch osp.$(OS_ARCH)/dependencies
- osp.$(OS_ARCH):
- -mkdir osp.$(OS_ARCH)
- Equivalence: Equivalence.$(OS_ARCH)
- cd Equivalence.$(OS_ARCH) && $(MAKE_NOJ)
- Equivalence.$(OS_ARCH):
- mkdir Equivalence.$(OS_ARCH)
- cd Equivalence.$(OS_ARCH) && $(LNDIR) ../Equivalence
- install: all
- cd quicknet ; $(MAKE) install
- doc:
- clean:
- rm -rf libxml2.$(OS_ARCH)
- rm -rf Equivalence.$(OS_ARCH)
- rm -rf yarrow.$(OS_ARCH)
- rm -rf libsndfile.$(OS_ARCH)
- rm -rf imap.$(OS_ARCH)
- cd andreasen ; $(MAKE) clean
- cd yarrow ; $(MAKE) clean
- cd quicknet; $(MAKE) clean