-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
67 lines (41 loc) · 1.08 KB
/
Makefile.common
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
#
# Modification History
#
# 2004-April-30 Jason Rohrer
# Created. Modified from MUTE source.
#
# 2005-August-29 Jason Rohrer
# Added optimization options.
#
##
# The common portion of all Makefiles.
# Should not be made manually---used by configure to build Makefiles.
##
EXE_LINKER = ${GXX}
RANLIB = ranlib
LIBRARY_LINKER = ar
DEBUG_ON_FLAG = -g #-DDEBUG_MEMORY
DEBUG_OFF_FLAG =
DEBUG_FLAG = ${DEBUG_OFF_FLAG}
PROFILE_ON_FLAG = -pg -a -DUSE_GPROF_THREADS
PROFILE_OFF_FLAG =
PROFILE_FLAG = ${PROFILE_OFF_FLAG}
OPTIMIZE_ON_FLAG = -O9
OPTIMIZE_OFF_FLAG =
OPTIMIZE_FLAG = ${OPTIMIZE_ON_FLAG}
COMPILE_FLAGS = -Wall ${DEBUG_FLAG} ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -I${ROOT_PATH} -I${ROOT_PATH}/Transcend/portaudio/pa_common
COMPILE = ${GXX} ${COMPILE_FLAGS} -c
EXE_LINK = ${EXE_LINKER} ${COMPILE_FLAGS} ${LINK_FLAGS}
LIBRARY_LINK = ${LIBRARY_LINKER} cru
#
# Generic:
#
# Map all .cpp C++ and C files into .o object files
#
# $@ represents the name.o file
# $< represents the name.cpp file
#
.cpp.o:
${COMPILE} -o $@ $<
.c.o:
${COMPILE} -o $@ $<