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