Rev | Line | |
---|
[9] | 1 | # Makefile for the AT disk driver (AT_WINI)
|
---|
| 2 | DRIVER = at_wini
|
---|
| 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 | p = ../libpci
|
---|
| 12 |
|
---|
| 13 | # programs, flags, etc.
|
---|
| 14 | MAKE = exec make
|
---|
| 15 | CC = exec cc
|
---|
| 16 | CFLAGS = -I$i
|
---|
| 17 | LDFLAGS = -i
|
---|
| 18 | LIBS = -lsysutil -lsys -ltimers
|
---|
| 19 |
|
---|
| 20 | OBJ = at_wini.o
|
---|
| 21 | LIBDRIVER = $d/libdriver/driver.o $d/libdriver/drvlib.o
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | # build local binary
|
---|
| 25 | all build: $(DRIVER)
|
---|
| 26 | $(DRIVER): $(OBJ) $(LIBDRIVER)
|
---|
| 27 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBDRIVER) $(LIBS)
|
---|
| 28 | install -S 8k $(DRIVER)
|
---|
| 29 |
|
---|
| 30 | $(LIBDRIVER):
|
---|
| 31 | cd $d/libdriver && $(MAKE)
|
---|
| 32 |
|
---|
| 33 | # install with other drivers
|
---|
| 34 | install: /sbin/$(DRIVER)
|
---|
| 35 | /sbin/$(DRIVER): $(DRIVER)
|
---|
| 36 | install -o root -cs $? $@
|
---|
| 37 |
|
---|
| 38 | # clean up local files
|
---|
| 39 | clean:
|
---|
| 40 | rm -f $(DRIVER) *.o *.bak
|
---|
| 41 |
|
---|
| 42 | depend:
|
---|
| 43 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
|
---|
| 44 |
|
---|
| 45 | # Include generated dependencies.
|
---|
| 46 | include .depend
|
---|
| 47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.