patch-2.4.14 linux/drivers/scsi/aic7xxx/aicasm/Makefile

Next file: linux/drivers/scsi/aic7xxx/aicasm/aicasm.c
Previous file: linux/drivers/scsi/aic7xxx/aic7xxx_seq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/scsi/aic7xxx/aicasm/Makefile linux/drivers/scsi/aic7xxx/aicasm/Makefile
@@ -1,8 +1,9 @@
 PROG=	aicasm
 
+.SUFFIXES= .l .y .c
+
 CSRCS=	aicasm.c aicasm_symbol.c
 GENSRCS= aicasm_gram.c aicasm_scan.c
-DEPHDRS= aicdb.h
 GENHDRS= y.tab.h aicdb.h
 
 SRCS=	${GENSRCS} ${CSRCS}
@@ -25,9 +26,7 @@
 LFLAGS= -d
 endif
 
-.SUFFIXES= .l .y .c
-
-$(PROG): $(SRCS) $(DEPHDRS)
+$(PROG):  $(SRCS) $(GENHDRS)
 	$(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG)
 
 aicdb.h:
@@ -45,3 +44,9 @@
 
 clean:
 	rm -f $(CLEANFILES) $(PROG)
+
+y.tab.h aicasm_gram.c: aicasm_gram.y
+	$(YACC) $(YFLAGS) aicasm_gram.y
+	mv y.tab.c aicasm_gram.c
+
+aicasm_scan.c: y.tab.h

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)