-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
42 lines (29 loc) · 946 Bytes
/
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
#!/usr/bin/env make
PACKAGE := SI-AssociateManagerBackend
MAKEMODULES := projectFiles/makeModules
include $(MAKEMODULES)/defaultEnv.mk
include $(MAKEMODULES)/findutils.mk
.DEFAULT_GOAL := all
.SUFFIXES :=
# Default flags
CPPFLAGS ?= -DDEBUG
CXXFLAGS ?= -g
LDFLAGS ?=
# Mandatory flags
cppflags := -I$(INCLUDEDIR)
cxxflags := -std=c++17
ldflags :=
# Project settings
EXEPATH := $(DISTDIR)/main.elf
src := $(call findutils_gensrclist,-type f -name *.cpp -print)
dep := $(subst $(SRCDIR),$(COMPDIR),$(src:.cpp=.d))
obj := $(dep:.d=.o)
include $(MAKEMODULES)/libConfig.mk
ALL_CPPFLAGS := $(sort $(cppflags) $(CPPFLAGS) $(lib.cppflags))
ALL_CXXFLAGS := $(sort $(cxxflags) $(CXXFLAGS))
ALL_LDFLAGS := $(sort $(ldflags) $(LDFLAGS) $(lib.ldflags))
ALL_OBJ := $(sort $(obj) $(lib.obj))
include $(MAKEMODULES)/GNUTargets.mk
include $(MAKEMODULES)/targets.mk
include $(MAKEMODULES)/cxxTargets.mk
include $(MAKEMODULES)/inspector.mk