File: Jamrules

package info (click to toggle)
netpanzer 0.8+svn20060319-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,984 kB
  • ctags: 6,846
  • sloc: cpp: 44,552; sh: 2,549; makefile: 55
file content (39 lines) | stat: -rw-r--r-- 961 bytes parent folder | download | duplicates (5)
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
if ! $(top_builddir)
{
    top_builddir = $(TOP) ;
}
top_srcdir = $(TOP) ;

JAMCONFIG ?= $(top_builddir)/Jamconfig ;
include $(JAMCONFIG) ;
if ! $(JAMCONFIG_READ)
{
  EXIT "Couldn't find config. Please run 'configure' first." ;
}

if $(USE_STLPORT_DEBUG)
{
  CPPFLAGS += -I/usr/include/stlport ;
  CPPFLAGS += -D_STLP_DEBUG=1 -D_STLP_DEBUG_UNINITIALIZED=1 ;
  CPPFLAGS += -D_STLP_SHRED_BYTE=0xA3 ;
  LIBS += -lstlport_gcc_debug ;
}

COMPILER_CFLAGS += -Wall -W ;
COMPILER_CFLAGS_optimize += -O3 -g3 ;
COMPILER_C++FLAGS_optimize += -O3 -g3 ;
COMPILER_LFLAGS_optimize += -O3 -g3 ;
COMPILER_CFLAGS_debug += -DDEBUG -Werror -g3 ;
COMPILER_CXXFLAGS_debug += -DDEBUG -Werror -g3 ;
COMPILER_LFLAGS_debug += -g3 ;
COMPILER_CFLAGS_profile += -O2 -g3 -pg ;
COMPILER_CXXFLAGS_profile += -O2 -g3 -pg ;
COMPILER_LFLAGS_profile += -g3 -pg ;

LINK = $(CXX) ;

# Include build rules
include $(TOP)/mk/jam/build.jam ;

# Include Dirs
IncludeDir $(top_builddir) ; # for config.h