source: branches/minix3-book/drivers/tty/Makefile@ 26

Last change on this file since 26 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 796 bytes
RevLine 
[4]1# Makefile for terminal driver (TTY)
2DRIVER = tty
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13MAKE = exec make
14CC = exec cc
15CFLAGS = -I$i
16LDFLAGS = -i
17LIBS = -lsys -lsysutil -ltimers
18
19OBJ = tty.o console.o vidcopy.o keyboard.o
20
21# build local binary
22all build: $(DRIVER)
23$(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 256w $(DRIVER)
26
27# install with other drivers
28install: /usr/sbin/$(DRIVER)
29 cd keymaps && $(MAKE) -$(MAKEFLAGS) install
30/usr/sbin/$(DRIVER): $(DRIVER)
31 install -o root -cs $? $@
32
33# clean up local files
34clean:
35 cd keymaps && $(MAKE) -$(MAKEFLAGS) $@
36 rm -f $(DRIVER) *.o *.bak
37
38depend:
39 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
40
41# Include generated dependencies.
42include .depend
43
44
Note: See TracBrowser for help on using the repository browser.