📄 makefile
字号:
## Makefile for worm, a simple Xinu example# "make a.out" will make a standalone executable# "make worm.o" will make the object module which can be loaded into the shell# .SUFFIXES:.o .c .sDIR = {Xinu-directory}CFLAGS = -c -I../../../hAFLAGS = -u $(DIR)/include/sys.sSIZE = $(DIR)/bin/size11PRINT = $(DIR)/bin/cprintLORDER = $(DIR)/bin/lorder11RANLIB = $(DIR)/bin/ranlib11LIB = $(DIR)/libXINUDIR = $(DIR)/src/sys/sysHEADERS = game.h.c.o: $(HEADERS) $(CC) $(CFLAGS) $<GAMEFILES = main.o \ mesg.o \ mover.o \ plotter.o \ referee.o \ robot.o \ targeter.o \ timedgetchar.o \ utils.oworm.o: $(GAMEFILES) $(LD) -r -o worm.o $(GAMEFILES)install: worm.o /bin/cp worm.o ..a.out: worm.o test.o $(LD) -e _start -N -X -T 00004000 $(XINUDIR)/xinu.o test.o worm.o $(XINUDIR)/libx.a $(LIB)/libxc.a $(XINUDIR)/libx.a -o b.out cp b.out pm.out strip b.out;dd if=b.out of=a.out ibs=32 skip=1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -