X-Git-Url: https://hackdaworld.org/gitweb/?p=physik%2Fnlsop.git;a=blobdiff_plain;f=configure;fp=configure;h=615570479b20ed0648f4d7f6a4be76ff5e21a130;hp=31ed2e99ec43f5f23b7f1397623db156f14bb18b;hb=fd74c3d7003b61f0680a3272a6657a1a7913f42d;hpb=eedf79d33f24f1163cdadea0eb27c8f0b75c1d92 diff --git a/configure b/configure index 31ed2e9..6155704 100755 --- a/configure +++ b/configure @@ -6,6 +6,7 @@ name="nlsop" prefix=/usr dfblib="" dfbinc="" +nodfb=0 echo $run_cmd @@ -24,6 +25,7 @@ while [ "$1" ]; do --help) usage; shift 1;; --with-dfblib) dfblib=`echo $1 | awk -F= '{ print $2 }'`; shift;; --with-dfbinc) dfbinc=`echo $1 | awk -F= '{ print $2 }'`; shift;; + --without-dfb) nodfb=1; shift ;; esac done @@ -41,8 +43,8 @@ else fi fi if [ "$dfb_inc_dir" = "0" ]; then - echo "dfb includes missing ..." - exit 1 + echo "dfb includes not found ..." + nodfb=1 fi dfb_lib_dir="0" if [ -z "$dfblib" ]; then @@ -57,20 +59,41 @@ else fi fi if [ "$dfb_lib_dir" = "0" ]; then - echo "dfb libs missing ..." - exit 1 + echo "dfb libs not found ..." + nodfb=1 fi -echo "directfb installation looks good :)" + +[ "$nodfb" = "0" ] && echo "directfb installation looks good :)" echo "creating Makefile" + cat > Makefile << EOF # $name Makefile, created `date` INCLUDEDIR = /usr/include +EOF + +if [ "$nodfb" = "0" ]; then + +cat >> Makefile << EOF CFLAGS = -DDEBUG -DUSE_DFB_API -DFONT=\"$prefix/share/$name/decker.ttf\" -O3 -Wall -I$dfb_inc_dir LIBS = -L$dfb_lib_dir -ldirectfb OBJS = random.o dfbapi.o +EOF + +else + +cat >> Makefile << EOF +CFLAGS = -DDEBUG -DNODFB -O3 -Wall +LIBS = + +OBJS = random.o +EOF + +fi + +cat >> Makefile << EOF OBJS2 = $name $name: \$(OBJS)