Modified license header of some files
[staging/basesystem.git] / module / kernel-module-evklib / Makefile
1 # @copyright Copyright (c) 2016-2020 TOYOTA MOTOR CORPORATION.
2 #
3 # This file is free software; you can redistribute it and/or modify
4 # it under the terms of version 2 of the GNU General Public License
5 # as published by the Free Software Foundation.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 # GNU General Public License for more details.
11 #
12 # You should have received a copy of the GNU General Public License
13 # along with this program; if not, write to the Free Software Foundation,
14 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
15
16 CFILES = evk_lib.c
17
18 obj-m := evk_lib.o
19 evklib-objs := $(CFILES:.c=.o)
20
21 U_INCLUDE += -I$(PWD)
22 U_INCLUDE += -I$(KERNEL_SRC)/include
23 ccflags-y += $(U_INCLUDE)
24
25 all:
26         $(MAKE) -C $(KERNEL_SRC) M=$(PWD)
27
28 modules_install:
29         $(MAKE) -C $(KERNEL_SRC) M=$(PWD) modules_install
30
31 clean:
32         $(MAKE) -C $(KERNEL_SRC) M=$(PWD) clean