43 lines
645 B
Makefile
43 lines
645 B
Makefile
|
#
|
||
|
# Makefile for the Intel Pro/1000 driver.
|
||
|
#
|
||
|
DRIVER = e1000
|
||
|
|
||
|
#
|
||
|
# Directories.
|
||
|
#
|
||
|
u = /usr
|
||
|
i = $u/include
|
||
|
s = $i/sys
|
||
|
m = $i/minix
|
||
|
b = $i/ibm
|
||
|
d = ..
|
||
|
|
||
|
#
|
||
|
# Build Programs, Flags and Variables.
|
||
|
#
|
||
|
CC = exec cc
|
||
|
CFLAGS = -I$i $(CPROFILE)
|
||
|
LDFLAGS = -i
|
||
|
LIBS = -lsys -ltimers
|
||
|
OBJ = e1000.o
|
||
|
|
||
|
# build local binary
|
||
|
all build: $(DRIVER)
|
||
|
$(DRIVER): $(OBJ)
|
||
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
||
|
install -S 128k $(DRIVER)
|
||
|
|
||
|
# install with other drivers
|
||
|
install: /usr/sbin/$(DRIVER)
|
||
|
/usr/sbin/$(DRIVER): $(DRIVER)
|
||
|
install -o root -cs $? $@
|
||
|
|
||
|
# clean up local files
|
||
|
clean:
|
||
|
rm -f *.o $(DRIVER)
|
||
|
|
||
|
depend:
|
||
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
||
|
|