📄 rules.make
字号:
# clean:
# Both *.o and *.obj files are removed regardless
# of the E_EXT and O_EXT variables...
#
clean:
rm -f *.o *.obj *.a *.lib *.exe
rm -f *.a *.lib depends
ifdef TOOLS
for tool in $(TOOLS) ; \
do \
rm -f $$tool; \
done
else
rm -f $(TOOL) *.exe
endif
$(BIN):
mkdir $(BIN)
# install:
# Copy the final executable tool to $(BIN)
#
install: $(TOOL)$(E_EXT) $(BIN)
ifdef TOOLS
for tool in $(TOOLS) ; \
do \
cp $$tool $(BIN); \
done
else
cp $(TOOL)$(E_EXT) $(BIN)
endif
# depend:
# Generate a 'depends' file...
#
depend:
ifeq ($(O_EXT),.obj)
@if [ ! -f depends ] ;\
then \
for file in $(SRCLIST) ; \
do \
echo $$file dependencies...; \
gcc -MM -I$(COMSRC) $$file | sed "s/\.o/\.obj/" >>depends; \
done \
fi
else
@if [ ! -f depends ] ;\
then \
for file in $(SRCLIST) ; \
do \
echo $$file dependencies...; \
gcc -MM -I$(COMSRC) $$file >>depends; \
done \
fi
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -