add/re-enable at_wini debug output
[minix3.git] / drivers / tty / Makefile
blob4f891d06514afdac4ae9177c46cd974aea8113ab
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$i -I../../kernel/arch/$(ARCH)/include
18 CFLAGS = $(CPPFLAGS)
19 LDFLAGS = -i
20 LIBS = -lsysutil -lsys -ltimers
22 OBJ = tty.o console.o vidcopy.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 8k $(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