summaryrefslogtreecommitdiff
path: root/util/getpir/Makefile
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-04-14 22:24:50 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-04-14 22:24:50 +0000
commit6463ae7f1bd1f7ab60725529cf79af30a0e7297d (patch)
treee8ddaba7c8da40c8f125149b0c3457c48550f619 /util/getpir/Makefile
parent815a80316448f72ec9501da5c545595c30880e70 (diff)
seperate checksum and code generating code.
use mmap instead of file io git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1504 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/getpir/Makefile')
-rw-r--r--util/getpir/Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/util/getpir/Makefile b/util/getpir/Makefile
index fffb13872a..07a6625c75 100644
--- a/util/getpir/Makefile
+++ b/util/getpir/Makefile
@@ -5,20 +5,25 @@ LINUXBIOSROOT=../..
INCLUDEPATH=$(LINUXBIOSROOT)/src/arch/i386/include
INCLUDE2=$(LINUXBIOSROOT)/src/include
-getpir: getpir.c
- gcc -o getpir -I$(INCLUDEPATH) -I$(INCLUDE2) getpir.c
+getpir: getpir.c checksum.o code_gen.o
+ gcc -o getpir -I$(INCLUDEPATH) -I$(INCLUDE2) getpir.c checksum.o code_gen.o
+
+code_gen.o: code_gen.c
+ gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) code_gen.c
all: getpir checkpir
-checkpir: checkpir.c irq_tables.o
- gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checkpir.c
+checkpir: checkpir.c checksum.o irq_tables.o
+ gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checksum.o checkpir.c
+checksum.o: checksum.c
+ gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) checksum.c
irq_tables.o: irq_tables.c
gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.c
clean:
- rm -f irq_tables.o getpir checkpir *~
+ rm -f getpir checkpir *.o *~
cleantable:
rm -f irq_table.o