blob: d87cde241396d43830dc0b4d93e45d37203616b1 [file] [log] [blame]
Ollie Lhocbbf1252004-03-17 22:22:08 +00001OBJS = flash_enable.o udelay.o jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o \
2 m29f400bt.o w49f002u.o 82802ab.o msys_doc.o pm49fl004.o sst49lf040.o
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +00003CC = gcc -O2 -g -Wall -Werror
Ronald G. Minnich5e5f75e2002-01-29 18:21:41 +00004
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +00005all: flash_rom flash_on
6
7flash_rom: flash_rom.o ${OBJS}
Ronald G. Minnichc73ad982003-02-11 21:06:09 +00008 ${CC} -o flash_rom flash_rom.c ${OBJS} -lpci
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +00009
10flash_on: flash_on.c
11 ${CC} -o flash_on flash_on.c
Ronald G. Minnich5e5f75e2002-01-29 18:21:41 +000012
13clean:
Ronald G. Minnichef5779d2002-01-29 20:18:02 +000014 rm -f flash_rom flash_on *.o *~
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +000015
16flash_rom.o: flash_rom.c flash.h jedec.h \
17 82802ab.h am29f040b.h m29f400bt.h msys_doc.h mx29f002.h sst28sf040.h \
David Hendricks3770a112004-03-17 21:47:30 +000018 sst39sf020.h w49f002u.h sst49lf040.h
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +000019flash_on.o: flash_on.c
20
2182802ab.o: 82802ab.c 82802ab.h flash.h
22am29f040b.o: am29f040b.c am29f040b.h jedec.h flash.h
23m29f400bt.o: m29f400bt.c m29f400bt.h flash.h
24msys_doc.o: msys_doc.c msys_doc.h flash.h
25mx29f002.o: mx29f002.c mx29f002.h jedec.h flash.h
26sst28sf040.o: sst28sf040.c sst28sf040.h jedec.h flash.h
27sst39sf020.o: sst39sf020.c sst39sf020.h jedec.h flash.h
David Hendricks3770a112004-03-17 21:47:30 +000028sst49lf040.o: sst49lf040.c sst49lf040.h jedec.h flash.h
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +000029w49f002u.o: w49f002u.c w49f002u.h jedec.h flash.h
Ronald G. Minnich8ff84322004-02-13 23:09:54 +000030pm49fl004.o: pm49fl004.c pm49fl004.h jedec.h flash.h
Ollie Lhocbbf1252004-03-17 22:22:08 +000031flash_enable.o: flash_enable.c
32udelay.o: udelay.c
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +000033jedec.o: jedec.c jedec.h flash.h