2.2.0-final
[davej-history.git] / net / irda / irlpt / Makefile
blob29e2e8076630def995ec1e705014a8ac6dc2a8bf
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
11 O_TARGET := irlpt.o
12 O_OBJS := irlpt_common.o
13 M_OBJS := $(O_TARGET)
14 MI_OBJS :=
16 OX_OBJS +=
18 ifeq ($(CONFIG_IRLPT_CLIENT),y)
19 O_OBJS += irlpt_cli.o irlpt_cli_fsm.o
20 else
21 ifeq ($(CONFIG_IRLPT_CLIENT),m)
22 M_OBJS += irlpt_client.o
23 endif
24 endif
26 ifeq ($(CONFIG_IRLPT_SERVER),y)
27 O_OBJS += irlpt_srvr.o irlpt_srvr_fsm.o
28 else
29 ifeq ($(CONFIG_IRLPT_SERVER),m)
30 M_OBJS += irlpt_server.o
31 endif
32 endif
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
38 endif
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
42 endif
44 include $(TOPDIR)/Rules.make
46 tar:
47 tar -cvf /dev/f1 .