source: trunk/minix/drivers/sb16/Makefile@ 11

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

Minix 3.1.2a

File size: 816 bytes
Line 
1# Makefile for the Sound Blaster 16 driver (SB16)
2
3# directories
4u = /usr
5i = $u/include
6s = $i/sys
7m = $i/minix
8b = $i/ibm
9d = ..
10
11# programs, flags, etc.
12CC = exec cc
13CFLAGS = -I$i
14LDFLAGS = -i
15LIBS = -lsys -lsysutil
16
17
18# build local binary
19all build: sb16_dsp sb16_mixer
20sb16_dsp: sb16.o sb16_dsp.o
21 $(CC) -o $@ $(LDFLAGS) sb16.o sb16_dsp.o $(LIBS)
22sb16_mixer: sb16.o sb16_mixer.o
23 $(CC) -o $@ $(LDFLAGS) sb16.o sb16_mixer.o $(LIBS)
24
25# install with other drivers
26install: /usr/sbin/sb16_dsp /usr/sbin/sb16_mixer
27/usr/sbin/sb16_dsp: sb16_dsp
28 install -o root -c $? $@
29/usr/sbin/sb16_mixer: sb16_mixer
30 install -o root -c $? $@
31
32# clean up local files
33clean:
34 rm -f *.o *.bak sb16 sb16_dsp sb16_mixer
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.