当前位置: 技术问答>linux和unix
一个make文件的问题!急啊!!!!!!!!!!
来源: 互联网 发布时间:2015-06-12
本文导语: PWLIBDIR = /root/pwlib STDCCFLAGS += -I/usr/local/include/ffmpeg LDFLAGS += ENDLDLIBS := $(ENDLDLIBS) H323_AVCODEC = 1 H323_VICH263 = 1 ifdef LIBRARY_MAKEFILE include $(PWLIBDIR)/make/unix.mak else ifdef NOTRACE OBJDIR_SUFFIX := n endif include $(PWLIB...
PWLIBDIR = /root/pwlib
STDCCFLAGS += -I/usr/local/include/ffmpeg
LDFLAGS +=
ENDLDLIBS := $(ENDLDLIBS)
H323_AVCODEC = 1
H323_VICH263 = 1
ifdef LIBRARY_MAKEFILE
include $(PWLIBDIR)/make/unix.mak
else
ifdef NOTRACE
OBJDIR_SUFFIX := n
endif
include $(PWLIBDIR)/make/ptlib.mak
endif
LIBDIRS += $(OPENH323DIR)
#OH323_SUPPRESS_H235 = 1
OH323_SRCDIR = $(OPENH323DIR)/src
ifdef PREFIX
OH323_INCDIR = $(PREFIX)/include/openh323
else
OH323_INCDIR = $(OPENH323DIR)/include
endif
OH323_LIBDIR = $(OPENH323DIR)/lib
ifdef NOTRACE
STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
OH323_SUFFIX = n
else
STDCCFLAGS += -DPTRACING
RCFLAGS += -DPTRACING
OH323_SUFFIX = $(OBJ_SUFFIX)
endif
ifdef NOAUDIOCODECS
STDCCFLAGS += -DNO_H323_AUDIO_CODECS
endif
ifdef NOVIDEO
STDCCFLAGS += -DNO_H323_VIDEO
endif
OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX)
LDFLAGS += -L$(OH323_LIBDIR)
LDLIBS := -l$(OH323_BASE) $(LDLIBS)
STDCCFLAGS += -I$(OH323_INCDIR)
ifneq ($(OS),Nucleus)
ifdef OH323_SUPPRESS_H235
STDCCFLAGS += -DOH323_SUPPRESS_H235
endif
ifneq (,$(wildcard $(SYSINCDIR)/linux/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ
endif
ifneq (,$(wildcard $(SYSINCDIR)/sys/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ
endif
ifneq (,$(wildcard /usr/local/include/sys/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ -I/usr/local/include
endif
#Check if we have an OSS soundcard.h
ifneq (,$(wildcard $(SYSINCDIR)/linux/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard /usr/include/sys/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard /usr/include/machine/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard $(SYSINCDIR)/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
endif
endif
endif
endif
#Allow disabling of speex codec
ifdef NO_SPEEX
STDCCFLAGS += -DNO_SPEEX
endif
endif # !Nucleus
ifneq (,$(wildcard /usr/local/lib/libcu30.so))
#STDCCFLAGS += -DHAS_CU30
#CU30INSTALLED = 1
endif
VPB_LIB := vpb
ifneq (,$(wildcard $(SYSLIBDIR)/lib$(VPB_LIB).a))
VPB_LIB_PATH=$(SYSLIBDIR)
else
ifneq (,$(wildcard /usr/local/lib/lib$(VPB_LIB).a))
VPB_LIB_PATH=/usr/local/lib
else
ifeq ($(OSTYPE),linux)
ifneq (,$(wildcard $(OH323_SRCDIR)/lib$(VPB_LIB).a))
VPB_LIB_PATH=$(OH323_SRCDIR)
else
ifneq (,$(wildcard ./lib$(VPB_LIB).a))
VPB_LIB_PATH=.
endif # current directory
endif # openhrer/src
endif # linux
endif # /usr/local/lib
endif # /usr/lib
ifdef VPB_LIB_PATH
HAS_VPB := 1
STDCCFLAGS += -DHAS_VPB
LDFLAGS += -L$(VPB_LIB_PATH)
LDLIBS += -l$(VPB_LIB)
endif
ifdef H323_VICH263
LDFLAGS += -L/usr/local/lib
LDLIBS += -lvich263 //进入哪个目录?
endif
$(TARGET) : $(OH323_LIBDIR)/$(OH323_FILE)
ifndef LIBRARY_MAKEFILE
ifdef DEBUG
$(OH323_LIBDIR)/$(OH323_FILE):
$(MAKE) -C $(OH323_SRCDIR) debug
else
$(OH323_LIBDIR)/$(OH323_FILE):
$(MAKE) -C $(OH323_SRCDIR) opt
endif
endif
ccflags:
@echo $(STDCCFLAGS)
# End of file
这个是一个make文件,上面注释的vich232是查找哪个目录?能不能介绍一下?
STDCCFLAGS += -I/usr/local/include/ffmpeg
LDFLAGS +=
ENDLDLIBS := $(ENDLDLIBS)
H323_AVCODEC = 1
H323_VICH263 = 1
ifdef LIBRARY_MAKEFILE
include $(PWLIBDIR)/make/unix.mak
else
ifdef NOTRACE
OBJDIR_SUFFIX := n
endif
include $(PWLIBDIR)/make/ptlib.mak
endif
LIBDIRS += $(OPENH323DIR)
#OH323_SUPPRESS_H235 = 1
OH323_SRCDIR = $(OPENH323DIR)/src
ifdef PREFIX
OH323_INCDIR = $(PREFIX)/include/openh323
else
OH323_INCDIR = $(OPENH323DIR)/include
endif
OH323_LIBDIR = $(OPENH323DIR)/lib
ifdef NOTRACE
STDCCFLAGS += -DPASN_NOPRINTON -DPASN_LEANANDMEAN
OH323_SUFFIX = n
else
STDCCFLAGS += -DPTRACING
RCFLAGS += -DPTRACING
OH323_SUFFIX = $(OBJ_SUFFIX)
endif
ifdef NOAUDIOCODECS
STDCCFLAGS += -DNO_H323_AUDIO_CODECS
endif
ifdef NOVIDEO
STDCCFLAGS += -DNO_H323_VIDEO
endif
OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE)
OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX)
LDFLAGS += -L$(OH323_LIBDIR)
LDLIBS := -l$(OH323_BASE) $(LDLIBS)
STDCCFLAGS += -I$(OH323_INCDIR)
ifneq ($(OS),Nucleus)
ifdef OH323_SUPPRESS_H235
STDCCFLAGS += -DOH323_SUPPRESS_H235
endif
ifneq (,$(wildcard $(SYSINCDIR)/linux/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ
endif
ifneq (,$(wildcard $(SYSINCDIR)/sys/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ
endif
ifneq (,$(wildcard /usr/local/include/sys/telephony.h))
HAS_IXJ = 1
STDCCFLAGS += -DHAS_IXJ -I/usr/local/include
endif
#Check if we have an OSS soundcard.h
ifneq (,$(wildcard $(SYSINCDIR)/linux/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard /usr/include/sys/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard /usr/include/machine/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
else
ifneq (,$(wildcard $(SYSINCDIR)/soundcard.h))
HAS_OSS = 1
STDCCFLAGS += -DHAS_OSS
endif
endif
endif
endif
#Allow disabling of speex codec
ifdef NO_SPEEX
STDCCFLAGS += -DNO_SPEEX
endif
endif # !Nucleus
ifneq (,$(wildcard /usr/local/lib/libcu30.so))
#STDCCFLAGS += -DHAS_CU30
#CU30INSTALLED = 1
endif
VPB_LIB := vpb
ifneq (,$(wildcard $(SYSLIBDIR)/lib$(VPB_LIB).a))
VPB_LIB_PATH=$(SYSLIBDIR)
else
ifneq (,$(wildcard /usr/local/lib/lib$(VPB_LIB).a))
VPB_LIB_PATH=/usr/local/lib
else
ifeq ($(OSTYPE),linux)
ifneq (,$(wildcard $(OH323_SRCDIR)/lib$(VPB_LIB).a))
VPB_LIB_PATH=$(OH323_SRCDIR)
else
ifneq (,$(wildcard ./lib$(VPB_LIB).a))
VPB_LIB_PATH=.
endif # current directory
endif # openhrer/src
endif # linux
endif # /usr/local/lib
endif # /usr/lib
ifdef VPB_LIB_PATH
HAS_VPB := 1
STDCCFLAGS += -DHAS_VPB
LDFLAGS += -L$(VPB_LIB_PATH)
LDLIBS += -l$(VPB_LIB)
endif
ifdef H323_VICH263
LDFLAGS += -L/usr/local/lib
LDLIBS += -lvich263 //进入哪个目录?
endif
$(TARGET) : $(OH323_LIBDIR)/$(OH323_FILE)
ifndef LIBRARY_MAKEFILE
ifdef DEBUG
$(OH323_LIBDIR)/$(OH323_FILE):
$(MAKE) -C $(OH323_SRCDIR) debug
else
$(OH323_LIBDIR)/$(OH323_FILE):
$(MAKE) -C $(OH323_SRCDIR) opt
endif
endif
ccflags:
@echo $(STDCCFLAGS)
# End of file
这个是一个make文件,上面注释的vich232是查找哪个目录?能不能介绍一下?
|
应该是libvich232.so
如果是HP-UX的话,是libvich232.sl
如果是HP-UX的话,是libvich232.sl
|
我想应该是 vich263库,
他的链接文件在前面已经设定的文件夹下面。连接器可以找的到的。
他的链接文件在前面已经设定的文件夹下面。连接器可以找的到的。
|
所有写在-L的目录里面,如果有几个目录里同时有的话,可能就看哪个目录写在前面吧
|
楼主可以找一下vich232.so文件在那里?