summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-05-10 19:24:40 +0000
committerBenny Prijono <bennylp@teluu.com>2006-05-10 19:24:40 +0000
commit50a501dbe89ec8f9a76540015890dd361f1ec8a1 (patch)
treea45dac4292320647ed297b35239fccf38eb5885b /build
parent5f10c756ac9d5f48efe2adbcccf5d54634540d61 (diff)
Merge-in RTEMS port patch by Phil Torre <ptorre@zetron.com>, alpha release.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@433 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'build')
-rw-r--r--build/cc-gcc.mak2
-rw-r--r--build/host-unix.mak2
-rw-r--r--build/m-mpc860.mak9
-rw-r--r--build/os-rtems.mak17
-rw-r--r--build/rules.mak2
5 files changed, 29 insertions, 3 deletions
diff --git a/build/cc-gcc.mak b/build/cc-gcc.mak
index 9a5ff2f6..a3b4807e 100644
--- a/build/cc-gcc.mak
+++ b/build/cc-gcc.mak
@@ -1,5 +1,5 @@
export CC = $(CROSS_COMPILE)gcc -c
-export AR = $(CROSS_COMPILE)ar r
+export AR = $(CROSS_COMPILE)ar rv
export LD = $(CROSS_COMPILE)gcc
export LDOUT = -o
export RANLIB = $(CROSS_COMPILE)ranlib
diff --git a/build/host-unix.mak b/build/host-unix.mak
index a84f3ec1..18dcfd5e 100644
--- a/build/host-unix.mak
+++ b/build/host-unix.mak
@@ -2,7 +2,7 @@ export HOST_MV := mv
export HOST_RM := rm -f @@
export HOST_RMR := rm -rf @@
export HOST_RMDIR := rm -rf @@
-export HOST_MKDIR := mkdir @@
+export HOST_MKDIR := mkdir -p @@
export HOST_EXE :=
export HOST_PSEP := /
diff --git a/build/m-mpc860.mak b/build/m-mpc860.mak
new file mode 100644
index 00000000..04ff9471
--- /dev/null
+++ b/build/m-mpc860.mak
@@ -0,0 +1,9 @@
+#
+# PowerPC MPC860 specific.
+# It's a PowerPC without floating point support.
+#
+export M_CFLAGS := $(CC_DEF)PJ_M_POWERPC=1 $(CC_DEF)PJ_HAS_FLOATING_POINT=0 -mcpu=860
+export M_CXXFLAGS :=
+export M_LDFLAGS := -mcpu=860
+export M_SOURCES :=
+
diff --git a/build/os-rtems.mak b/build/os-rtems.mak
new file mode 100644
index 00000000..78729402
--- /dev/null
+++ b/build/os-rtems.mak
@@ -0,0 +1,17 @@
+#
+# Global OS specific configurations for RTEMS OS.
+#
+# Thanks Zetron, Inc and Phil Torre <ptorre@zetron.com> for donating PJLIB
+# port to RTEMS.
+#
+export RTEMS_DEBUG := -ggdb3 -DRTEMS_DEBUG -DDEBUG -qrtems_debug
+
+export OS_CFLAGS := $(CC_DEF)PJ_RTEMS=1 \
+ -B$(RTEMS_LIBRARY_PATH)/lib/ -specs bsp_specs -qrtems
+
+export OS_CXXFLAGS :=
+
+export OS_LDFLAGS := -B$(RTEMS_LIBRARY_PATH)/lib/ -specs bsp_specs -qrtems
+
+export OS_SOURCES :=
+
diff --git a/build/rules.mak b/build/rules.mak
index 81ef8ce9..6a25b17b 100644
--- a/build/rules.mak
+++ b/build/rules.mak
@@ -154,7 +154,7 @@ depend:
for F in $(FULL_SRCS); do \
if test -f $$F; then \
echo "$(OBJDIR)/" | tr -d '\n' >> $(DEP_FILE); \
- if gcc -M $(DEPFLAGS) $$F | sed '/^#/d' >> $(DEP_FILE); then \
+ if $(CC_NAME) -M $(DEPFLAGS) $$F | sed '/^#/d' >> $(DEP_FILE); then \
true; \
else \
echo 'err:' >> $(DEP_FILE); \