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
- Lines: 32
- Date:
Thu Oct 25 13:53:49 2001
- Orig file:
v2.4.13/linux/drivers/scsi/aic7xxx/aicasm/Makefile
- Orig date:
Fri May 4 15:16:28 2001
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)