Ollie Lho | cbbf125 | 2004-03-17 22:22:08 +0000 | [diff] [blame] | 1 | OBJS = flash_enable.o udelay.o jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o \ |
Ronald G. Minnich | 1f4d653 | 2004-09-30 16:37:01 +0000 | [diff] [blame] | 2 | m29f400bt.o w49f002u.o 82802ab.o msys_doc.o pm49fl004.o sst49lf040.o sst_fwhub.o |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 3 | CC = gcc -O2 -g -Wall -Werror |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 4 | |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 5 | all: flash_rom flash_on |
| 6 | |
| 7 | flash_rom: flash_rom.o ${OBJS} |
Ronald G. Minnich | c73ad98 | 2003-02-11 21:06:09 +0000 | [diff] [blame] | 8 | ${CC} -o flash_rom flash_rom.c ${OBJS} -lpci |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 9 | |
| 10 | flash_on: flash_on.c |
| 11 | ${CC} -o flash_on flash_on.c |
Ronald G. Minnich | 5e5f75e | 2002-01-29 18:21:41 +0000 | [diff] [blame] | 12 | |
| 13 | clean: |
Ronald G. Minnich | ef5779d | 2002-01-29 20:18:02 +0000 | [diff] [blame] | 14 | rm -f flash_rom flash_on *.o *~ |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 15 | |
| 16 | flash_rom.o: flash_rom.c flash.h jedec.h \ |
| 17 | 82802ab.h am29f040b.h m29f400bt.h msys_doc.h mx29f002.h sst28sf040.h \ |
David Hendricks | 3770a11 | 2004-03-17 21:47:30 +0000 | [diff] [blame] | 18 | sst39sf020.h w49f002u.h sst49lf040.h |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 19 | flash_on.o: flash_on.c |
| 20 | |
| 21 | 82802ab.o: 82802ab.c 82802ab.h flash.h |
| 22 | am29f040b.o: am29f040b.c am29f040b.h jedec.h flash.h |
| 23 | m29f400bt.o: m29f400bt.c m29f400bt.h flash.h |
| 24 | msys_doc.o: msys_doc.c msys_doc.h flash.h |
| 25 | mx29f002.o: mx29f002.c mx29f002.h jedec.h flash.h |
| 26 | sst28sf040.o: sst28sf040.c sst28sf040.h jedec.h flash.h |
| 27 | sst39sf020.o: sst39sf020.c sst39sf020.h jedec.h flash.h |
David Hendricks | 3770a11 | 2004-03-17 21:47:30 +0000 | [diff] [blame] | 28 | sst49lf040.o: sst49lf040.c sst49lf040.h jedec.h flash.h |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 29 | w49f002u.o: w49f002u.c w49f002u.h jedec.h flash.h |
Ronald G. Minnich | 8ff8432 | 2004-02-13 23:09:54 +0000 | [diff] [blame] | 30 | pm49fl004.o: pm49fl004.c pm49fl004.h jedec.h flash.h |
Ollie Lho | cbbf125 | 2004-03-17 22:22:08 +0000 | [diff] [blame] | 31 | flash_enable.o: flash_enable.c |
| 32 | udelay.o: udelay.c |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame] | 33 | jedec.o: jedec.c jedec.h flash.h |