/make/edam-mk

To get this branch, use:
bzr branch http://bzr.ed.am/make/edam-mk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: edam
  • Date: 2009-03-05 14:00:10 UTC
  • Revision ID: edam@waxworlds.org-20090305140010-up8hmswl429rbv1f
Tags: 2.4
added NDEBUG compiler directive

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#_______________________________________________________________________________
2
2
#
3
 
#                       edam's general-purpose makefile                     v2.3
 
3
#                       edam's general-purpose makefile                     v2.4
4
4
#_______________________________________________________________________________
5
5
#                                                                COMMON SETTINGS
6
6
 
64
64
 
65
65
# debug/profile build flags
66
66
CPPFLAGS        := $(if $(PROFILEMODE),-pg -D PROFILE) $(CPPFLAGS)
67
 
CPPFLAGS        := $(if $(DEBUGMODE),-g -D DEBUG -Wall,-O2) $(CPPFLAGS)
 
67
CPPFLAGS        := $(if $(DEBUGMODE),-g -D DEBUG -Wall,-D NDEBUG -O2) $(CPPFLAGS)
68
68
DFLAGS          := $(if $(DEBUGMODE),,-frelease)
69
 
ASFLAGS         := -f elf $(if $(DEBUGMODE),-g -dDEBUG,-O2) $(ASFLAGS)
 
69
ASFLAGS         := -f elf $(if $(DEBUGMODE),-g -dDEBUG,-dNDEBUG -O2) $(ASFLAGS)
70
70
LDFLAGS         := $(if $(PROFILEMODE),-pg) $(LDFLAGS)
71
71
LDFLAGS         := $(if $(or $(PROFILEMODE), $(DEBUGMODE)),,-Wl,-S) $(LDFLAGS)
72
72