⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 cc65 的编译器文档
💻
字号:
## Makefile for cc65 samples## This Makefile requires GNU make## Enter the target system hereSYS	= c64CRT0   	= ../libsrc/$(SYS).oCLIB	= ../libsrc/$(SYS).libCC	= ../src/cc65/cc65CL	= ../src/cl65/cl65AS	= ../src/ca65/ca65LD	= ../src/ld65/ld65C1541  	= c1541# --------------------------------------------------------------------------# Generic rules.c.o:	@echo $<	@$(CC) -Oirs -T --forget-inc-paths --codesize 500 -g -t $(SYS) -I../include/ $<	@$(AS) $(basename $<).s.s.o:	@echo $<	@$(AS) $(basename $<).s# --------------------------------------------------------------------------# Rules how to make each one of the binariesEXELIST=ascii fire gunzip65 hello mousedemo nachtm plasma sieve tgidemo.PHONY:	allall:   	$(EXELIST)ascii: 	       	$(CRT0) ascii.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^fire:  	       	$(CRT0) fire.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^gunzip65:      	$(CRT0) gunzip65.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^hello: 	       	$(CRT0) hello.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^mousedemo:     	$(CRT0) mousedemo.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^nachtm:	       	$(CRT0) nachtm.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^plasma:	       	$(CRT0) plasma.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^sieve: 	       	$(CRT0) sieve.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^tgidemo:       	$(CRT0) tgidemo.o $(CLIB)	@$(LD) -t $(SYS) -m $(basename $@).map -o $@ $^# --------------------------------------------------------------------------# Rule to make a disk with all samples. Needs the c1541 program that comes# with the VICE emulator..PHONY:	diskdisk:  	samples.d64samples.d64:	all	@$(C1541) -format samples,AA  d64 $@ > /dev/null	@for exe in $(EXELIST); do\	    $(C1541) -attach $@ -write $$exe > /dev/null;\	done;\	for tgi in ../libsrc/$(SYS)*.tgi; do\	    $(C1541) -attach $@ -write $$tgi > /dev/null;\	done;# --------------------------------------------------------------------------# Cleanup rules.PHONY:	cleanclean:	$(RM) *~ *.map *.o *.s *.lbl.PHONY:	zapzap:	clean	$(RM) $(EXELIST) samples.d64

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -