Zitat
Before compiling, you have make a symlink depending on which version
of XFree you're using: for 3.3.6, do "ln -s xc-3.3.6 xc", for 4.0
"ln -s xc-4.0 xc".
Zitat
prefix = /usr
#includedir = ${prefix}/include
#x_includes = /usr/X11R6/include
#XFPATH = /usr/src/redhat/BUILD/xfree86/xc
x_module_dir = $(prefix)/X11R6/lib/modules
CC=gcc
SOFLAGS = -shared
OPTFLAGS = -O2 -mcpu=pentium -march=pentium -ffast-math -fomit-frame-pointer
XFLAGS = -DDYNAMIC_MODULE -DXINPUT -DXKB -DFUNCPROTO=15 \
-Ixc/programs/Xserver/hw/xfree86/common/ \
-Ixc/programs/Xserver/include -Ixc/include \
-Ixc/programs/Xserver/hw/xfree86/os-support \
-Ixc/include/extensions -Ixc/programs/Xserver/hw/xfree86 \
-Ixc/programs/Xserver/os \
-Ixc/programs/Xserver/mi -Ixc/include
# Use these include pathes instead when you want to use your own XFree sources
# -I$(XFPATH)/programs/Xserver/include\
# -I$(XFPATH)/include/extensions\
# -I$(XFPATH)/programs/Xserver/hw/xfree86\
# -I$(XFPATH)/programs/Xserver/hw/xfree86/common\
# -I$(XFPATH)/programs/Xserver/os\
# -I$(XFPATH)/programs/Xserver/hw/xfree86/os-support
CFLAGS = $(OPTFLAGS) $(XFLAGS) -Iinclude -Wall #-I$(x_includes)
# Set to -DINI_DEBUG_LEVEL=0 if you never want debug messages
DEBUG = -DINI_DEBUG_LEVEL=1
DEFINES = -DGCCUSESGAS $(DEBUG)
INSTALL = /usr/bin/install -c -g root -m 755 -o root -p
#RELEASE=HyperPen.so
#XFree 3.3.6:
RELEASE=xf86Hyperpen.so
all: $(RELEASE)
clean:
rm -f *.so *.o
$(RELEASE): xf86HyperPen.c
$(CC) $(CFLAGS) $(DEFINES) -c -o xf86HyperPen.o xf86HyperPen.c
$(CC) $(SOFLAGS) -o $(RELEASE) xf86HyperPen.o
install: all
mkdir -p $(x_module_dir)
$(INSTALL) $(RELEASE) $(x_module_dir)
# driver install ? Don't know how it works
# $(INSTALL) xf86HyperPen.o $(x_module_dir)/input/hyperpen_drv.o
uninstall:
rm -f $(x_module_dir)/$(RELEASE)
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »lilith2k3« (26.10.2007, 12:49)
Zitat
INPUT_DEVICES="keyboard mouse hyperpen"
Zitat
InputDevice "TevionTablet"
Zitat
Load "hyperpen"
Zitat
Section "InputDevice"
Identifier "TevionTablet"
Driver "hyperpen"
Option "Device" "/dev/ttyS0"
Option "Mode" "absolute"
Option "Cursor" "Stylus"
Option "ActiveArea" "50 40"
Option "XSize" "600"
Option "YSize" "450"
Option "AlwaysCore" "on"
Option "Pressure" "linear"
Option "XThreshold" "40"
Option "YThreshold" "40"
Option "PMin" "25"
Option "PMax" "1000"
Option "BaudRate" "19200"
EndSection