Changeset 1055


Ignore:
Timestamp:
Mar 12, 2007 10:44:38 AM (13 years ago)
Author:
bennylp
Message:

Ticket #168: Added some variables in build.mak that can be used by application in its makefile

Location:
pjproject/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r951 r1055  
    309309#endif" 
    310310 
    311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' 
     311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX ac_pjdir CPP EGREP ac_os_objs ac_pjmedia_snd ac_pa_cflags ac_pa_use_alsa ac_no_small_filter ac_no_large_filter ac_no_g711_plc ac_no_speex_aec ac_no_g711_codec ac_no_l16_codec ac_no_gsm_codec ac_no_speex_codec ac_no_ilbc_codec ac_no_ssl openssl_h_present libssl_present libcrypto_present ac_cross_compile ac_linux_poll ac_host ac_main_obj LIBOBJS LTLIBOBJS' 
    312312ac_subst_files='' 
    313313 
     
    14441444 
    14451445 
     1446 
    14461447if test "$CFLAGS" = ""; then 
    14471448  CFLAGS="-O2" 
     
    27432744ac_compiler_gnu=$ac_cv_c_compiler_gnu 
    27442745 
     2746 
     2747 
     2748ac_pjdir=`pwd` 
    27452749 
    27462750 
     
    97749778s,@CXXFLAGS@,$CXXFLAGS,;t t 
    97759779s,@ac_ct_CXX@,$ac_ct_CXX,;t t 
     9780s,@ac_pjdir@,$ac_pjdir,;t t 
    97769781s,@CPP@,$CPP,;t t 
    97779782s,@EGREP@,$EGREP,;t t 
  • pjproject/trunk/aconfigure.ac

    r951 r1055  
    2020                ]) 
    2121 
     22 
    2223dnl 
    2324dnl Setup default CFLAGS 
     
    3435AC_PROG_CXX 
    3536AC_LANG_C 
     37 
     38AC_SUBST(ac_pjdir) 
     39ac_pjdir=`pwd` 
    3640 
    3741AC_CHECK_LIB(pthread,pthread_create) 
  • pjproject/trunk/build.mak.in

    r726 r1055  
    77export CROSS_COMPILE := @ac_cross_compile@ 
    88export LINUX_POLL := @ac_linux_poll@  
     9 
     10# Application can use this 
     11export PJDIR := @ac_pjdir@ 
     12export APP_CC := $(CROSS_COMPILE)$(CC_NAME) 
     13export APP_CFLAGS := -DPJ_AUTOCONF=1\ 
     14        @CFLAGS@\ 
     15        -I$(PJDIR)/pjlib/include\ 
     16        -I$(PJDIR)/pjlib-util/include\ 
     17        -I$(PJDIR)/pjmedia/include\ 
     18        -I$(PJDIR)/pjsip/include 
     19export APP_CXXFLAGS := $(APP_CFLAGS) 
     20export APP_LDFLAGS := -L$(PJDIR)/pjlib/lib\ 
     21        -L$(PJDIR)/pjlib-util/lib\ 
     22        -L$(PJDIR)/pjmedia/lib\ 
     23        -L$(PJDIR)/pjsip/lib\ 
     24        @LDFLAGS@ 
     25export APP_LDLIBS := -lpjsua-$(TARGET_NAME)\ 
     26        -lpjsip-ua-$(TARGET_NAME)\ 
     27        -lpjsip-simple-$(TARGET_NAME)\ 
     28        -lpjsip-$(TARGET_NAME)\ 
     29        -lpjmedia-codec-$(TARGET_NAME)\ 
     30        -lpjmedia-$(TARGET_NAME)\ 
     31        -lpjmedia-codec-$(TARGET_NAME)\ 
     32        -lpjlib-util-$(TARGET_NAME)\ 
     33        -lpj-$(TARGET_NAME)\ 
     34        @LIBS@ 
     35 
Note: See TracChangeset for help on using the changeset viewer.