2007-04-11 20:44:42 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2007-04-11 20:44:42 +02:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-O2 -D_GNU_SOURCE -DGETPIR -Wall
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2004-04-14 01:19:27 +02:00
|
|
|
all: getpir checkpir
|
2007-04-11 20:44:42 +02:00
|
|
|
./checkpir
|
2004-04-14 01:19:27 +02:00
|
|
|
|
2007-04-11 20:44:42 +02:00
|
|
|
getpir: getpir.o checksum.o code_gen.o
|
|
|
|
$(CC) $(CFLAGS) -o getpir $^
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2007-04-11 20:44:42 +02:00
|
|
|
checkpir: checkpir.c checksum.o irq_tables.o
|
|
|
|
$(CC) $(CFLAGS) -o checkpir $^
|
2004-04-13 23:06:45 +02:00
|
|
|
|
2007-04-11 20:44:42 +02:00
|
|
|
irq_tables.c: getpir
|
|
|
|
./getpir
|
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
|
|
|
|
2007-04-11 20:44:42 +02:00
|
|
|
distclean: clean
|
|
|
|
rm -f irq_tables.o irq_tables.c
|
2004-04-13 23:06:45 +02:00
|
|
|
|