-
Notifications
You must be signed in to change notification settings - Fork 9
/
makefile
46 lines (36 loc) · 1.28 KB
/
makefile
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
# Project name, used for output files et.c.
PROJECTNAME = MyAUTOSARProject-ECU
#################### Arctic Core make system ######################
# Following is an explanation of the most usable features
# of the Arctic Core make system.
#
# obj-y : list of object files to build.
# VPATH : list of directories in which to
# look for source files.
# inc-y : list of directories in which to
# look for header files.
# libitem-y : list of libraries to include.
# build-exe-y : the name of build the output file.
# ldcmdfile-y: path to linkscript, used when building "build-exe-y"
#
# For more information see:
# http://arccore.com/wiki/Makesystem
###################################################################
#MCAL make files
include ../MCAL/mcal.mod.mk
VPATH += ../MCAL/MCAL_Integration/src
inc-y += ../MCAL/MCAL_Integration/include
obj-y += integration.o
include $(ROOTDIR)/scripts/project_defaults.mk
#include $(ROOTDIR)/scripts/rules.mk
VPATH += ../include
inc-y += ../include
VPATH += ../config/$(board_name)
inc-y += ../config/$(board_name)
# Project files (adds all .c files in src directory)
VPATH += ../src
inc-y += ../src
PROJECT_C_FILES=$(notdir $(wildcard ../*.c))
PROJECT_C_FILES+=$(notdir $(wildcard ../src/*.c))
obj-y += $(PROJECT_C_FILES:%.c=%.o)
inc-y += ..