?? 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 + -