-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
55 lines (41 loc) · 1.17 KB
/
makefile
File metadata and controls
55 lines (41 loc) · 1.17 KB
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
##########################################
# The MIT License (MIT) #
# Copyright (c) 2016 #
# Jeremy Cope #
##########################################
# The complete terms can be found in the #
# license file located in directory root.#
##########################################
include ${__TOOLDIR}/mk/header.mk
##########################################
SOURCE = main.cpp
INCLUDES = \
-I.\
-I./src/include\
-I./src\
-I./src/3rdParty/Arduino\
-I./src/3rdParty/Arduino/ArduinoCore\
-I./src/3rdParty/Arduino/varients/standard
PROGRAM_DEPENDENCIES = \
$(OBJDIR)/$(SOURCE:.cpp=.$(OBJEXT))
PROGRAM_MODULES = \
${__ROOTDIR}/src/SampleClass
PROGRAM_LIBRARIES = \
-lSampleClass
ifeq (${__TARGET},ARDUINO)
PROGRAM_MODULES :=\
${__ROOTDIR}/src/3rdParty/Arduino/ArduinoCore\
${__ROOTDIR}/src/3rdParty/Arduino/SPI\
${__ROOTDIR}/src/SampleClass
PROGRAM_LIBRARIES := \
-lSampleClass\
-lSPI\
-lArduinoCore
endif
PROGRAM_LIB_INCLUDES = \
-L./lib
##Make sure to define the default and clean rules for directory
default: program
clean: clean_all
##########################################
include ${__TOOLDIR}/mk/footer.mk