-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.inc
More file actions
80 lines (59 loc) · 2.07 KB
/
Copy pathmakefile.inc
File metadata and controls
80 lines (59 loc) · 2.07 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
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
# makefile.inc (DataPlotter)
# 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
# wxWidgets include paths as system paths
LP2D_CFLAGS:=$(shell pkg-config --cflags lp2d)
LP2D_CFLAGS_D:=$(shell pkg-config --cflags lp2d_d)
# Compiler flags
CFLAGS = -Wall -Wextra $(LIB_INCDIRS) $(INCDIRS) -DwxUSE_GUI=1 -Wno-unused-local-typedefs
CFLAGS_RELEASE = $(CFLAGS) -O2 $(subst -I,-isystem,$(LP2D_CFLAGS))
CFLAGS_DEBUG = $(CFLAGS) -g $(subst -I,-isystem,$(LP2D_CFLAGS_D))
# Linker flags
LDFLAGS = $(LIBDIRS) $(LIBS)
LDFLAGS_RELEASE = $(LDFLAGS) `pkg-config --libs lp2d`
LDFLAGS_DEBUG = $(LDFLAGS) `pkg-config --libs lp2d_d`
# Object file output directory
OBJDIR = $(CURDIR)/.obj/
OBJDIR_DEBUG = $(OBJDIR)debug/
OBJDIR_RELEASE = $(OBJDIR)release/
# Binary file output directory
BINDIR = $(CURDIR)/bin/
# Library output directory
LIBOUTDIR = $(CURDIR)/.lib/
# Method for creating directories
MKDIR = mkdir -p
# Method for removing files
RM = rm -f