makefile

来自「linux下的usb开发」· 代码 · 共 44 行

TXT
44
字号
# Comment/uncomment the following line to disable/enable debugging#DEBUG = yTOPDIR := $(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)/pdcifdef PDC_CD_DEBUGCFLAGS += $(DEBUG_FLAG)endifSRC = devmscd.c msbridge.cOBJ = $(SRC:.c=.o)TARGET = mscd.oall: .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 .dependdepend .depend dep:	$(CC) $(CFLAGS) -M *.c > $@ifeq (.depend,$(wildcard .depend))include .dependendif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?