minix/drivers/audio/es1370/Makefile

39 lines
768 B
Makefile

# 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
LIBS = -lsys -lsysutil
# 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:
/usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
# Include generated dependencies.
include .depend