OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [usb/] [eth/] [slave/] [current/] [host/] [Makefile] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
#
2
# Makefile for the Linux device driver for eCos USB-ethernet
3
# devices. This makefile has been cloned from the one in
4
# /usr/src/linux-2.2.16/drivers/usb
5
#
6
 
7
# This makefile will chain to the Linux makefile if appropriate.
8
# The toplevel Linux makefile sets the variable KERNELRELEASE
9
ifeq (,$(KERNELRELEASE))
10
 
11
default:
12
        make -C /usr/src/linux SUBDIRS=$(shell pwd) modules
13
 
14
modules: default
15
 
16
modules_install:
17
        @echo Support for installing this module not yet implemented.
18
 
19
else
20
 
21
# A recursive invocation of this makefile from the Linux one.
22
 
23
# Build this driver as a module.
24
CONFIG_USB_ECOS_USBETH  = m
25
 
26
# Subdirs.
27
 
28
SUB_DIRS        :=
29
MOD_SUB_DIRS    := $(SUB_DIRS)
30
MOD_IN_SUB_DIRS := $(SUB_DIRS)
31
ALL_SUB_DIRS    := $(SUB_DIRS)
32
 
33
# The target object and module list name.
34
 
35
O_TARGET        :=
36
M_OBJS          :=
37
O_OBJS          :=
38
MOD_LIST_NAME   := ECOS_USBETH_MODULE
39
 
40
# Objects that export symbols.
41
 
42
export-objs             :=
43
 
44
# Multipart objects.
45
 
46
list-multi              :=
47
 
48
# Optional parts of multipart objects.
49
 
50
# Object file lists.
51
 
52
obj-y   :=
53
obj-m   :=
54
obj-n   :=
55
obj-    :=
56
 
57
# Object files in subdirectories
58
 
59
# Each configuration option enables a list of files.
60
 
61
obj-$(CONFIG_USB_ECOS_USBETH)   += ecos_usbeth.o
62
 
63
# Extract lists of the multi-part drivers.
64
# The 'int-*' lists are the intermediate files used to build the multi's.
65
 
66
multi-y         := $(filter $(list-multi), $(obj-y))
67
multi-m         := $(filter $(list-multi), $(obj-m))
68
int-y           := $(sort $(foreach m, $(multi-y), $($(basename $(m))-objs)))
69
int-m           := $(sort $(foreach m, $(multi-m), $($(basename $(m))-objs)))
70
 
71
# Files that are both resident and modular: remove from modular.
72
 
73
obj-m           := $(filter-out $(obj-y), $(obj-m))
74
int-m           := $(filter-out $(int-y), $(int-m))
75
 
76
# Take multi-part drivers out of obj-y and put components in.
77
 
78
obj-y           := $(filter-out $(list-multi), $(obj-y)) $(int-y)
79
 
80
# Translate to Rules.make lists.
81
 
82
O_OBJS          := $(sort $(filter-out $(export-objs), $(obj-y)))
83
OX_OBJS         := $(sort $(filter     $(export-objs), $(obj-y)))
84
M_OBJS          := $(sort $(filter-out $(export-objs), $(obj-m)))
85
MX_OBJS         := $(sort $(filter     $(export-objs), $(obj-m)))
86
MI_OBJS         := $(sort $(filter-out $(export-objs), $(int-m)))
87
MIX_OBJS        := $(sort $(filter     $(export-objs), $(int-m)))
88
 
89
# The global Rules.make.
90
 
91
include $(TOPDIR)/Rules.make
92
 
93
# Link rules for multi-part drivers.
94
 
95
endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.