-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile.inc
74 lines (53 loc) · 1.79 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
# makefile.inc (PointPicker)
# This file contains all of the environment definitions
# common to each of the makefiles within the project.
#
# Include directories that are not already on the path
# DO NOT include the -I prefix to these paths - it will
# be added automatically
INCDIRS_TEMP = \
$(CURDIR)/src/
INCDIRS = $(addprefix -I,$(INCDIRS_TEMP))
# For 3rd party files - will be included as system files so warnings
# are ignored. These macros must be defined in your bashrc file.
LIB_INCDIRS_TEMP = \
$(EIGEN)
LIB_INCDIRS = $(addprefix -isystem,$(LIB_INCDIRS_TEMP))
# Library directories that are not already on the path
# DO NOT include the -L prefix to these paths - it will
# be added automatically
LIBDIRS_TEMP = \
LIBDIRS = $(addprefix -L,$(LIBDIRS_TEMP))
# Libraries to link against
# DO NOT include the -l prefix to these libraries - it
# will be added automatically
LIBS_TEMP = \
LIBS = $(addprefix -l,$(LIBS_TEMP))
# Static libraries to be built before the executable
# MUST be listed in order of dependence (i.e. first
# library must not be needed by other libraries and
# it must need information contained in the following
# libraries).
PSLIB = \
# Compiler to use
CC = g++
# Archiver to use
AR = ar rcs
RANLIB = ranlib
# Library output directory
LIBOUTDIR = $(CURDIR)/lib/
# Compiler flags
CFLAGS = -Wall -Wextra $(LIB_INCDIRS) $(INCDIRS) -std=c++17 -pedantic -pthread `wx-config --version="3.1" --cflags`
CFLAGS_D = -g $(CFLAGS)
# Linker flags
LDFLAGS = $(PSLIB) $(SLIBS) $(LIBDIRS) $(LIBS) `wx-config --version="3.1" --libs all`
# Object file output directory
OBJDIR = $(CURDIR)/.obj/
OBJDIR_REL = $(OBJDIR)release/
OBJDIR_DBG = $(OBJDIR)debug/
# Binary file output directory
BINDIR = $(CURDIR)/bin/
# Method for creating directories
MKDIR = mkdir -p
# Method for removing files
RM = rm -f