dec21140A ethernet driver for virtualpc, contributed by nicolas tittley.
[minix.git] / drivers / tty / Makefile
blobc1d15301ae15391665c8603cf5cd0aaba473c045
1 # Makefile for terminal driver (TTY)
2 DRIVER = tty
4 include /etc/make.conf
6 # directories
7 u = /usr
8 i = $u/include
9 s = $i/sys
10 m = $i/minix
11 b = $i/ibm
12 d = ..
14 # programs, flags, etc.
15 MAKE = exec make
16 CC = exec cc
17 CPPFLAGS = -I../../kernel/arch/$(ARCH)/include -I$i
18 CFLAGS = $(CPPFLAGS)
19 LDFLAGS = -i
20 LIBS = -lsys -ltimers
22 OBJ = tty.o console.o keyboard.o pty.o rs232.o
24 # build local binary
25 all build: $(DRIVER)
26 $(DRIVER): $(OBJ)
27 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
28 install -S 16k $(DRIVER)
30 # install with other drivers
31 install:
32 cd keymaps && $(MAKE) -$(MAKEFLAGS) install
34 #/sbin/$(DRIVER): $(DRIVER)
35 # install -o root -cs $? $@
37 # clean up local files
38 clean:
39 cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
40 rm -f $(DRIVER) *.o *.bak
42 depend:
43 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
45 # Include generated dependencies.
46 include .depend