-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile.inc
71 lines (53 loc) · 1.73 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
# makefile.inc (CarDesigner)
# 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)/../common/include
INCDIRS = $(addprefix -I,$(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 build 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 = \
vRenderer \
vSolver \
vCar \
vMath \
vUtilities
# Compiler to use
CC = g++
# Archiver to use
AR = ar rcs
RANLIB = ranlib
# Compiler flags
CFLAGS = -g -Wall -Wextra $(INCDIRS) -I./include `wx-config --version=3.1 --cppflags` `pkg-config --cflags ftgl,gl` -DwxUSE_GUI=1 -D_VVASE_64_BIT_ -Wno-unused-local-typedefs -std=c++0x
# Linker flags
LDFLAGS = $(LIBDIRS) $(LIBS) `wx-config --version=3.1 --libs all` `pkg-config --libs ftgl,gl`
# Object file output directory
TOP_OBJDIR = .obj/
OBJDIR = $(CURDIR)/../$(TOP_OBJDIR)
# Binary file output directory
TOP_BINDIR = bin/
BINDIR = $(CURDIR)/../$(TOP_BINDIR)
# Library output directory
TOP_LIBOUTDIR = .lib/
LIBOUTDIR = $(CURDIR)/../$(TOP_LIBOUTDIR)
# Method for creating directories
MKDIR = mkdir -p
# Method for removing files
RM = rm -f