Ignore:
Timestamp:
Apr 18, 2007 9:24:31 AM (13 years ago)
Author:
bennylp
Message:

Fixed the legacy build system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/split-3rd-party/configure-legacy

    r795 r1202  
    11#!/bin/sh 
     2 
     3PJDIR=`pwd` 
    24 
    35# 
     
    9294fi 
    9395 
    94 echo 'Writing build.mak as follows:' 
    95 echo " MACHINE_NAME = $MACHINE_NAME" 
    96 echo " OS_NAME      = $OS_NAME" 
    97 echo " HOST_NAME    = $HOST_NAME" 
    98 echo " CC_NAME      = $CC_NAME" 
    99 echo " TARGET_NAME  = $TARGET_NAME" 
    100 echo " CROSS_COMPILE= $CROSS_COMPILE" 
    101 echo " LINUX_POLL   = $LINUX_POLL" 
     96echo 'build.mak configurations are set as follows:' 
     97echo " PJDIR         = $PJDIR" 
     98echo " MACHINE_NAME  = $MACHINE_NAME" 
     99echo " OS_NAME       = $OS_NAME" 
     100echo " HOST_NAME     = $HOST_NAME" 
     101echo " CC_NAME       = $CC_NAME" 
     102echo " TARGET_NAME   = $TARGET_NAME" 
     103echo " CROSS_COMPILE = $CROSS_COMPILE" 
     104echo " LINUX_POLL    = $LINUX_POLL" 
    102105 
    103106echo "# Auto-generated build.mak" > build.mak 
     107echo "export PJDIR := $PJDIR" >> build.mak 
    104108echo "export MACHINE_NAME := $MACHINE_NAME" >> build.mak 
    105109echo "export OS_NAME := $OS_NAME" >> build.mak 
     
    110114echo "export LINUX_POLL := $LINUX_POLL" >> build.mak 
    111115 
     116echo >> build.mak 
     117 
     118cat << EOF >> build.mak 
     119export APP_CC = \$(CROSS_COMPILE)\$(CC_NAME) 
     120 
     121export APP_CFLAGS = \$(CC_CFLAGS) \$(OS_CFLAGS) \$(HOST_CFLAGS) \$(M_CFLAGS) \$(CFLAGS) -I\$(PJDIR)/pjlib/include -I\$(PJDIR)/pjlib-util/include -I\$(PJDIR)/pjnath/include -I\$(PJDIR)/pjmedia/include -I\$(PJDIR)/pjsip/include 
     122 
     123export APP_CXXFLAGS = \$(APP_CFLAGS) 
     124 
     125export APP_LDFLAGS = -L\$(PJDIR)/pjlib/lib -L\$(PJDIR)/pjlib-util/lib -L\$(PJDIR)/pjnath/lib -L\$(PJDIR)/pjmedia/lib -L\$(PJDIR)/pjsip/lib -L\$(PJDIR)/third_party/lib  
     126 
     127export APP_LDLIBS = -lpjsua-\$(TARGET_NAME) -lpjsip-ua-\$(TARGET_NAME) -lpjsip-simple-\$(TARGET_NAME) -lpjsip-\$(TARGET_NAME) -lpjmedia-codec-\$(TARGET_NAME) -lpjmedia-\$(TARGET_NAME) -lpjnath-\$(TARGET_NAME) -lpjlib-util-\$(TARGET_NAME) \$(APP_THIRD_PARTY_LIBS) -lpj-\$(TARGET_NAME) \$(CC_LDFLAGS) \$(OS_LDFLAGS) \$(M_LDFLAGS) \$(HOST_LDFLAGS) \$(LDFLAGS) 
     128 
     129export PJ_DIR = \$(PJDIR) 
     130export PJ_CC = \$(APP_CC) 
     131export PJ_CFLAGS = \$(APP_CFLAGS) 
     132export PJ_CXXFLAGS = \$(APP_CXXFLAGS) 
     133export PJ_LDFLAGS = \$(APP_LDFLAGS) 
     134export PJ_LDLIBS = \$(APP_LDLIBS) 
     135 
     136EOF 
     137 
    112138touch user.mak 
     139 
    113140 
    114141echo 
Note: See TracChangeset for help on using the changeset viewer.