Explicitly mask off 8-bit values (so new sanity check doesn't trip)
[minix3.git] / drivers / floppy / Makefile
blob397de8c191a3a84253889556d395585dbc1681a6
1 # Makefile for the floppy disk driver (FLOPPY)
2 DRIVER = floppy
4 # directories
5 u = /usr
6 i = $u/include
7 s = $i/sys
8 m = $i/minix
9 b = $i/ibm
10 d = ..
12 # programs, flags, etc.
13 MAKE = exec make
14 CC = exec cc
15 CFLAGS = -I$i $(CPROFILE)
16 LDFLAGS = -i -L../libdriver
17 LIBS = -lsysutil -ldriver -lsys -ltimers
19 OBJ = floppy.o
21 # build local binary
22 all build: $(DRIVER)
23 $(DRIVER): $(OBJ)
24 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
25 install -S 8k $(DRIVER)
27 # install with other drivers
28 install: /sbin/$(DRIVER)
29 /sbin/$(DRIVER): $(DRIVER)
30 install -o root -cs $? $@
32 # clean up local files
33 clean:
34 rm -f $(DRIVER) *.o *.bak
36 depend:
37 mkdep "$(CC) -E $(CPPFLAGS)" *.c ../libdriver/*.c > .depend
39 # Include generated dependencies.
40 include .depend