~ubuntu-branches/debian/lenny/wacom-tools/lenny

« back to all changes in this revision

Viewing changes to linuxwacom/src/2.6.9/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Ron Lee
  • Date: 2004-12-10 16:12:07 UTC
  • Revision ID: james.westby@ubuntu.com-20041210161207-cw8urijtjsqvk2e3
Tags: upstream-0.6.6
ImportĀ upstreamĀ versionĀ 0.6.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
############################ 2.6 kernel compile ###############################
 
2
ifneq ($(KERNELRELEASE),)
 
3
# We were called by kbuild
 
4
 
 
5
# only compile those modules which are enabled by global configure
 
6
ifeq ($(WCM_OPTION_HID),yes)
 
7
# check if HID module should be usbhid.ko or hid.ko
 
8
NEWHID := $(shell test $(SUBLEVEL) -ge 6 && echo usb)
 
9
 
 
10
$(NEWHID)hid-objs := hid-core.o
 
11
 
 
12
# behave exactly as kernel config wants us to behave
 
13
ifeq ($(CONFIG_USB_HIDDEV),y)
 
14
        $(NEWHID)hid-objs += hiddev.o
 
15
endif
 
16
ifeq ($(CONFIG_USB_HIDINPUT),y)
 
17
        $(NEWHID)hid-objs += hid-input.o
 
18
endif
 
19
ifeq ($(CONFIG_HID_PID),y)
 
20
        $(NEWHID)hid-objs += pid.o
 
21
endif
 
22
ifeq ($(CONFIG_LOGITECH_FF),y)
 
23
        $(NEWHID)hid-objs += hid-lgff.o
 
24
endif
 
25
ifeq ($(CONFIG_THRUSTMASTER_FF),y)
 
26
        $(NEWHID)hid-objs += hid-tmff.o
 
27
endif
 
28
 
 
29
ifeq ($(CONFIG_HID_FF),y)
 
30
        $(NEWHID)hid-objs += hid-ff.o
 
31
endif
 
32
 
 
33
        obj-m += $(NEWHID)hid.o
 
34
endif # WCM_OPTION_HID
 
35
 
 
36
ifeq ($(WCM_OPTION_WACOM),yes)
 
37
        obj-m += wacom.o
 
38
endif
 
39
 
 
40
ifeq ($(WCM_OPTION_EVDEV),yes)
 
41
        obj-m += evdev.o
 
42
endif
 
43
 
 
44
ifeq ($(WCM_OPTION_MOUSEDEV),yes)
 
45
        obj-m += mousedev.o
 
46
endif
 
47
 
 
48
ifeq ($(WCM_OPTION_USBMOUSE),yes)
 
49
        obj-m += usbmouse.o
 
50
endif
 
51
 
 
52
else  # We were called from command line
 
53
PWD  := $(shell pwd)
 
54
 
 
55
KDIR := @WCM_KERNELDIR@
 
56
WCM_OPTION_WACOM := @WCM_OPTION_WACOM@
 
57
WCM_OPTION_HID := @WCM_OPTION_HID@
 
58
WCM_OPTION_EVDEV := @WCM_OPTION_EVDEV@
 
59
WCM_OPTION_MOUSEDEV := @WCM_OPTION_MOUSEDEV@
 
60
WCM_OPTION_USBMOUSE := @WCM_OPTION_USBMOUSE@
 
61
WCM_OPTION_INPUT := @WCM_OPTION_INPUT@
 
62
 
 
63
export WCM_OPTION_WACOM WCM_OPTION_HID WCM_OPTION_EVDEV WCM_OPTION_MOUSEDEV \
 
64
        WCM_OPTION_USBMOUSE WCM_OPTION_INPUT
 
65
 
 
66
COPY_FROM_KERNEL_TREE := hiddev.c hid.h hid-ff.c hid-input.c
 
67
COPY_FROM_KERNEL_TREE += hid-lgff.c hid-tmff.c pid.c pid.h
 
68
 
 
69
all:
 
70
# Copy hid-stuff from kernel-dir to local dir
 
71
ifeq ($(WCM_OPTION_HID),yes)
 
72
        @for i in $(COPY_FROM_KERNEL_TREE); do \
 
73
                cp $(KDIR)/drivers/usb/input/$$i .; \
 
74
        done
 
75
endif
 
76
 
 
77
        @echo '    Building linuxwacom drivers for 2.6 kernel.'
 
78
        $(MAKE) -C $(KDIR) M=$(PWD)
 
79
 
 
80
endif  # End kbuild check
 
81
 
 
82
######################### Version independent targets ##########################
 
83
 
 
84
clean:
 
85
        rm -rf *.o *.ko *.mod.* .[a-z]* core *.i
 
86
 
 
87
EMPTY_AUTOMAKE_TARGETS = distdir install install-data install-exec uninstall install-info
 
88
EMPTY_AUTOMAKE_TARGETS += installdirs check dvi pdf ps info html tags ctags mostlyclean distclean maintainer-clean
 
89
.PHONY: $(EMPTY_AUTOMAKE_TARGETS)
 
90
        $(EMPTY_AUTOMAKE_TARGETS):