2 # Makefile for the Linux IrDA IrLPT protocol layer.
4 # Note! Dependencies are done automagically by 'make dep', which also
5 # removes any old dependencies. DON'T put your own dependencies here
6 # unless it's something special (ie not a .c file).
8 # Note 2! The CFLAGS definition is now in the main makefile...
10 MOD_LIST_NAME
:= IRDA_MODULES
12 O_OBJS
:= irlpt_common.o
18 ifeq ($(CONFIG_IRLPT_CLIENT
),y
)
19 O_OBJS
+= irlpt_cli.o irlpt_cli_fsm.o
21 ifeq ($(CONFIG_IRLPT_CLIENT
),m
)
22 M_OBJS
+= irlpt_client.o
26 ifeq ($(CONFIG_IRLPT_SERVER
),y
)
27 O_OBJS
+= irlpt_srvr.o irlpt_srvr_fsm.o
29 ifeq ($(CONFIG_IRLPT_SERVER
),m
)
30 M_OBJS
+= irlpt_server.o
34 # Special rule to build the composite modules
35 ifeq ($(CONFIG_IRLPT_CLIENT
),m
)
36 irlpt_client.o
: irlpt_cli.o irlpt_cli_fsm.o
37 $(LD
) $(LD_RFLAG
) -r
-o
$@ irlpt_cli.o irlpt_cli_fsm.o
39 ifeq ($(CONFIG_IRLPT_SERVER
),m
)
40 irlpt_server.o
: irlpt_srvr.o irlpt_srvr_fsm.o
41 $(LD
) $(LD_RFLAG
) -r
-o
$@ irlpt_srvr.o irlpt_srvr_fsm.o
44 include $(TOPDIR
)/Rules.make