source: trunk/minix/drivers/floppy/Makefile@ 9

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

Minix 3.1.2a

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