1 # File: drivers/hamradio/Makefile
3 # Makefile for the Linux AX.25 and HFMODEM device drivers.
5 # 19971130 Moved the amateur radio related network drivers from
6 # drivers/net/ to drivers/hamradio for easier maintainance.
7 # Joerg Reuter DL1BKE <jreuter@poboxes.com>
11 MOD_SUB_DIRS
:= $(SUB_DIRS
)
12 ALL_SUB_DIRS
:= $(SUB_DIRS
)
14 O_TARGET
:= hamradio.o
18 # Need these to keep track of whether the hdlc module should
19 # really go in the kernel or a module.
20 CONFIG_HDLCDRV_BUILTIN
:=
21 CONFIG_HDLCDRV_MODULE
:=
23 ifeq ($(CONFIG_DMASCC
),y
)
26 ifeq ($(CONFIG_DMASCC
),m
)
31 ifeq ($(CONFIG_SCC
),y
)
34 ifeq ($(CONFIG_SCC
),m
)
39 ifeq ($(CONFIG_MKISS
),y
)
42 ifeq ($(CONFIG_MKISS
),m
)
47 ifeq ($(CONFIG_6PACK
),y
)
50 ifeq ($(CONFIG_6PACK
),m
)
55 ifeq ($(CONFIG_YAM
),y
)
58 ifeq ($(CONFIG_YAM
),m
)
79 ifeq ($(CONFIG_BPQETHER
),y
)
82 ifeq ($(CONFIG_BPQETHER
),m
)
87 ifeq ($(CONFIG_BAYCOM_SER_FDX
),y
)
88 O_OBJS
+= baycom_ser_fdx.o
89 CONFIG_HDLCDRV_BUILTIN
= y
91 ifeq ($(CONFIG_BAYCOM_SER_FDX
),m
)
92 CONFIG_HDLCDRV_MODULE
= y
93 M_OBJS
+= baycom_ser_fdx.o
97 ifeq ($(CONFIG_BAYCOM_SER_HDX
),y
)
98 O_OBJS
+= baycom_ser_hdx.o
99 CONFIG_HDLCDRV_BUILTIN
= y
101 ifeq ($(CONFIG_BAYCOM_SER_HDX
),m
)
102 CONFIG_HDLCDRV_MODULE
= y
103 M_OBJS
+= baycom_ser_hdx.o
107 ifeq ($(CONFIG_BAYCOM_PAR
),y
)
108 O_OBJS
+= baycom_par.o
109 CONFIG_HDLCDRV_BUILTIN
= y
111 ifeq ($(CONFIG_BAYCOM_PAR
),m
)
112 CONFIG_HDLCDRV_MODULE
= y
113 M_OBJS
+= baycom_par.o
117 ifeq ($(CONFIG_BAYCOM_EPP
),y
)
118 O_OBJS
+= baycom_epp.o
119 CONFIG_HDLCDRV_BUILTIN
= y
121 ifeq ($(CONFIG_BAYCOM_EPP
),m
)
122 CONFIG_HDLCDRV_MODULE
= y
123 M_OBJS
+= baycom_epp.o
127 ifeq ($(CONFIG_SOUNDMODEM
),y
)
128 ALL_SUB_DIRS
+= soundmodem
129 SUB_DIRS
+= soundmodem
130 O_OBJS
+= soundmodem
/soundmodem.o
131 CONFIG_HDLCDRV_BUILTIN
= y
133 ifeq ($(CONFIG_SOUNDMODEM
),m
)
134 CONFIG_HDLCDRV_MODULE
= y
135 ALL_SUB_DIRS
+= soundmodem
136 MOD_SUB_DIRS
+= soundmodem
140 # If anything built-in uses the hdlcdrv, then build it into the kernel also.
141 # If not, but a module uses it, build as a module.
142 ifdef CONFIG_HDLCDRV_BUILTIN
145 ifdef CONFIG_HDLCDRV_MODULE
150 include $(TOPDIR
)/Rules.make
153 rm -f core
*.o
*.a
*.s