⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 philips公司ISP1362 USB OTG控制芯片的驱动
💻
字号:
#This is for 1362 OTG Controller

TOPDIR := $(shell cd ../..; pwd)
include $(TOPDIR)/Rules.make

SRC = hal_pci.c


#Mandatory Flags
CFLAGS += -D__KERNEL__ $(OTGFLAG) -I$(INCLUDEDIR) -I$(HAL_INCL_DIR) $(KERN_MOD_FLAGS)

ifdef HAL_DEBUG
CFLAGS += $(DEBUG_FLAG) 
endif

#	DMA related flags
#	Use of this for data transfer between CPU and ISP1362 might not find
# 	improvement in speed under this implementation for ISA (needs to copy
#	the data from buffer to/from DMA buffer). Could be used as a sample code.
#CFLAGS += -DCONFIG_USB_PHCD_DMA



OBJ = $(SRC:.c=.o)

TARGET = hal.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 $(TARGET) $(OBJ) 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 + -