?? makefile
字號:
TARGETS = ksh.o
OBJS := ksh_svr.o command_parse.o
#CFLAGS = -Wall -D__KERNEL__ -DMODULE \
# -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Wno-unused -fomit-frame-pointer \
# -I$(KERNEL_PATH)/include
CFLAGS = -Wall -D__KERNEL__ -DMODULE \
-Wstrict-prototypes -Wno-trigraphs -O3 -fomit-frame-pointer -fno-strict-aliasing -fno-common -mlong-calls \
-G 0 -mno-abicalls -fno-pic -march=r4600 -mips2 -Wa,--trap -pipe \
-I$(KERNEL_PATH)/include -I$(KERNEL_PATH)/include/asm/gcc
all: $(OBJS)
$(LD) $(LDFLAGS) -r -G 0 $^ -o $(TARGETS)
clean:
@rm -f *.bak
@rm -f *.o
@rm -f *.a
ksh_svr.o: ksh_svr.c
@echo Building $<
$(CC) -c $< $(CFLAGS) $(EXTRA_CFLAGS) -o $@
command_parse.o: command_parse.c command_parse.h
@echo Building $<
$(CC) -c $< $(CFLAGS) $(EXTRA_CFLAGS) -o $@
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -