source: trunk/minix/drivers/fxp/Makefile@ 12

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

Minix 3.1.2a

File size: 671 bytes
Line 
1# Makefile for Intel Pro/100 driver (FXP)
2DRIVER = fxp
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8m = $i/minix
9b = $i/ibm
10d = ..
11
12# programs, flags, etc.
13CC = exec cc
14CFLAGS = -I$i
15LDFLAGS = -i
16LIBS = -lsys -lsysutil -ltimers
17
18OBJ = fxp.o mii.o
19
20# build local binary
21all build: $(DRIVER)
22$(DRIVER): $(OBJ)
23 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
24 install -S 4096 $(DRIVER)
25
26# install with other drivers
27install: /usr/sbin/$(DRIVER)
28/usr/sbin/$(DRIVER): $(DRIVER)
29 install -o root -cs $? $@
30
31# clean up local files
32clean:
33 rm -f *.o *.bak $(DRIVER)
34
35depend:
36 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
37
38# Include generated dependencies.
39include .depend
40
Note: See TracBrowser for help on using the repository browser.