(svn r1744) DEBUG and PROFILE can be used at the same time.
This commit is contained in:
		
							
								
								
									
										20
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								Makefile
									
									
									
									
									
								
							@@ -284,19 +284,21 @@ ifeq ($(shell if test $(CC_VERSION) -ge 34; then echo true; fi), true)
 | 
				
			|||||||
  CFLAGS += -Wdeclaration-after-statement -Wold-style-definition
 | 
					  CFLAGS += -Wdeclaration-after-statement -Wold-style-definition
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifdef DEBUG
 | 
				
			||||||
 | 
					  CFLAGS += -g -D_DEBUG
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ifdef PROFILE
 | 
				
			||||||
 | 
					  CFLAGS += -pg
 | 
				
			||||||
 | 
					  LDFLAGS += -pg
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CDEFS=-DWITH_REV
 | 
					CDEFS=-DWITH_REV
 | 
				
			||||||
LDFLAGS=
 | 
					LDFLAGS=
 | 
				
			||||||
LIBS=
 | 
					LIBS=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ifdef DEBUG
 | 
					ifndef DEBUG
 | 
				
			||||||
# Debug mode
 | 
					ifndef PROFILE
 | 
				
			||||||
CDEFS += -D_DEBUG
 | 
					 | 
				
			||||||
BASECFLAGS += -g
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
ifdef PROFILE
 | 
					 | 
				
			||||||
BASECFLAGS += -pg
 | 
					 | 
				
			||||||
LDFLAGS += -pg
 | 
					 | 
				
			||||||
else
 | 
					 | 
				
			||||||
# Release mode
 | 
					# Release mode
 | 
				
			||||||
ifndef MORPHOS
 | 
					ifndef MORPHOS
 | 
				
			||||||
# automatical strip breaks under morphos
 | 
					# automatical strip breaks under morphos
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user