Repository navigation
Expand file tree
/
Copy pathMakefile.tools
More file actions
75 lines (62 loc) · 1.42 KB
/
Copy pathMakefile.tools
File metadata and controls
75 lines (62 loc) · 1.42 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
#Makefile tools
#include configuration
include Makefile.conf
# Commands
#Set the various commands used in the makefile
#You can configure additional options in the method call
RM := @rm -vrf
COPY := @cp -Rv
CP := @cp -R
ECHO := @echo
MKDIR := mkdir -p
ifeq ($(OS_TYPE), windows)
MKDIR := mkdir
CP := copy
COPY := copy
RM := rmdir /S /Q
SHELL := cmd
endif
# Includes and libraries
#Compute the include and library paths
#For macos target, also add frameworks
INCLUDES :=
ifneq ($(INCLUDES_DIR),)
INCLUDES := $(addprefix -I , $(INCLUDES_DIR))
endif
LIBRARIES :=
ifneq ($(LIBRARIES_DIR),)
LIBRARIES := $(addprefix -L , $(LIBRARIES_DIR))
endif
LIBRARIES += $(LIBS)
ifeq ($(TARGET),macos)
ifneq ($(FRAMEWORKS_DIR),)
INCLUDES += $(addprefix -F , $(FRAMEWORKS_DIR))
LIBRARIES += $(addprefix -F , $(FRAMEWORKS_DIR))
endif
LIBRARIES += $(addprefix -framework , $(FRAMEWORKS))
endif
ifeq ($(DEBUG), yes)
CXXFLAGS += -g3 -gdwarf-2 -W -Wall
CFLAGS += -g3 -gdwarf-2 -W -Wall
LDFLAGS +=
#LFLAGS += --debug
YFLAGS += --debug
else
CFLAGS += -Os
CXXFLAGS += -Os
LDFLAGS +=
endif
ifeq ($(VERBOSE), yes)
CFLAGS += -v
CXXFLAGS += -v
LDFLAGS += -v
LFLAGS += -v
YFLAGS += -v
endif
LEX := /usr/bin/flex
YACC := /usr/bin/bison -v
CXX := /usr/local/gcc/4.7/bin/x86_64-linux-linux-g++
CXX := /usr/local/gcc/4.7/bin/g++-4.7-nighty
C := /usr/local/gcc/4.7/bin/x86_64-linux-linux-gcc
C := /usr/local/gcc/4.7/bin/gcc-4.7-nighty
LD := $(CXX)