source: trunk/minix/drivers/bios_wini/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: 835 bytes
Line 
1# Makefile for the BIOS disk driver (BIOS_WINI)
2DRIVER = bios_wini
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 = -lsysutil -lsys -ltimers
18
19OBJ = bios_wini.o
20LIBDRIVER = $d/libdriver/driver.o $d/libdriver/drvlib.o
21
22
23# build local binary
24all build: $(DRIVER)
25$(DRIVER): $(OBJ) $(LIBDRIVER)
26 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBDRIVER) $(LIBS)
27 install -S 4k $(DRIVER)
28
29$(LIBDRIVER):
30 cd $d/libdriver && $(MAKE)
31
32# install with other drivers
33install: /sbin/$(DRIVER)
34/sbin/$(DRIVER): $(DRIVER)
35 install -o root -cs $? $@
36
37# clean up local files
38clean:
39 rm -f $(DRIVER) *.o *.bak
40
41depend:
42 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
43
44# Include generated dependencies.
45include .depend
46
Note: See TracBrowser for help on using the repository browser.