-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-uCk2.4
86 lines (69 loc) · 2.41 KB
/
Makefile-uCk2.4
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
#
# Makefile for the linux CAN drivers.
#
# uClinux kernel 2.4.x
#
# (C) H.-J. Oertel oe@port.de
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Source: /var/cvs/uClinux-2.4.x/drivers/char/can4linux/Makefile,v $
# $Revision: 1.1 $
# $Date: 2003/07/18 00:11:46 $
# Used release tag for this software version
VERSION=3
REL=4.6
RELEASE=CAN4LINUX-$(VERSION)_$(REL)
DVERSION=$(VERSION).$(REL)
#
# The CAN driver major device number
# The new linux/Documentation/devices.txt defines major=91
CAN_MAJOR= 91
EXTRA_CFLAGS += -DVERSION=\"$(DVERSION)_$(TARGET)\" -DCan_MAJOR=$(CAN_MAJOR) \
-DDEBUG=1 -DDEFAULT_DEBUG
O_TARGET := Can.o
obj-y := core.o open.o select.o sysctl.o write.o \
close.o ioctl.o read.o async.o util.o \
debug.o error.o
##########################################################################
ifeq ($(CONFIG_CAN_ATCANMINI),y)
obj-y += sja1000funcs.o
EXTRA_CFLAGS += -DATCANMINI_PELICAN -DMAX_CHANNELS=2
TARGET=ATCANMINI_PELICAN
endif
##########################################################################
ifeq ($(CONFIG_CAN_CCPC104),y)
obj-y += sja1000funcs.o
EXTRA_CFLAGS += -DCCPC104 -DMAX_CHANNELS=2
TARGET=CTRLink_PC104
endif
##########################################################################
ifeq ($(CONFIG_CAN_MCF5282),y)
obj-y += mcf5282funcs.o
EXTRA_CFLAGS += -DMCF5282 -DMAX_CHANNELS=1
TARGET=ColdFire_FlexCAN
endif
##########################################################################
ifeq ($(CONFIG_CAN_MCF5282_MODULE),y)
obj-y += mcf5282funcs.o
EXTRA_CFLAGS += -DMCF5282 -DMAX_CHANNELS=1
TARGET=ColdFire_FlexCAN
endif
obj-y += mcf5282funcs.o
EXTRA_CFLAGS += -DMCF5282 -DMAX_CHANNELS=1
TARGET=ColdFire_FlexCAN
##########################################################################
obj-m := $(O_TARGET)
include $(TOPDIR)/Rules.make