📄 makefile
字号:
# Comment/uncomment the following line to disable/enable debugging
#DEBUG = y
TOPDIR := $(shell cd ../..; pwd)
include $(TOPDIR)/Rules.make
# CFLAGS are initially from Rules.make
# all assignments to CFLAGS are inclremental
CFLAGS += -D__KERNEL__ $(OTGFLAG) -I$(INCLUDEDIR) -I$(HAL_INCL_DIR)
CFLAGS += $(KERN_MOD_FLAGS) -I$(DEVICE_DIR)/pdc
ifdef PDC_CD_DEBUG
CFLAGS += $(DEBUG_FLAG)
endif
SRC = devmscd.c msbridge.c
OBJ = $(SRC:.c=.o)
TARGET = mscd.o
all: .depend $(TARGET)
$(TARGET): $(OBJ)
$(LD) -r $^ -o $@
install:
# install -d $(KERN_INSTALL_DIR)
# install -c $(TARGET) $(KERN_INSTALL_DIR)
cp $(TARGET) $(OBJ_INSTALL_DIR)
clean:
rm -f $(OBJ) $(TARGET) core .depend
depend .depend dep:
$(CC) $(CFLAGS) -M *.c > $@
ifeq (.depend,$(wildcard .depend))
include .depend
endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -