Ignore:
Timestamp:
Aug 10, 2006 2:26:15 PM (18 years ago)
Author:
bennylp
Message:

Added pjsdp in pjmedia Makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/build/Makefile

    r653 r670  
    2424export PJMEDIA_LIB:=../lib/libpjmedia-$(TARGET_NAME)$(LIBEXT) 
    2525export PJMEDIA_CODEC_LIB:=../lib/libpjmedia-codec-$(TARGET_NAME)$(LIBEXT) 
     26export PJSDP_LIB:=../lib/libpjsdp-$(TARGET_NAME)$(LIBEXT) 
    2627 
    2728############################################################################### 
     
    7879 
    7980export PJMEDIA_CFLAGS += $(_CFLAGS) 
     81 
     82 
     83############################################################################### 
     84# Defines for building PJSDP library 
     85# Note that SDP functionality is already INCLUDED in PJMEDIA. 
     86# The PJSDP library should only be used for applications that want SDP 
     87# but don't want to use the rest of the media framework. 
     88# 
     89export PJSDP_SRCDIR = ../src/pjmedia 
     90export PJSDP_OBJS +=    $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 
     91                        errno.o sdp.o sdp_cmp.o sdp_neg.o 
     92export PJSDP_CFLAGS += $(_CFLAGS) 
    8093 
    8194 
     
    144157# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    145158# 
    146 TARGETS := pjmedia pjmedia-codec 
     159TARGETS := pjmedia pjmedia-codec pjsdp 
    147160#pjmedia-test 
    148161 
     
    162175pjmedia-codec: 
    163176        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $(PJMEDIA_CODEC_LIB) 
     177 
     178pjsdp: 
     179        $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $(PJSDP_LIB) 
    164180 
    165181pjmedia-test: $(PJMEDIA_LIB) 
     
    183199        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 
    184200        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 
     201        $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $@ 
    185202        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 
    186203 
     
    189206        $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-codec-$(TARGET_NAME).depend),$(HOST_RMR)) 
    190207        $(subst @@,$(subst /,$(HOST_PSEP),.pjmedia-test-$(TARGET_NAME).depend),$(HOST_RMR)) 
     208        $(subst @@,$(subst /,$(HOST_PSEP),.pjsdp-$(TARGET_NAME).depend),$(HOST_RMR)) 
    191209         
    192210        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA app=pjmedia $@ 
    193211        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 
    194212        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 
     213        $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $@ 
    195214 
    196215depend: 
     
    198217        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_CODEC app=pjmedia-codec $@ 
    199218        $(MAKE) -f $(RULES_MAK) APP=PJMEDIA_TEST app=pjmedia-test $@ 
     219        $(MAKE) -f $(RULES_MAK) APP=PJSDP app=pjsdp $@ 
    200220        echo '$(PJMEDIA_LIB): .pjmedia-$(TARGET_NAME).depend' >> .pjmedia-$(TARGET_NAME).depend; \ 
    201221        echo '$(PJMEDIA_CODEC_LIB): .pjmedia-codec-$(TARGET_NAME).depend' >> .pjmedia-codec-$(TARGET_NAME).depend; \ 
Note: See TracChangeset for help on using the changeset viewer.