summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/drivers/net/rtl819x/rtl865x/Makefile
blob: 4f510a66432a95d3d8c73f45fd2df91a1eab65a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# Makefile for the Tulip ethernet driver
#
# Note! Dependencies are done automagically by 'make dep', which also
# removes any old dependencies. DON'T put your own dependencies here
# unless it's something special (ie not a .c file).
#
# Note 2! The CFLAGS definitions are now in the main makefile...


obj-y := ../common/built-in.o
subdir-y := ../common

obj-y += ../AsicDriver/built-in.o
subdir-y += ../AsicDriver

L4_SUPPORT= 
ifdef CONFIG_RTL_8198
L4_SUPPORT=1
endif

ifdef CONFIG_RTL_8196CT
L4_SUPPORT=1
endif

ifdef CONFIG_RTL_8198T
L4_SUPPORT=1
endif

ifdef CONFIG_RTL_LAYERED_DRIVER
	ifdef CONFIG_RTL_LAYERED_DRIVER_L2
               obj-y += ../l2Driver/built-in.o
               subdir-y += ../l2Driver
	else
		ifdef CONFIG_RTL_STP
			obj-y += ../l2Driver/built-in.o
			subdir-y += ../l2Driver
		endif
	endif
else
	obj-y += ../l2Driver/built-in.o
	subdir-y += ../l2Driver
endif

ifdef CONFIG_RTL_LAYERED_DRIVER
	ifdef CONFIG_RTL_LAYERED_DRIVER_L3
		obj-y += ../l3Driver/built-in.o
		subdir-y += ../l3Driver
	else
		ifdef CONFIG_RTL_HARDWARE_MULTICAST
			obj-y += ../l3Driver/built-in.o
			subdir-y += ../l3Driver
		endif
	endif
else
	obj-y += ../l3Driver/built-in.o
	subdir-y += ../l3Driver
endif

ifdef CONFIG_RTL_LAYERED_DRIVER
	ifeq ($(L4_SUPPORT), 1)
	ifdef CONFIG_RTL_LAYERED_DRIVER_L4
		obj-y += ../l4Driver/built-in.o
		subdir-y += ../l4Driver
	endif
	endif
else
	obj-y += ../l4Driver/built-in.o
	subdir-y += ../l4Driver
endif

ifdef CONFIG_RTL_IGMP_SNOOPING
obj-y += ../igmpsnooping/built-in.o
subdir-y += ../igmpsnooping
endif

ifdef CONFIG_8198_PORT5_RGMII
	obj-y += ../RTL8370_RTL8367_API/built-in.o
	subdir-y += ../RTL8370_RTL8367_API
endif

EXTRA_CFLAGS += -O1 -DRTL_TBLDRV -D__linux__  -mno-memcpy -DRTL865X_OVER_KERNEL -DRTL865X_OVER_LINUX -Werror

EXTRA_AFLAGS += $(EXTRA_CFLAGS)