Commit 051b7f52 authored by thomas's avatar thomas
Browse files

updated build system

git-svn-id: https://svn.grrrr.org/ext/trunk@955 4d9ac71a-51e6-0310-8455-cad1006bcd31
parent f3eb3972
#! /usr/bin/bash
flext=${0%/*}/
if [ "$flext" = "$0"/ ]; then flext=./ ; fi
......@@ -18,7 +20,7 @@ subbatch=${flext}buildsys/build-${compiler}.sh
if
[ -n "$platform" -a -n "$rtsys" -a -n "$compiler" -a -f $subbatch ]
then
sh $subbatch $platform $rtsys $target $5 $6 $7 $8 $9
bash $subbatch $platform $rtsys $target $5 $6 $7 $8 $9
else
echo
echo SYNTAX: build.sh [platform] [system] [compiler] {target}
......@@ -29,5 +31,6 @@ else
echo
echo Please make sure that your make program and compiler can be accessed with the
echo system path and that all relevant environment variables are properly set.
echo
fi
......@@ -12,7 +12,9 @@
PKGINFO=package.txt
!endif
!if "$(PKGINFO)" != ""
!include $(PKGINFO)
!endif
###############################################
# check variables
......
#!/usr/bin/bash
build=${0%/*}/
make -f ${build}gnumake.mak PLATFORM=$1 RTSYS=$2 COMPILER=cygwin BUILDPATH=${build} $3 $4 $5 $6 $7 $8 $9
#!/usr/bin/bash
build=${0%/*}/
make -f ${build}gnumake.mak PLATFORM=$1 RTSYS=$2 COMPILER=gcc BUILDPATH=${build} $3 $4 $5 $6 $7 $8 $9
......@@ -12,7 +12,9 @@ ifndef PKGINFO
PKGINFO=package.txt
endif
ifneq ($(PKGINFO),)
include $(PKGINFO)
endif
###############################################
# check variables
......
......@@ -12,7 +12,9 @@
PKGINFO=package.txt
!endif
!if "$(PKGINFO)" != ""
!include $(PKGINFO)
!endif
###############################################
# check variables
......
......@@ -3,7 +3,7 @@ DEFS += -DFLEXT_SYS=2
INCPATH += -I$(PDPATH)/src
# trick PD in a way that only the cygwin pthread headers are used
CFLAGS += -include /usr/include/pthread.h -DPTHREAD_H
CFLAGS += -include /usr/include/sched.h -include /usr/include/pthread.h -DPTHREAD_H
LIBS += $(PDPATH)/bin/pd.dll
#LIBS += $(PDPATH)/bin/pthreadVC.dll
......@@ -2,6 +2,10 @@
@if "%2"=="" @goto syntax
@if "%3"=="" @goto syntax
@rem first check configuration
@call ..\build.bat %1 %2 %3 config "PKGINFO="
@if not errorlevel 0 @goto end
for /D %%i in (*) do @(
@pushd %%i
@if exist package.txt @(
......
#!/usr/bin/bash
if
[ -n "$1" -a -n "$2" -a -n "$3" ]
then
# make config first
if
bash ../build.sh $1 $2 $3 config "PKGINFO="
then
for i in * ; do
if [ -e $i/package.txt ] ; then
pushd $i
bash ../../build.sh $1 $2 $3
popd
fi
done
fi
else
echo
echo SYNTAX: build.sh [platform] [system] [compiler]
echo platform ... win / lnx / mac
echo system ..... pd / max
echo compiler ... msvc / gcc / mingw / cygwin / bcc / icc
echo
echo Please make sure that your make program and compiler can be accessed with the
echo system path and that all relevant environment variables are properly set.
echo
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment