forked from koreal6803/idea
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.mk
77 lines (52 loc) · 1.12 KB
/
common.mk
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
#############################################################################
# File [ common.mk ]
# Author [ littleshamoo ]
# Synopsis [ project layout and common flags ]
# Date [ 2011/11/30 ]
#############################################################################
# shell
SHELL = /bin/bash
# verbosity
VERBOSE = 0
# TOP layout
PKG_TOP = pkg
LIB_TOP = lib
INC_TOP = include
BIN_TOP = bin
# packge layout
INC_DIR = src
SRC_DIR = src
BIN_DIR = bin
# tmp layout
TMP_TOP = .tmp
# C/C++
CXX = g++
CC = gcc
CMN_C_FLAGS = -Wall
C_DYN_FLAGS = -fPIC
# lex
LEX = flex
CMN_L_FLAGS =
# yacc
YACC = bison
CMN_Y_FLAGS = -d
# Qt
MOC = moc-qt4
CMN_MOC_FLAGS =
QT_PATH = /usr
# CUDA
NVCC = nvcc
CMN_NV_FLAGS =
NV_DYN_FLAGS = -Xcompiler -fPIC
CU_TOOL_PATH = /usr/local/cuda
CU_SDK_PATH = /usr/local/cuda_sdk_4.2
# link
LD = g++
CMN_INCS =
CMN_LD_PATHS =
CMN_LD_LIBS =
CMN_LD_FLAGS =
# archive
AR = ar
AR_FLAGS = cr
RANLIB = ranlib