summaryrefslogtreecommitdiff
path: root/util/getpir/Makefile
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-04-13 21:06:45 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-04-13 21:06:45 +0000
commitfd8f02f762f50de5df348c24dbff978c34e74f2c (patch)
tree75c862aa558b43017e2dc729df29eb6a0f2fffd4 /util/getpir/Makefile
parent3f5b4660b6c50af57a8599d54b5d84026e0de5cd (diff)
porting getpir to freebios2
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1500 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/getpir/Makefile')
-rw-r--r--util/getpir/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/util/getpir/Makefile b/util/getpir/Makefile
new file mode 100644
index 0000000000..dab85d21f2
--- /dev/null
+++ b/util/getpir/Makefile
@@ -0,0 +1,30 @@
+# change to the path of your linuxbios tree
+#LINUXBIOSROOT=/home/rminnich/src//freebios/
+LINUXBIOSROOT=../..
+
+INCLUDEPATH=$(LINUXBIOSROOT)/src/arch/i386/include/arch
+INCLUDE2=$(LINUXBIOSROOT)/src/include
+INCLUDE3=$(LINUXBIOSROOT)/src/arch/i386/include
+
+
+getpir: getpir.c
+ gcc -o getpir -I$(INCLUDEPATH) -I$(INCLUDE2) getpir.c
+
+checkpir: checkpir.c irq_tables.o
+ gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checkpir.c
+
+assignirq: assignirq.c irq_tables.o
+ gcc -g -o assignirq -I$(INCLUDEPATH) -I$(INCLUDE2) assignirq.c -lpci
+
+irq_tables.o: irq_tables.c
+ gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) -I$(INCLUDE3) irq_tables.c
+
+clean:
+ rm -f irq_tables.o getpir checkpir assignirq *~
+
+cleantable:
+ rm -f irq_table.o
+
+test: checkpir
+ ./checkpir ;\
+ exit 0;