-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.inc
143 lines (108 loc) · 4.5 KB
/
Makefile.inc
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#============================================================================
#
# makefile-include for bmptk:
# sets
# - CPP_LANGUAGE to C++ 17, and enables concepts
# - the search path (the hwcpp/include, targets, and avr8-hacks)
# - the dependencies (all hwlib source files)
#
# (c) Wouter van Ooijen ([email protected]) 2017
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
#============================================================================
# required C++ command-line settings
CPP_LANGUAGE += -std=c++17 -fconcepts
# the HwCPP file locations
SEARCH += $(HWCPP)/include
SEARCH += $(HWCPP)/include/core
SEARCH += $(HWCPP)/include/targets
SEARCH += $(HWCPP)/include/chips
SEARCH += $(HWCPP)/include/shields
# dirty hack because the AVR8 compiler lacks certain files
# https://github.com/maniacbug/StandardCplusplus
ifeq ($(TARGET),arduino_uno)
CPP_LANGUAGE += -I $(HWCPP)/include/targets/avr8-hacks
#CPP_LANGUAGE += -isystem C:/avr-gcc-7.2.0-x86-mingw/avr/include
#CPP_LANGUAGE += -isystem C:/SysGCC/arm-eabi/arm-eabi/include/c++/7.2.0/arm-eabi
#CPP_LANGUAGE += -isystem C:/SysGCC/arm-eabi/arm-eabi/include/c++/7.2.0
endif
ifeq ($(TARGET),atmega328)
CPP_LANGUAGE += -I $(HWCPP)/include/targets/avr8-hacks
#CPP_LANGUAGE += -isystem C:/avr-gcc-7.2.0-x86-mingw/avr/include
#CPP_LANGUAGE += -isystem C:/SysGCC/arm-eabi/arm-eabi/include/c++/7.2.0/arm-eabi
#CPP_LANGUAGE += -isystem C:/SysGCC/arm-eabi/arm-eabi/include/c++/7.2.0
endif
# HwCpp core files
HEADERS += hwcpp.hpp
HEADERS += hwcpp-all.hpp
HEADERS += hwcpp-basics.hpp
HEADERS += hwcpp-buffer.hpp
HEADERS += hwcpp-bs-box.hpp
HEADERS += hwcpp-bs-stream.hpp
HEADERS += hwcpp-bs-buffering.hpp
HEADERS += hwcpp-bs-fanout.hpp
HEADERS += hwcpp-bs-no-inline.hpp
HEADERS += hwcpp-box-adapters.hpp
HEADERS += hwcpp-box-invert.hpp
HEADERS += hwcpp-box-mirror.hpp
HEADERS += hwcpp-box-builder.hpp
HEADERS += hwcpp-pins.hpp
HEADERS += hwcpp-pin-adapters.hpp
HEADERS += hwcpp-pin-dummies.hpp
HEADERS += hwcpp-pin-fixed.hpp
HEADERS += hwcpp-pin-variables.hpp
HEADERS += hwcpp-ports.hpp
HEADERS += hwcpp-port-adapters.hpp
HEADERS += hwcpp-port-dummies.hpp
HEADERS += hwcpp-port-from-pins.hpp
HEADERS += hwcpp-port-from-buffers.hpp
HEADERS += hwcpp-adc.hpp
HEADERS += hwcpp-dac.hpp
HEADERS += hwcpp-graphics.hpp
HEADERS += hwcpp-stream-builder.hpp
HEADERS += hwcpp-stream-out-formatting.hpp
HEADERS += hwcpp-stream-object.hpp
HEADERS += hwcpp-timing.hpp
HEADERS += hwcpp-timing-waiting.hpp
HEADERS += hwcpp-timing-clocking.hpp
//HEADERS += hwcpp-timing-ticker.hpp
HEADERS += hwcpp-i2c.hpp
HEADERS += hwcpp-spi.hpp
HEADERS += hwcpp-console.hpp
HEADERS += hwcpp-string.hpp
# HwCpp supported external chips
HEADERS += hwcpp-pcf8574.hpp
HEADERS += hwcpp-pcf8591.hpp
HEADERS += hwcpp-hd44780.hpp
HEADERS += hwcpp-ssd1306.hpp
HEADERS += hwcpp-nrf24.hpp
HEADERS += hwcpp-mfrc522.hpp
# HwCpp supported displays
HEADERS += hwcpp-oleds.hpp
# HwCpp supported arduino shields
HEADERS += hwcpp-lcd-buttons.hpp
HEADERS += hwcpp-joystick-buttons.hpp
HEADERS += hwcpp-funduino-joystick.hpp
HEADERS += hwcpp-i2c-lcd.hpp
# etc
HEADERS += hwcpp-demos.hpp
HEADERS += hwcpp-tests.hpp
# HwCpp HAL files
HEADERS += hwcpp-chip-sam3x8e.hpp
HEADERS += hwcpp-chip-sam3xa.inc
HEADERS += hwcpp-target-sam3x8e.hpp
HEADERS += hwcpp-target-arduino-due.hpp
HEADERS += hwcpp-chip-atmega328.hpp
HEADERS += hwcpp-target-atmega328.hpp
HEADERS += hwcpp-target-sam3x8e.hpp
HEADERS += hwcpp-target-arduino-uno.hpp
HEADERS += hwcpp-chip-stm32f103c8.hpp
HEADERS += hwcpp-target-stm32f103c8.hpp
HEADERS += hwcpp-target-blue-pill.hpp
HEADERS += hwcpp-target-stm32-minisystem.hpp
# add Catch
# (used by some of the tests)
SEARCH += $(CATCH)/include