Changeset 1202 for pjproject/branches/split-3rd-party/configure-legacy
- Timestamp:
- Apr 18, 2007 9:24:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/split-3rd-party/configure-legacy
r795 r1202 1 1 #!/bin/sh 2 3 PJDIR=`pwd` 2 4 3 5 # … … 92 94 fi 93 95 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" 96 echo 'build.mak configurations are set as follows:' 97 echo " PJDIR = $PJDIR" 98 echo " MACHINE_NAME = $MACHINE_NAME" 99 echo " OS_NAME = $OS_NAME" 100 echo " HOST_NAME = $HOST_NAME" 101 echo " CC_NAME = $CC_NAME" 102 echo " TARGET_NAME = $TARGET_NAME" 103 echo " CROSS_COMPILE = $CROSS_COMPILE" 104 echo " LINUX_POLL = $LINUX_POLL" 102 105 103 106 echo "# Auto-generated build.mak" > build.mak 107 echo "export PJDIR := $PJDIR" >> build.mak 104 108 echo "export MACHINE_NAME := $MACHINE_NAME" >> build.mak 105 109 echo "export OS_NAME := $OS_NAME" >> build.mak … … 110 114 echo "export LINUX_POLL := $LINUX_POLL" >> build.mak 111 115 116 echo >> build.mak 117 118 cat << EOF >> build.mak 119 export APP_CC = \$(CROSS_COMPILE)\$(CC_NAME) 120 121 export 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 123 export APP_CXXFLAGS = \$(APP_CFLAGS) 124 125 export 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 127 export 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 129 export PJ_DIR = \$(PJDIR) 130 export PJ_CC = \$(APP_CC) 131 export PJ_CFLAGS = \$(APP_CFLAGS) 132 export PJ_CXXFLAGS = \$(APP_CXXFLAGS) 133 export PJ_LDFLAGS = \$(APP_LDFLAGS) 134 export PJ_LDLIBS = \$(APP_LDLIBS) 135 136 EOF 137 112 138 touch user.mak 139 113 140 114 141 echo
Note: See TracChangeset
for help on using the changeset viewer.