summaryrefslogtreecommitdiff
path: root/Makefile.kernel26
blob: ee8502becdcd6627c0ca5e9d5057f59880f995bd (plain)
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
obj-m := $(MODULESO)
obj-m += wct4xxp/ wctc4xxp/

# Also build xpp in the subdirectory xpp/ . But only for >=2.6.8 and only 
# for i386 or x86_64. On other platforms it has still not been tested well 
# enough.
ifneq (,$(shell [ 0$(SUBLEVEL) -ge 8 ] && echo 1))
ifeq ($(ARCH),i386)
obj-m+=xpp/
endif
ifeq ($(ARCH),x86_64)
obj-m+=xpp/
endif
endif

EXTRA_CFLAGS := -I$(src)

zaptel-objs := zaptel-base.o

ifeq ($(HPEC_PRESENT),yes)
ifeq ($(ARCH),i386)
zaptel-objs += hpec/hpec_x86_32.o
endif

ifeq ($(ARCH),x86_64)
zaptel-objs += hpec/hpec_x86_64.o
endif

EXTRA_CFLAGS += -DECHO_CAN_HPEC -I$(src)/hpec
endif