diff options
author | Ollie Lho <ollie@sis.com.tw> | 2005-11-26 21:55:36 +0000 |
---|---|---|
committer | Ollie Lho <ollie@sis.com.tw> | 2005-11-26 21:55:36 +0000 |
commit | 09f43e5e2c3ec7e3e96ab030d683b4bcbed89a6f (patch) | |
tree | 730168012ceeb517f9c3d14e02f21be6c75cf107 /Makefile | |
parent | f18077019037c248e2fa80f9b66aef534525f823 (diff) | |
download | flashrom-09f43e5e2c3ec7e3e96ab030d683b4bcbed89a6f.zip flashrom-09f43e5e2c3ec7e3e96ab030d683b4bcbed89a6f.tar.gz |
Flashrom update from Stefan, resolve issue 21
Corresponding to flashrom svn r34 and coreboot v2 svn r2111.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 61 |
1 files changed, 33 insertions, 28 deletions
@@ -1,33 +1,38 @@ -OBJS = flash_enable.o udelay.o jedec.o sst28sf040.o am29f040b.o mx29f002.c sst39sf020.o \ - m29f400bt.o w49f002u.o 82802ab.o msys_doc.o pm49fl004.o sst49lf040.o sst_fwhub.o -CC = gcc -O2 -g -Wall -Werror +# +# Makefile for flash_rom +# +# redone by Stefan Reinauer <stepan@openbios.org> +# -all: flash_rom flash_on +PROGRAM = flashrom -flash_rom: flash_rom.o ${OBJS} - ${CC} -o flash_rom flash_rom.c ${OBJS} -lpci +CC = gcc +STRIP = strip +#CFLAGS = -O2 -g -Wall -Werror +CFLAGS = -Os -Wall -Werror -DDISABLE_DOC +LDFLAGS = -lpci -static -flash_on: flash_on.c - ${CC} -o flash_on flash_on.c + +OBJS = flash_enable.o udelay.o jedec.o sst28sf040.o am29f040b.o mx29f002.o \ + sst39sf020.o m29f400bt.o w49f002u.o 82802ab.o msys_doc.o pm49fl004.o \ + sst49lf040.o sst_fwhub.o layout.o lbtable.o flashchips.o flash_rom.o + +all: dep $(PROGRAM) + +$(PROGRAM): $(OBJS) + $(CC) -o $(PROGRAM) $(OBJS) $(LDFLAGS) + $(STRIP) -s $(PROGRAM) clean: - rm -f flash_rom flash_on *.o *~ - -flash_rom.o: flash_rom.c flash.h jedec.h \ - 82802ab.h am29f040b.h m29f400bt.h msys_doc.h mx29f002.h sst28sf040.h \ - sst39sf020.h w49f002u.h sst49lf040.h -flash_on.o: flash_on.c - -82802ab.o: 82802ab.c 82802ab.h flash.h -am29f040b.o: am29f040b.c am29f040b.h jedec.h flash.h -m29f400bt.o: m29f400bt.c m29f400bt.h flash.h -msys_doc.o: msys_doc.c msys_doc.h flash.h -mx29f002.o: mx29f002.c mx29f002.h jedec.h flash.h -sst28sf040.o: sst28sf040.c sst28sf040.h jedec.h flash.h -sst39sf020.o: sst39sf020.c sst39sf020.h jedec.h flash.h -sst49lf040.o: sst49lf040.c sst49lf040.h jedec.h flash.h -w49f002u.o: w49f002u.c w49f002u.h jedec.h flash.h -pm49fl004.o: pm49fl004.c pm49fl004.h jedec.h flash.h -flash_enable.o: flash_enable.c -udelay.o: udelay.c -jedec.o: jedec.c jedec.h flash.h + rm -f *.o *~ + +distclean: clean + rm -f $(PROGRAM) .dependencies + +dep: + @$(CC) -MM *.c > .dependencies + +.PHONY: all clean distclean dep + +-include .dependencies + |