blob: fee59e3cca0bee5ade8f236a8f46de6fd4dcc83c [file] [log] [blame]
Andrew Ipf0126ce2002-10-16 06:58:05 +00001OBJS = jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o m29f400bt.o \
Ronald G. Minnich8ff84322004-02-13 23:09:54 +00002 w49f002u.o 82802ab.o msys_doc.o pm49fl004.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 \
18 sst39sf020.h w49f002u.h
19flash_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
28w49f002u.o: w49f002u.c w49f002u.h jedec.h flash.h
Ronald G. Minnich8ff84322004-02-13 23:09:54 +000029pm49fl004.o: pm49fl004.c pm49fl004.h jedec.h flash.h
Ronald G. Minnicheaab50b2003-09-12 22:41:53 +000030
31jedec.o: jedec.c jedec.h flash.h