File: Makefile.common

package info (click to toggle)
cultivation 9+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 4,452 kB
  • sloc: cpp: 35,783; ansic: 693; sh: 163; makefile: 122; perl: 67
file content (79 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (2)
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
#
# Modification History
#
# 2004-April-30    Jason Rohrer
# Created.  Modified from MUTE source.
#
# 2005-August-29    Jason Rohrer
# Added optimization options.
#
# 2007-April-23    Jason Rohrer
# Upgraded to latest minorGems dependency format.
#


##
# 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}




# common to all platforms
SOCKET_UDP_PLATFORM_PATH = unix
SOCKET_UDP_PLATFORM = Unix



COMPILE_FLAGS = -Wall  -Wwrite-strings -Wchar-subscripts -Wparentheses ${DEBUG_FLAG} ${PLATFORM_COMPILE_FLAGS} ${PROFILE_FLAG} ${OPTIMIZE_FLAG} -I${ROOT_PATH}


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 $@ $<