summaryrefslogtreecommitdiff
authorzecke <zecke>2002-06-21 11:18:31 (UTC)
committer zecke <zecke>2002-06-21 11:18:31 (UTC)
commit3be39e6c8af27a43d4b09bf08b4c739c342b5de3 (patch) (side-by-side diff)
treed543a53a003ac69ac38f365ffd2a67499e3fa3d5
parentda8fdc855382e3b6e945aa1aeb429e5737e0792d (diff)
downloadopie-3be39e6c8af27a43d4b09bf08b4c739c342b5de3.zip
opie-3be39e6c8af27a43d4b09bf08b4c739c342b5de3.tar.gz
opie-3be39e6c8af27a43d4b09bf08b4c739c342b5de3.tar.bz2
fix the makefile
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile78
-rwxr-xr-xconfigure2
2 files changed, 44 insertions, 36 deletions
diff --git a/Makefile b/Makefile
index e25cb98..6399702 100644
--- a/Makefile
+++ b/Makefile
@@ -1,83 +1,91 @@
-default: dynamic
+indefault: dynamic
all: default docs
LIBS=library libopie
COMPONENTS=$(LOCALCOMPONENTS) inputmethods/keyboard \
inputmethods/pickboard \
inputmethods/handwriting \
inputmethods/unikeyboard \
inputmethods/jumpx \
inputmethods/kjumpx \
inputmethods/dvorak \
- launcher/batteryapplet \
- launcher/batteryapplet-ipaq \
- launcher/irdaapplet \
- launcher/volumeapplet \
- launcher/clockapplet \
- launcher/netmonapplet \
- launcher/screenshotapplet \
- launcher/clipboardapplet \
- launcher/cardmon \
- launcher/obex \
- launcher/vmemo \
- netsetup/dialup \
- netsetup/lan \
- opiemail/ifaces/pop3 opiemail/ifaces/smtp \
- core/opieplayer/libmpeg3 \
- core/opieplayer/libmad \
- core/opieplayer/wavplugin \
+ core/applets/batteryapplet \
+ core/applets/batteryapplet-ipaq \
+ core/applets/irdaapplet \
+ core/applets/volumeapplet \
+ core/applets/clockapplet \
+ core/applets/netmonapplet \
+ core/applets/screenshotapplet \
+ core/applets/clipboardapplet \
+ core/applets/cardmon \
+ core/applets/obex \
+ core/applets/vmemo \
+ noncore/net/netsetup/dialup \
+ noncore/net/netsetup/lan \
+ core/multimedia/opieplayer/libmpeg3 \
+ core/multimedia/opieplayer/libmad \
+ core/multimedia/opieplayer/wavplugin \
noncore/mail/libmail \
noncore/mail/bend \
-APPS=$(LOCALAPPS) core/addressbook calculator clock datebook \
- filebrowser helpbrowser minesweep core/opieplayer \
- settings/light-and-power \
- settings/language \
- settings/rotation \
- settings/appearance \
- settings/security \
- settings/sound \
- settings/systemtime \
- settings/mediummount \
- settings/tabmanager \
- solitaire spreadsheet tetrix textedit \
- todo wordgame embeddedkonsole launcher sysinfo \
- parashoot snake citytime showimg netsetup core/wlansetup tableviewer \
- core/oipkg mindbreaker go qasteroids qcop fifteen keypebble today opiemail/converter opiemail \
- noncore/tictac noncore/opieftp noncore/drawpad noncore/kcheckers noncore/appskey noncore/qpdf \
- noncore/kpacman noncore/advancedfm noncore/kbill noncore/remote noncore/opie-sh \
+APPS=$(LOCALAPPS) core/pim/addressbook noncore/tools/calculator \
+ noncore/tools/clock core/pim/datebook core/apps/filebrowser \
+ core/apps/helpbrowser noncore/games/minesweep \
+ core/multimedia/opieplayer core/settings/light-and-power \
+ noncore/settings/language \
+ noncore/settings/rotation \
+ noncore/settings/appearance \
+ core/settings/security \
+ noncore/settings/sound \
+ core/settings/systemtime \
+ noncore/settings/mediummount \
+ noncore/settings/tabmanager \
+ noncore/games/solitaire noncore/apps/spreadsheet \
+ noncore/games/tetrix core/apps/textedit \
+ core/pim/todo noncore/games/wordgame core/apps/embeddedkonsole \
+ core/launcher core/apps/sysinfo \
+ noncore/games/parashoot noncore/games/snake core/settings/citytime \
+ noncore/multimedia/showimg noncore/net/netsetup core/settings/wlansetup \
+ noncore/apps/tableviewer core/apps/oipkg noncore/games/mindbreaker \
+ noncore/games/go noncore/games/qasteroids core/apps/qcop \
+ noncore/games/fifteen noncore/comm/keypebble \
+ core/pim/today noncore/games/tictac noncore/net/opieftp \
+ noncore/graphics/drawpad noncore/games/kcheckers noncore/settings/appskey \
+ noncore/graphics/qpdf noncore/games/kpacman noncore/apps/advancedfm \
+ noncore/games/kbill noncore/tools/remote \
+ noncore/tools/opie-sh \
noncore/mail
NONTMAKEAPPS := ipaq/opiealarm noncore/nethack
DOCS = docs/src/opie-policy
single: mpegplayer/libmpeg3
dynamic: $(APPS) $(NONTMAKEAPPS)
docs: $(DOCS)
$(COMPONENTS): $(LIBS)
$(NONTMAKEAPPS) $(APPS): $(LIBS) $(COMPONENTS)
$(LIBS) $(COMPONENTS) $(NONTMAKEAPPS) $(APPS) $(DOCS) single:
$(MAKE) -C $@ -f Makefile
showcomponents:
@echo $(LIBS) $(APPS) $(COMPONENTS) single
clean:
$(MAKE) -C single -f Makefile $@
for dir in $(NONTMAKEAPPS) $(APPS) $(LIBS) $(COMPONENTS) $(DOCS); do $(MAKE) -C $$dir -f Makefile $@ || exit 1; done
lupdate:
for dir in $(APPS) $(LIBS) $(COMPONENTS); do $(MAKE) -C $$dir -f Makefile $@ || exit 1; done
lrelease:
for dir in $(APPS) $(LIBS) $(COMPONENTS); do $(MAKE) -C $$dir -f Makefile $@ || exit 1; done
.PHONY: default dynamic $(NONTMAKEAPPS) $(LIBS) $(APPS) $(COMPONENTS) $(DOCS) single showcomponents clean
diff --git a/configure b/configure
index cfc4c39..7e9ab68 100755
--- a/configure
+++ b/configure
@@ -1,293 +1,293 @@
#!/bin/sh
#
# Configures to build the Qtopia Environment
#
# Copyright 1999-2000 Trolltech AS. All rights reserved.
#
PLATFORM=generic
SHARING=shared
DEBUG=
QCONFIGARG=
touch .test.qpe.
if [ '!' -f ${OPIEDIR}/.test.qpe. ];
then
rm .test.qpe.
echo
echo
echo ' The environment variable $OPIEDIR is not set correctly. It is currently'
echo ' set to "'$OPIEDIR'", but it should be set to this directory,'
echo ' which is "'`pwd`'".'
echo
echo ' Please read the INSTALL file for instructions on how to set $OPIEDIR'
echo ' correctly. If you have set $OPIEDIR in your .profile or .login, you '
echo ' will need to log out and log in again to make the setting effective.'
echo
echo
exit 1
fi
rm .test.qpe.
if [ '!' -f $TMAKEPATH/tmake.conf ]
then
# You have tmake. We'll regenerate the file for you...
echo ' The environment variable $TMAKEPATH is not set correclty. '
echo ' It should be set to the tmake path'
echo
echo ' Please read the INSTALL file for instructions on how to set $TMAKEPATH'
echo ' to the environment variable correctly.'
exit 1
fi
VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\.[0-9]*\.[0-9]*.*".*/\1/p' <library/version.h)
VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.\([0-9]\)\.[0-9]*.*".*/\1/p' <library/version.h)
VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION "[0-9]*\.[0-9]*\.\([0-9]*\).*".*/\1/p' <library/version.h)
TOMAKE=
if grep -q 'VERSION_STR.*"3' $QTDIR/include/qglobal.h
then
QT3=yes
else
QT3=no
fi
# Parse the arguments, setting things to "yes" or "no".
while [ -n "$1" ]; do
case $1 in
-platform|-xplatform) # No difference since we don't need to build moc, etc.
shift; PLATFORM=$1
;;
-release)
DEBUG=
;;
-debug)
DEBUG=-debug
;;
-shared)
SHARING=shared
;;
-static)
SHARING=static
;;
-qconfig)
# optional way to specify the qconfig-qpe.h is to pass -qconfig qpe
shift; QCONFIGARG=DEFINES+=QCONFIG='\"'$1'\"' # Don't quote me on that.
;;
-make)
shift; TOMAKE="$TOMAKE $1"
;;
-qt3)
QT3=yes
;;
*)
HELP=yes;;
esac
shift
done
TARGET=configs/$PLATFORM-$SHARING$DEBUG
if [ '!' -f $TARGET ]
then
if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ]
then
TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG
else
echo
echo ' The specified platform/compiler not supported: ' $TARGET
echo
exit 2
fi
fi
# Next, emit a usage message if something failed.
if [ "$HELP" = "yes" ]; then
cat <<EOF
Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...]
The defaults (*) are usually acceptable. Here is a short explanation of
each option:
* -release ........... Compile and link Qt with debugging turned off.
-debug ............. Compile and link Qt with debugging turned on.
* -shared ............ Create and use a shared Qt library (libqt.so)
-static ............ Create and use a static Qt library (libqt.a)
-qt3 ............... Configure for use with Qt 3.x
-platform target ... The platform you are building on ($PLATFORM)
EOF
exit 0;
fi
CUSTOM=`echo $PLATFORM | sed -n -e "s/.*-\(.*\)-.*/\1/p"`
if [ -f library/custom-$CUSTOM.h ]
then
rm -f library/custom.h
ln -s custom-$CUSTOM.h library/custom.h
fi
mkdir -p include/qpe
( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; )
mkdir -p include/opie
( cd include/opie && rm -f *.h; ln -s ../../libopie/*.h .; rm -f *_p.h; )
echo Creating makefiles...
sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v
mv library/library.pro-v library/library.pro
if [ "$QT3" = yes ]
then
VCONFIG="CONFIG+=qt3"
else
VCONFIG="CONFIG+=qt2"
fi
if [ -f $TMAKEPATH/tmake.conf ]
then
# You have tmake. We'll regenerate the file for you...
echo "Makefiles will be regenerated."
fi
H=`pwd`
if [ -z "$TOMAKE" ]
then
TOMAKE=`make showcomponents`
fi
for a in $TOMAKE ; do
N=$a/Makefile
M=$a/Makefile.in
O=$a/Makefile.add
f=`basename $a`
if [ -f "$TMAKEPATH/tmake.conf" -a -f "$a/$f.pro" ]
then
( cd $a;
TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \
tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \
-t $H/qt/tmake/propagate.t $f.pro |
sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in;
)
echo -n "."
# echo Building $N..
appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | sed 's/ //g'`
translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' `
if [ -n "$translation" -a -n "$appname" ]
then
if [ "$appname" != "$translation" ]
then
echo
echo "Warning: translation and appname disagree in $a/$f.pro"
fi
fi
fi
cat > $N <<EOF
#############################################################################
# Automatically generated from $M
# Build options from $1
#############################################################################
EOF
SED=
PLATFORM_CFLAGS=
if [ "$f" = "embeddedkonsole" ]
then
case $PLATFORM in
*x86*|*generic*|*ipaq*|*sharp*)
SED="$SED /^LIBS.*=/s/\$/ -lutil/;"
PLATFORM_CFLAGS="-DHAVE_OPENPTY"
;; *)
SED=
esac
elif [ "$f" = "libmpeg3" ]
then
# Patch our Makefile.in file with the platform specifics for the libmpeg3 library
# Use the C++ compiler to compile the .c files (because the fixed-point classes are C++ code)
SED='s/\$(CC)/\$(CXX)/;'
case $PLATFORM
in
# For x86 turn on using floating point, compile mmx and css code
*x86*)
# "-funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486"
PLATFORM_CFLAGS="-DHAVE_MMX -DHAVE_CSS"
SED="$SED /SOURCES.*=/s/=/= video\\/mmxidct.S video\\/reconmmx.s\ /;"
# For generic turn on using floating point
;; *generic*)
PLATFORM_CFLAGS=""
# For the ipaq use fixed point maths, don't compile the mmx or css code
;; *ipaq*|*sharp*)
PLATFORM_CFLAGS="-DUSE_FIXED_POINT"
;; *)
# For 'other platforms', turn off optimizations and use fixed point
PLATFORM_CFLAGS="-O -DUSE_FIXED_POINT"
esac
elif [ "$f" = "libmad" ]
then
# Patch our Makefile.in file with the platform specifics for the libmad library
case $PLATFORM
in
# For x86 use intel optimizations
*x86*)
PLATFORM_CFLAGS="-DFPM_INTEL"
# For the ipaq use ARM asm optimizations
;; *ipaq*|*sharp*)
PLATFORM_CFLAGS="-DFPM_ARM"
SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;"
# For generic platforms use the C 64-bit implementation
;; *generic*)
PLATFORM_CFLAGS="-DFPM_64BIT"
# For 'other platforms' use the ARM code
;; *)
PLATFORM_CFLAGS="-DFPM_ARM"
SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;"
esac
fi
if [ -n "$PLATFORM_CFLAGS" ]
then
# Append the addition c-flags we have defined
SED="$SED /CFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;"
SED="$SED /CXXFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;"
fi
cat $TARGET >> $N
if [ -n "$SED" ]
then
sed -e "$SED" $M >> $N
else
cat $M >> $N
fi
cat >> $N <<EOF
lupdate:
lupdate $f.pro
lrelease:
lrelease $f.pro
EOF
if [ -f "$O" ]
then
cat >> $N $O
fi
done
MAKE=make
echo
-echo "QPE is now configured for building. Just run $MAKE (or $MAKE single)."
+echo "Opie is now configured for building. Just run $MAKE (or $MAKE single)."
echo "To reconfigure, run $MAKE clean and configure."
echo