Ignore:
Timestamp:
Jun 8, 2007 1:41:25 AM (17 years ago)
Author:
bennylp
Message:

Updated the footprint generation script to include PJNATH

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/build/Footprint.mak

    r825 r1352  
    33# to get the footprint report for PJSIP/PJMEDIA. 
    44# 
     5include ../../build.mak 
    56include ../../build/common.mak 
    6  
    7 PJLIB_LIB:=../../pjlib/lib/libpj-$(TARGET_NAME)$(LIBEXT) 
    8 PJLIB_UTIL_LIB:=../../pjlib-util/lib/libpjlib-util-$(TARGET_NAME)$(LIBEXT) 
    9 PJMEDIA_LIB:=../../pjmedia/lib/libpjmedia-$(TARGET_NAME)$(LIBEXT) 
    10 PJMEDIA_CODEC_LIB:=../../pjmedia/lib/libpjmedia-codec-$(TARGET_NAME)$(LIBEXT) 
    11 PJSIP_LIB:=../../pjsip/lib/libpjsip-$(TARGET_NAME)$(LIBEXT) 
    12 PJSIP_UA_LIB:=../../pjsip/lib/libpjsip-ua-$(TARGET_NAME)$(LIBEXT) 
    13 PJSIP_SIMPLE_LIB:=../../pjsip/lib/libpjsip-simple-$(TARGET_NAME)$(LIBEXT) 
    14 PJSUA_LIB_LIB=../../pjsip/lib/libpjsua-$(TARGET_NAME)$(LIBEXT) 
    157 
    168 
     
    1810# Gather all flags. 
    1911# 
    20 export _CFLAGS  := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \ 
    21                    $(CFLAGS) $(CC_INC)../../pjsip/include \ 
    22                    $(CC_INC)../../pjlib/include \ 
    23                    $(CC_INC)../../pjlib-util/include \ 
    24                    $(CC_INC)../../pjmedia/include 
    25 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 
    26                    $(HOST_CXXFLAGS) $(CXXFLAGS) 
     12export _CFLAGS  := $(APP_CFLAGS) $(CFLAGS) 
     13export _CXXFLAGS:= $(_CFLAGS) 
    2714 
    28 export LIBS :=  $(subst /,$(HOST_PSEP),$(PJSUA_LIB_LIB)) \ 
    29                 $(subst /,$(HOST_PSEP),$(PJSIP_UA_LIB)) \ 
    30                 $(subst /,$(HOST_PSEP),$(PJSIP_SIMPLE_LIB)) \ 
    31                 $(subst /,$(HOST_PSEP),$(PJSIP_LIB)) \ 
    32                 $(subst /,$(HOST_PSEP),$(PJMEDIA_LIB)) \ 
    33                 $(subst /,$(HOST_PSEP),$(PJMEDIA_CODEC_LIB)) \ 
    34                 $(subst /,$(HOST_PSEP),$(PJLIB_UTIL_LIB)) \ 
    35                 $(subst /,$(HOST_PSEP),$(PJLIB_LIB)) 
    36  
    37  
    38 export _LDFLAGS := $(LIBS) \ 
    39                    $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \ 
    40                    $(LDFLAGS) -lm 
    41  
    42  
     15export _LDFLAGS := $(APP_LDFLAGS) $(APP_LDLIBS) $(LDFLAGS) 
    4316 
    4417EXE := footprint.exe 
    4518 
    4619all:  
    47         $(CROSS_COMPILE)$(CC_NAME) -o $(EXE) ../src/samples/footprint.c $(FCFLAGS) $(_CFLAGS) $(_LDFLAGS) 
     20        $(APP_CC) -o $(EXE) ../src/samples/footprint.c $(FCFLAGS) $(_CFLAGS) $(_LDFLAGS) 
    4821        $(CROSS_COMPILE)strip --strip-all $(EXE) 
    4922 
Note: See TracChangeset for help on using the changeset viewer.