-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.common
48 lines (35 loc) · 873 Bytes
/
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
## Scheduler Makefile.common
DOPROFILING = 0
OPTIMIZE = 0
# Nachiket removed this nonsense
PLOCK = 0
ifeq ($(PROF),1)
PROF_FLAG = -pg
else
PROF_FLAG =
endif
ifeq ($(PLOCK),1)
PLOCK_LIB = -lsysmp
else
PLOCK_LIB =
endif
# when NDEBUG is defined, the assertions disappear ( assert() )
ifeq ($(OPTIMIZE), 0)
DEBUGFLAG = -g
else
DEBUGFLAG = -O3 -DNDEBUG
endif
PAPI_INC = /usr/local/include
TOOL_PATH=
COMMON_FLAGS = $(DEBUGFLAG) $(GPROFFLAG) -fPIC -Wall -Wno-unused-but-set-variable -Wno-unused-variable $(COMMON_DEFINES)
CFLAGS = $(COMMON_FLAGS)
CXXFLAGS = $(COMMON_FLAGS)
#CC = $(TOOL_PATH)gcc-4.4
#CXX = $(TOOL_PATH)g++-4.4
AR = ar
AR_OPTS = rc
MAKE = make
INCLUDE = -I$(PAPI_INC) -I/opt/leda/incl -I./include -I. $(SCHEDULER_INCLUDES)
# REMOVED BY NACHIKET -include ScoreImplConf.h
LIB = -L./lib -L. -L/opt/leda \
-lpthread -lleda -lX11 -ldl -lm $(PLOCK_LIB)