File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ OUTDIR ?= $(OUTDIR_PREFIX)
6666TMPDIR  ?= $(TMPDIR_PREFIX ) 
6767CFG  ?= link.ld
6868
69- CFLAGS  = -flto -Os -ffast-math -fnonreentrant -mreserve-zp=9 -std=gnu23 -Wall -Wextra
69+ CFLAGS  = -flto -Os -ffast-math -fnonreentrant -std=gnu23 -Wall -Wextra
70+ LDFLAGS  = -mreserve-zp=9 -T $(CFG ) 
7071
7172ifneq  ($(findstring  build,$(MAKECMDGOALS ) ) ,)
7273ifeq  ($(LEVELSET ) ,)
@@ -112,7 +113,7 @@ $(TMPDIR)/assets.o: src/chr/*.chr src/assets.c src/assets.h
112113	$(CC )  -c src/assets.c $(CFLAGS )  -o $@ 
113114
114115$(OUTDIR ) /$(NAME ) .nes$(OUTDIR )  $(TMPDIR ) /music.o $(TMPDIR ) /assets.o src/* .h src/* .c src/gamestates/* .c $(CFG ) 
115- 	$(CC )  src/main.c $(TMPDIR ) /* .o $(CFLAGS )  -o  $@  -T  $( CFG ) 
116+ 	$(CC )  src/main.c $(TMPDIR ) /* .o $(CFLAGS )  $( LDFLAGS )  -o  $@ 
116117
117118
118119
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments