examples/test_copcican_comedi/Makefile.in
author Christian Taedcke <hacking@taedcke.com>
Mon, 23 Jan 2012 21:40:59 +0100
changeset 709 4a8b50dcc4c0
parent 629 b9274b595650
permissions -rw-r--r--
win32:
- Added visual studio 2010 solution file and project files. Some driver that
does not work are disabled in the configuration manager.
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$(src)/../../include/$(TIMERS_DRIVER)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    36
EXTRA_CFLAGS += -I/usr/src/comedi/include
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    37
EXTRA_CFLAGS += SUB_PROG_CFLAGS
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    38
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    39
OBJS := test_copcican_comedi.o
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    40
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    41
obj-m := test_copcican_comedi.o
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    42
test_copcican_comediko-objs := $(OBJS)
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    43
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    44
#else
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    45
# Normal Makefile
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    46
CC = SUB_CC
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    47
PREFIX = SUB_PREFIX
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    48
KERNELDIR := SUB_KERNELDIR
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    49
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    50
all: test_copcican_comedi
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    51
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    52
test_copcican_comedi:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    53
	cat ../../drivers/can_copcican_comedi/Module.symvers > Module.symvers
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    54
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) modules
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    55
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    56
clean:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    57
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) clean
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    58
	rm -f Module.symvers
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    59
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    60
mrproper: clean
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    61
	rm -f test_copcican_comedi.c
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    62
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    63
install:
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    64
	$(MAKE) -C $(KERNELDIR) M=$(shell pwd) modules_install
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    65
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    66
#endif