Rev | Line | |
---|
[9] | 1 | # Makefile for Intel Pro/100 driver (FXP)
|
---|
| 2 | DRIVER = lance
|
---|
| 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 | CC = exec cc
|
---|
| 14 | CFLAGS = -I$i
|
---|
| 15 | LDFLAGS = -i
|
---|
| 16 | LIBS = -lsys -lsysutil
|
---|
| 17 | #-lutils -ltimers
|
---|
| 18 |
|
---|
| 19 | OBJ = lance.o
|
---|
| 20 |
|
---|
| 21 | # build local binary
|
---|
| 22 | all build: $(DRIVER)
|
---|
| 23 | $(DRIVER): $(OBJ)
|
---|
| 24 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
---|
| 25 | install -S 4k $(DRIVER)
|
---|
| 26 |
|
---|
| 27 | # install with other drivers
|
---|
| 28 | install: /usr/sbin/$(DRIVER)
|
---|
| 29 | /usr/sbin/$(DRIVER): $(DRIVER)
|
---|
| 30 | install -o root -cs $? $@
|
---|
| 31 |
|
---|
| 32 | # clean up local files
|
---|
| 33 | clean:
|
---|
| 34 | rm -f *.o *.bak $(DRIVER)
|
---|
| 35 |
|
---|
| 36 | depend:
|
---|
| 37 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
---|
| 38 |
|
---|
| 39 | # Include generated dependencies.
|
---|
| 40 | include .depend
|
---|
Note:
See
TracBrowser
for help on using the repository browser.