#
# Define this if you want pnpdump to dump the device configuration
# registers (not normally useful as it is before configuration)
#
#PNPDUMPFLAGS = -DDUMPREGS
#
# Define REALTIME if you want to run with realtime scheduling, this
# cuts down the isolation and configuration time for a single card
# from 6s to less than 100ms.
# NOTE though, if it hangs, no other process will get processor time.
# You can use ^C to kill it.
# This can only be used with recent kernels, and I have only tested
# it on Linux.2.0.0. It certainly won't work on 1.2.13.
# nanosleep only went into the kernel at 1.3.67, but whether it
# worked or not, I know not.
#
PNPFLAGS = -DREALTIME

CFLAGS = -O2 -Wall $(PNPDUMPFLAGS) $(PNPFLAGS)

all:	pnpdump isapnp

pnpdump: pnpdump.o

pnpdump.o: pnp.h Makefile

isapnp: isapnp.o

isapnp.c: isapnp.y pnp.h Makefile
	flex -i -t isapnp.y > isapnp.c

clean:
	rm -f *.o isapnp.c isapnp pnpdump *~

spotless: clean
	rm -f pnpdump isapnp

