-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile
48 lines (34 loc) · 1.07 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
47
48
# VEXcode makefile 2019_03_26_01
# show compiler output
VERBOSE = 0
# include toolchain options
include vex/mkenv.mk
# location of the project source cpp and c files
SRC_C = $(wildcard src/*.cpp)
SRC_C += $(wildcard src/*.c)
SRC_C += $(wildcard src/*/*.cpp)
SRC_C += $(wildcard src/*/*.c)
# Core repo cpp and c files
SRC_C += $(wildcard core/src/*.cpp)
SRC_C += $(wildcard core/src/*.c)
SRC_C += $(wildcard core/src/*/*.cpp)
SRC_C += $(wildcard core/src/*/*.c)
SRC_C += $(wildcard core/src/*/*/*.c)
SRC_C += $(wildcard core/src/*/*/*.cpp)
OBJ = $(addprefix $(BUILD)/, $(addsuffix .o, $(basename $(SRC_C))) )
# location of include files that c and cpp files depend on
SRC_H = $(wildcard include/*.h)
# Core repo header files
SRC_H += $(wildcard core/include/*.h)
SRC_H += $(wildcard core/include/*/*.h)
SRC_H += $(wildcard core/include/*/*/*.h)
# Vendor include directories
INC += -Ivendor/eigen
# additional dependancies
SRC_A = makefile
# project header file locations
INC_F = include
# build targets
all: $(BUILD)/$(PROJECT).bin
# include build rules
include vex/mkrules.mk