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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
#
# If you got the binary distribution and want to install the
# precompiled binaries, use
# make install.bin install.man
#
# Define this if you want pnpdump to dump the device configuration
# registers (not normally useful as it is before configuration)
#
#PNPDUMPFLAGS += -DDUMPREGS
#
# Define this if you want to abort on resource dump error
#
PNPDUMPFLAGS += -DABORT_ONRESERR
#
# Define READ_ADDR_SKIP to a different multiple of 4 if desired
#
#PNPFLAGS += -DREAD_ADDR_SKIP=8
#
# 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 still use ^C to kill it though.
# This can only be used with recent kernels, and I have only tested
# it on Linux.2.0.10. 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.
#
# Depending on your libraries, you may need to define the NEED*s.
# For libc-5.2.18, you'll need them both.
# For libc-5.3.12, I suspect you may not want NEEDNANOSLEEP.
# For glibc-2.0, you don't want NEEDSETSCHEDULER or NEEDNANOSLEEP, and
# the code will ignore these defines if it detects
# glibc 2.0 or later.
# For cross-compiling for DOS, you don't want NEEDSETSCHEDULER or NEEDNANOSLEEP, and
# the code will ignore these defines if it detects
# glibc 2.0 or later.
#
PNPFLAGS += -DREALTIME -DNEEDSETSCHEDULER -DNEEDNANOSLEEP
#
# Linux on ALPHA/AXP should already define this, but just in case..
#
#PNPFLAGS += -D_AXP_
#
# Set this if cross-compiling for DOS using djgpp
#
#CC = gcc -b i386-go32-msdos
INSTALLBINDIR = $(DESTDIR)/sbin
INSTALLMANDIR = $(DESTDIR)/usr/man
CFLAGS = -O2 -Wall $(PNPDUMPFLAGS) $(PNPFLAGS)
all: pnpdump isapnp
install: pnpdump isapnp install.bin install.man
install.bin:
install -s -m 0700 pnpdump $(INSTALLBINDIR)
install -s -m 0700 isapnp $(INSTALLBINDIR)
install.man:
install -m 0644 isapnp.8 $(INSTALLMANDIR)/man8
install -m 0644 isapnp.conf.5 $(INSTALLMANDIR)/man5
install -m 0644 pnpdump.8 $(INSTALLMANDIR)/man8
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
isapnp.8.html: isapnp.8
man2html isapnp.8
pnpdump.8.html: pnpdump.8
man2html pnpdump.8
isapnp.conf.5.html: isapnp.conf.5
man2html isapnp.conf.5
html: isapnp.8.html pnpdump.8.html isapnp.conf.5.html
clean:
rm -f *.o isapnp.c *~
dosclean: clean
rm -f pnpdump isapnp
spotless: clean
rm -f pnpdump isapnp *.exe
|