2005-08-22 13:46:06 +02:00
|
|
|
# Makefile for the Sound Blaster 16 driver (SB16)
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
m = $i/minix
|
|
|
|
b = $i/ibm
|
|
|
|
d = ..
|
|
|
|
|
|
|
|
# programs, flags, etc.
|
|
|
|
CC = exec cc
|
2006-10-30 16:53:38 +01:00
|
|
|
CFLAGS = -I$i $(CPROFILE)
|
2005-08-22 13:46:06 +02:00
|
|
|
LDFLAGS = -i
|
2008-11-19 13:26:10 +01:00
|
|
|
LIBS = -lsys
|
2005-08-22 13:46:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
# build local binary
|
2005-09-16 13:09:08 +02:00
|
|
|
all build: sb16_dsp sb16_mixer
|
|
|
|
sb16_dsp: sb16.o sb16_dsp.o
|
|
|
|
$(CC) -o $@ $(LDFLAGS) sb16.o sb16_dsp.o $(LIBS)
|
|
|
|
sb16_mixer: sb16.o sb16_mixer.o
|
|
|
|
$(CC) -o $@ $(LDFLAGS) sb16.o sb16_mixer.o $(LIBS)
|
2005-08-22 13:46:06 +02:00
|
|
|
|
|
|
|
# install with other drivers
|
2005-09-16 13:09:08 +02:00
|
|
|
install: /usr/sbin/sb16_dsp /usr/sbin/sb16_mixer
|
|
|
|
/usr/sbin/sb16_dsp: sb16_dsp
|
|
|
|
install -o root -c $? $@
|
|
|
|
/usr/sbin/sb16_mixer: sb16_mixer
|
2005-08-22 13:46:06 +02:00
|
|
|
install -o root -c $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
2005-09-16 13:10:11 +02:00
|
|
|
rm -f *.o *.bak sb16 sb16_dsp sb16_mixer
|
2005-08-22 13:46:06 +02:00
|
|
|
|
|
|
|
depend:
|
2007-02-08 17:26:20 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2005-08-22 13:46:06 +02:00
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|