fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / scsi / aic7xxx / aicasm / Makefile
index e8c345b..b98c5c1 100644 (file)
@@ -14,6 +14,8 @@ LIBS= -ldb
 clean-files:= ${GENSRCS} ${GENHDRS} $(YSRCS:.y=.output) $(PROG)
 # Override default kernel CFLAGS.  This is a userland app.
 AICASM_CFLAGS:= -I/usr/include -I.
+LEX= flex
+YACC= bison
 YFLAGS= -d
 
 NOMAN= noman
@@ -34,10 +36,14 @@ $(PROG):  ${GENHDRS} $(SRCS)
        $(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG) $(LIBS)
 
 aicdb.h:
-       @if [ -e "/usr/include/db3/db_185.h" ]; then            \
+       @if [ -e "/usr/include/db4/db_185.h" ]; then            \
+               echo "#include <db4/db_185.h>" > aicdb.h;       \
+        elif [ -e "/usr/include/db3/db_185.h" ]; then          \
                echo "#include <db3/db_185.h>" > aicdb.h;       \
         elif [ -e "/usr/include/db2/db_185.h" ]; then          \
                echo "#include <db2/db_185.h>" > aicdb.h;       \
+        elif [ -e "/usr/include/db1/db_185.h" ]; then          \
+               echo "#include <db1/db_185.h>" > aicdb.h;       \
         elif [ -e "/usr/include/db/db_185.h" ]; then           \
                echo "#include <db/db_185.h>" > aicdb.h;        \
         elif [ -e "/usr/include/db_185.h" ]; then              \