source: trunk/minix/drivers/rtl8139/Makefile@ 20

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

Minix 3.1.2a

File size: 710 bytes
Line 
1# Makefile for the Realtek RTL8139 ethernet driver (RTL8139)
2DRIVER = rtl8139
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 = rtl8139.o
20
21# build local binary
22all build: $(DRIVER)
23$(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 50kw $(DRIVER)
26
27# install with other drivers
28install: /usr/sbin/$(DRIVER)
29/usr/sbin/$(DRIVER): $(DRIVER)
30 install -o root -cs $? $@
31
32# clean up local files
33clean:
34 rm -f $(DRIVER) *.o *.bak
35
36depend:
37 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
38
39# Include generated dependencies.
40include .depend
41
Note: See TracBrowser for help on using the repository browser.