makefile

来自「上面上传的autotools一文(也就是《使用GNU autotools 改造一」· 代码 · 共 45 行

TXT
45
字号
## Copyright (c) 2005, Wei Mingzhi. All rights reserved.## Use, redistributions and modifications of this file is# unrestricted provided the above copyright notice is# preserved.#OBJ = \	bot.o config.o game.o general.o hand.o ini.o main.o \	player.o text.o tile.o util.oHEADERS = \	bot.h game.h general.h hand.h ini.h main.h player.h \	tile.hCC = gccCXX = g++TARGET = mj#BASEFLAGS = -g3 -D_DEBUG=1BASEFLAGS = -s -O3CFLAGS = ${BASEFLAGS} `sdl-config --cflags`LDFLAGS = ${BASEFLAGS} `sdl-config --libs` -lSDL_image -lSDL_mixer -lSDL_ttfall: ${TARGET}${TARGET}: ${OBJ}	${CXX} ${LDFLAGS} -o ${TARGET} ${OBJ}clean:	rm -f *.o ${TARGET}distclean:	rm -f *.o ${TARGET}%.o:    %.cpp ${HEADERS}	${CXX} ${CFLAGS} -c $< -o $@%.o:    %.c ${HEADERS}	${CC} ${CFLAGS} -c $< -o $@

⌨️ 快捷键说明

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