-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.defs
115 lines (93 loc) · 2.17 KB
/
Makefile.defs
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#
# Makefile.defs --
#
# Author -- Pedro Aguilar <[email protected]>
#
# Copyright (c) 2004 - 2006 Pedro Aguilar
#
# Description: General definitions for the whole project
#
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
###
### Programs
###
MAKE = make
CC = arm-linux-gnueabi-gcc
LEX = flex
YACC = yacc
###
### Targets
###
TARGET = crish
###
### Compiler and linker flags
###
CFLAGS += -O2 -Wall -DLINUX
LDFLAGS += -lm -lpthread
YACC_FLAGS += -DYYERROR_VERBOSE
###
### Directory defines
###
CLI_DIR = cli
GUI_DIR = gui
RHAL_DIR = rhal
UTILS_DIR = utils
CMDS_DIR = /home/arkady/Downloads/tarasca-0.3.2/commands
###
### Configuration flags (set by user in 'configure')
###
ENABLE_AUTH = 0
ifeq ($(ENABLE_AUTH), 1)
CONFIG_FLAGS += -DENABLE_AUTH
### Encryption
CRYPT_FLAGS = -lmhash -lmcrypt
endif
ENABLE_SHELL_MSG = 1
ifeq ($(ENABLE_SHELL_MSG), 1)
CONFIG_FLAGS += -DENABLE_SHELL_MSG
endif
ENABLE_LAST_LOGIN = 0
ifeq ($(ENABLE_LAST_LOGIN), 1)
CONFIG_FLAGS += -DENABLE_LAST_LOGIN
endif
ENABLE_END_MSG = 0
ifeq ($(ENABLE_END_MSG), 1)
CONFIG_FLAGS += -DENABLE_END_MSG
endif
ENABLE_GUI = 0
ifeq ($(ENABLE_GUI), 1)
CONFIG_FLAGS += -DENABLE_GUI
endif
ENABLE_LOGS = 0
ifeq ($(ENABLE_LOGS), 1)
CONFIG_FLAGS += -DENABLE_LOGS
endif
###
### Debug (set by user in 'configure')
###
DEBUG_PRINTF = 0
DEBUG_RHAL = 0
DEBUG_SHELL = 0
ifeq ($(DEBUG_RHAL), 1)
DEBUG_FLAGS += -DDEBUG_RHAL
endif
ifeq ($(DEBUG_PRINTF), 1)
DEBUG_FLAGS += -DDEBUG_PRINTF
endif
ifeq ($(DEBUG_SHELL), 1)
DEBUG_FLAGS += -DDEBUG_SHELL
endif