Andrew Ip | f0126ce | 2002-10-16 06:58:05 +0000 | [diff] [blame] | 1 | OBJS = jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o m29f400bt.o \ |
Ronald G. Minnich | eaab50b | 2003-09-12 22:41:53 +0000 | [diff] [blame^] | 2 | w49f002u.o 82802ab.o msys_doc.o |
| 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 \ |
| 18 | sst39sf020.h w49f002u.h |
| 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 |
| 28 | w49f002u.o: w49f002u.c w49f002u.h jedec.h flash.h |
| 29 | |
| 30 | jedec.o: jedec.c jedec.h flash.h |