2007-11-23 12:30:50 +01: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
|
|
|
|
CFLAGS = -I$i
|
|
|
|
LDFLAGS = -i
|
2008-11-19 13:26:10 +01:00
|
|
|
LIBS = -lsys
|
2007-11-23 12:30:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all build: sb16
|
|
|
|
|
|
|
|
sb16: sb16.o mixer.o audio_fw.o
|
|
|
|
$(CC) -o $@ $(LDFLAGS) sb16.o mixer.o audio_fw.o $(LIBS)
|
|
|
|
|
|
|
|
audio_fw.o: ../framework/audio_fw.c ../framework/audio_fw.h
|
|
|
|
$(CC) -c ../framework/audio_fw.c
|
|
|
|
|
|
|
|
# install with other drivers
|
|
|
|
install: /usr/sbin/sb16
|
|
|
|
/usr/sbin/sb16: sb16
|
|
|
|
install -o root -S 512k -c $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.bak sb16
|
|
|
|
|
|
|
|
depend:
|
2007-12-19 11:51:21 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2007-11-23 12:30:50 +01:00
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|