21 lines
		
	
	
		
			342 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			342 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
 | 
						|
# compile c programs with GLCC
 | 
						|
CC=glcc
 | 
						|
 | 
						|
# use 32k map modified by overlay horizon.ovl
 | 
						|
CFLAGS=-map=32k,./Horizon.ovl -rom=v6
 | 
						|
 | 
						|
# avoid runtime bss initialization to save code.
 | 
						|
LDFLAGS=--no-runtime-bss-init
 | 
						|
 | 
						|
# target
 | 
						|
TARGET=../Horizon_c.gt1
 | 
						|
 | 
						|
 | 
						|
$(TARGET): Horizon.c Horizon.ovl
 | 
						|
	${CC} ${CFLAGS} ${LDFLAGS} Horizon.c -o $@
 | 
						|
 | 
						|
clean:
 | 
						|
	-rm $(TARGET)
 | 
						|
 |