Add BUILD_TYPE option in Makefile
This commit is contained in:
		
							
								
								
									
										9
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								Makefile
									
									
									
									
									
								
							@@ -1,8 +1,15 @@
 | 
			
		||||
BUILD_TYPE = debug
 | 
			
		||||
CC         = clang
 | 
			
		||||
CFLAGS  = -g -Iraylib/include -Iwapp/src
 | 
			
		||||
CFLAGS     = -Iraylib/include -Iwapp/src
 | 
			
		||||
LDFLAGS    = '-Wl,-rpath,$$ORIGIN/raylib/lib' -Lraylib/lib -lraylib
 | 
			
		||||
OUT        = main
 | 
			
		||||
 | 
			
		||||
ifeq ($(BUILD_TYPE),debug)
 | 
			
		||||
	CFLAGS += -g
 | 
			
		||||
else
 | 
			
		||||
	CFLAGS += -O2
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
.PHONY: all raylib game
 | 
			
		||||
 | 
			
		||||
all: game
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user