📄 makefile
字号:
############################################################################### Microwindows template Makefile# Copyright (c) 2000 Martin Jolicoeur, Greg Haerr# Modified for TuxChess, 2002, Steven J. Merrifield##############################################################################ifndef MW_DIR_SRCMW_DIR_SRC := $(CURDIR)/../..endifMW_DIR_RELATIVE := demos/tuxchess/include $(MW_DIR_SRC)/Path.rulesinclude $(CONFIG)######################## Additional Flags section ############################# Directories list for header filesINCLUDEDIRS +=# Defines for preprocessorDEFINES +=# Compilation flags for C files OTHER than include directoriesCFLAGS +=# Preprocessor flags OTHER than definesCPPFLAGS +=# Linking flagsLDFLAGS +=############################# targets section ################################ifeq ($(NANOX), Y)ifeq ($(NANOXDEMO), Y)ifneq ($(ARCH), LINUX-TCC)# If you want to create a library with the objects files, define the name hereLIBNAME =# List of objects to compileOBJS := \ $(MW_DIR_OBJ)/demos/tuxchess/main.o \ $(MW_DIR_OBJ)/demos/tuxchess/board.o \ $(MW_DIR_OBJ)/demos/tuxchess/data.o \ $(MW_DIR_OBJ)/demos/tuxchess/eval.o \ $(MW_DIR_OBJ)/demos/tuxchess/search.o \ $(MW_DIR_OBJ)/demos/tuxchess/images.o# Requires: MW_FEATURE_IMAGES, HAVE_FILEIOTARGET = $(MW_DIR_BIN)/tuxchessall: default $(TARGET)endifendifendif######################### Makefile.rules section #############################include $(MW_DIR_SRC)/Makefile.rules######################## Tools targets section ###############################ifeq ($(SHAREDLIBS), Y)$(MW_DIR_BIN)/tuxchess: $(OBJS) $(NANOXCLIENTLIBS) $(CONFIG) @echo "Linking $(patsubst $(MW_DIR_BIN)/%,%,$@) ..." $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCNANOXCLIENTLIBS)else$(MW_DIR_BIN)/tuxchess: $(OBJS) $(NANOXCLIENTLIBS) $(CONFIG) @echo "Linking $(patsubst $(MW_DIR_BIN)/%,%,$@) ..." $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(NANOXCLIENTLIBS)endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -