summaryrefslogtreecommitdiff
path: root/util/getpir/Makefile
blob: dab85d21f2a6e6d0b8f8ec2d9f28d2fbd012d108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;