2004-04-13 23:06:45 +02:00
|
|
|
# change to the path of your linuxbios tree
|
|
|
|
#LINUXBIOSROOT=/home/rminnich/src//freebios/
|
|
|
|
LINUXBIOSROOT=../..
|
|
|
|
|
2004-04-14 01:19:27 +02:00
|
|
|
INCLUDEPATH=$(LINUXBIOSROOT)/src/arch/i386/include
|
2004-04-13 23:06:45 +02:00
|
|
|
INCLUDE2=$(LINUXBIOSROOT)/src/include
|
|
|
|
|
2004-04-15 00:24:50 +02:00
|
|
|
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
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2004-04-14 01:19:27 +02:00
|
|
|
all: getpir checkpir
|
|
|
|
|
2004-04-15 00:24:50 +02:00
|
|
|
checkpir: checkpir.c checksum.o irq_tables.o
|
|
|
|
gcc -o checkpir -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.o checksum.o checkpir.c
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2004-04-15 00:24:50 +02:00
|
|
|
checksum.o: checksum.c
|
|
|
|
gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) checksum.c
|
2004-04-13 23:06:45 +02:00
|
|
|
|
|
|
|
irq_tables.o: irq_tables.c
|
2004-04-14 01:19:27 +02:00
|
|
|
gcc -c -I$(INCLUDEPATH) -I$(INCLUDE2) irq_tables.c
|
2004-04-13 23:06:45 +02:00
|
|
|
|
|
|
|
clean:
|
2004-04-15 00:24:50 +02:00
|
|
|
rm -f getpir checkpir *.o *~
|
2004-04-13 23:06:45 +02:00
|
|
|
|
|
|
|
cleantable:
|
|
|
|
rm -f irq_table.o
|
|
|
|
|
|
|
|
test: checkpir
|
|
|
|
./checkpir ;\
|
|
|
|
exit 0;
|