* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-0.99 / drivers / char / Makefile
blob414845967eb8a0aaeb5b6e0bd3c3ac75394f25f7
2 # Makefile for the kernel character device drivers.
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 definitions are now inherited from the
9 # parent makes..
12 .c.s:
13 $(CC) $(CFLAGS) -S $<
14 .s.o:
15 $(AS) -c -o $*.o $<
16 .c.o:
17 $(CC) $(CFLAGS) -c $<
19 OBJS = tty_io.o console.o keyboard.o serial.o \
20 tty_ioctl.o pty.o vt.o mem.o \
21 defkeymap.o
23 SRCS = tty_io.c console.c keyboard.c serial.c \
24 tty_ioctl.c pty.c vt.c mem.c \
25 defkeymap.c
28 ifdef CONFIG_ATIXL_BUSMOUSE
29 M = y
30 OBJS := $(OBJS) atixlmouse.o
31 SRCS := $(SRCS) atixlmouse.c
32 endif
34 ifdef CONFIG_BUSMOUSE
35 M = y
36 OBJS := $(OBJS) busmouse.o
37 SRCS := $(SRCS) busmouse.c
38 endif
40 ifdef CONFIG_PRINTER
41 OBJS := $(OBJS) lp.o
42 SRCS := $(SRCS) lp.c
43 endif
45 ifdef CONFIG_MS_BUSMOUSE
46 M = y
47 OBJS := $(OBJS) msbusmouse.o
48 SRCS := $(SRCS) msbusmouse.c
49 endif
51 ifdef CONFIG_82C710_MOUSE
52 CONFIG_PSMOUSE = CONFIG_PSMOUSE
53 endif
55 ifdef CONFIG_PSMOUSE
56 M = y
57 OBJS := $(OBJS) psaux.o
58 SRCS := $(SRCS) psaux.c
59 endif
61 ifdef CONFIG_TAPE_QIC02
62 OBJS := $(OBJS) tpqic02.o
63 SRCS := $(SRCS) tpqic02.c
64 endif
66 ifdef M
67 OBJS := $(OBJS) mouse.o
68 SRCS := $(SRCS) mouse.c
69 endif
71 all: char.a
73 char.a: $(OBJS)
74 $(AR) rcs char.a $(OBJS)
75 sync
77 dep:
78 $(CPP) -M $(SRCS) > .depend
80 dummy:
83 # include a dependency file if one exists
85 ifeq (.depend,$(wildcard .depend))
86 include .depend
87 endif