2007-11-23 12:40:33 +01:00
|
|
|
# Makefile for the ES1371 sounddriver (SB16)
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
m = $i/minix
|
|
|
|
b = $i/ibm
|
|
|
|
gen_drv_dir = ../../gen_drivers/cyclic_dma
|
|
|
|
|
|
|
|
# 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:40:33 +01:00
|
|
|
|
|
|
|
# build local binary
|
|
|
|
all: es1370
|
|
|
|
|
|
|
|
es1370: es1370.o ak4531.o audio_fw.o pci_helper.o
|
|
|
|
$(CC) -o $@ $(LDFLAGS) es1370.o ak4531.o audio_fw.o pci_helper.o $(LIBS)
|
|
|
|
|
|
|
|
audio_fw.o: ../framework/audio_fw.c ../framework/audio_fw.h
|
|
|
|
$(CC) -c ../framework/audio_fw.c
|
|
|
|
|
|
|
|
install: /usr/sbin/es1370
|
|
|
|
/usr/sbin/es1370: es1370
|
|
|
|
install -o root -S 1024k -c $? $@
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
|
|
|
rm -f *.o *.bak core es1370
|
|
|
|
|
|
|
|
depend:
|
2007-12-19 11:51:21 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2007-11-23 12:40:33 +01:00
|
|
|
|
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|