📄 makefile
字号:
###
### Copyright (c) 2001 Equator Technologies, Inc.
###
#
# Makefile for 'hello world' app to run under gdb
#
# Change \'s to /'s in env vars
ETI_TOOLKIT := $(subst \,/,$(ETI_TOOLKIT))
INCLUDE_ROOT := $(subst \,/,$(INCLUDE_ROOT))
STANDALONE_ROOT := $(subst \,/,$(STANDALONE_ROOT))
# escape any ':' characters (from windoze drive names)
# if used in a target, a ':' is a separator.
SUBST_STAND_ROOT := $(subst :,\:,$(STANDALONE_ROOT))
CC=ecc
CFLAGS=-g
LD=eld
RUN=sim
SRCS=hello.c
OBJS=$(SRCS:.c=.o)
all: hello.out
hello.out: $(OBJS)
ecc -o hello.out $(OBJS)
clean:
rm -f $(OBJS) *.trace dst hello.out .gdbinit *.log *.filt
test: all
cp -f ../dot_gdbinit .gdbinit
@if [ "$(RUN)" = "etirun" ]; then \
echo 'egdb -batch -x hello.egdb hello.out > hello.out.log 2>&1'; \
egdb -batch -x hello.egdb hello.out > hello.out.log 2>&1; \
fi;
@if [ "$(RUN)" = "casim" ]; then \
echo 'egdb -batch -x hello_casim.egdb hello.out > hello.out.log 2>&1'; \
egdb -batch -x hello_casim.egdb hello.out > hello.out.log 2>&1; \
fi;
@if [ "$(RUN)" = "sim" ]; then \
echo 'egdb -batch -x hello_sim.egdb hello.out > hello.out.log 2>&1'; \
egdb -batch -x hello_sim.egdb hello.out > hello.out.log 2>&1; \
fi;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -