drivers/can_copcican_comedi/Makefile.in
author Christian Taedcke <hacking@taedcke.com>
Sat, 11 Dec 2010 14:24:09 +0100
changeset 644 11b21e9a92f6
parent 629 b9274b595650
permissions -rw-r--r--
FIXED: - added missing endif
* * *
FIXED: - moved #include <linux/delay.h> into the ifdef __KERNEL__ block
629
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     1
#! gmake
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     2
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     3
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     4
# Copyright (C) 2010 Cosateq GmbH & Co.KG
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     5
#               http://www.cosateq.com/
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     6
#               http://www.scale-rt.com/
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     7
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     8
# This file is part of canfestival, a library implementing the canopen
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     9
# stack
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    10
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    11
# This library is free software; you can redistribute it and/or
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    12
# modify it under the terms of the GNU Lesser General Public
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    13
# License as published by the Free Software Foundation; either
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    14
# version 2.1 of the License, or (at your option) any later version.
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    15
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    16
# This library is distributed in the hope that it will be useful,
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    19
# Lesser General Public License for more details.
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    20
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    21
# You should have received a copy of the GNU Lesser General Public
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    22
# License along with this library; if not, write to the Free Software
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    23
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    24
#
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    25
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    26
#ifneq ($(KERNELRELEASE),)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    27
# Kbuild part of Makefile
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    28
TARGET = SUB_TARGET
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    29
CAN_DRIVER = SUB_CAN_DRIVER
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    30
TIMERS_DRIVER = SUB_TIMERS_DRIVER
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    31
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    32
EXTRA_CFLAGS := -I$(src)/../../include
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    33
EXTRA_CFLAGS += -I$(src)/../../include/$(TARGET)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    34
EXTRA_CFLAGS += -I$(src)/../../include/$(CAN_DRIVER)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    35
EXTRA_CFLAGS += -I/usr/src/comedi/include
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    36
EXTRA_CFLAGS += SUB_PROG_CFLAGS
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    37
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    38
obj-m := can_copcican_comedi.o
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    39
can_copcican_comediko-objs =  $(CAN_DRIVER).o
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    40
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    41
#else
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    42
# Normal Makefile
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    43
PREFIX = SUB_PREFIX
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    44
KERNELDIR := SUB_KERNELDIR
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    45
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    46
all: driver
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    47
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    48
driver:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    49
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) modules
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    50
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    51
clean:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    52
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) clean
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    53
	rm -f Module.symvers
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    54
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    55
mrproper: clean
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    56
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    57
install:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    58
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) modules_install
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    59
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    60
#endif