2007-11-23 12:30:50 +01:00
|
|
|
# Makefile for the ES1371 sounddriver (SB16)
|
|
|
|
|
|
|
|
# directories
|
|
|
|
u = /usr
|
|
|
|
i = $u/include
|
|
|
|
s = $i/sys
|
|
|
|
m = $i/minix
|
|
|
|
b = $i/ibm
|
|
|
|
|
|
|
|
# programs, flags, etc.
|
2007-11-23 12:40:33 +01:00
|
|
|
CC = exec cc
|
|
|
|
CFLAGS = -I$i
|
2007-11-23 12:30:50 +01:00
|
|
|
LDFLAGS = -i
|
2007-11-23 12:40:33 +01:00
|
|
|
LIBS = -lsys -lsysutil
|
|
|
|
|
|
|
|
PROGRAM_NAME = es1371
|
|
|
|
INSTALL_BIN = /usr/sbin/$(PROGRAM_NAME)
|
|
|
|
OBJ = es1371.o AC97.o audio_fw.o pci_helper.o wait.o sample_rate_converter.o
|
|
|
|
|
|
|
|
|
2007-11-23 12:30:50 +01:00
|
|
|
|
|
|
|
# build local binary
|
2007-11-23 12:40:33 +01:00
|
|
|
all: $(PROGRAM_NAME)
|
|
|
|
|
|
|
|
|
|
|
|
$(PROGRAM_NAME): $(OBJ)
|
|
|
|
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
2007-11-23 12:30:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
audio_fw.o: ../framework/audio_fw.c ../framework/audio_fw.h
|
|
|
|
$(CC) -c ../framework/audio_fw.c
|
|
|
|
|
2007-11-23 12:40:33 +01:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
|
|
|
|
install: $(INSTALL_BIN)
|
|
|
|
|
|
|
|
|
|
|
|
$(INSTALL_BIN): $(PROGRAM_NAME)
|
2007-11-23 12:30:50 +01:00
|
|
|
install -o root -S 1024k -c $? $@
|
|
|
|
|
|
|
|
|
|
|
|
# clean up local files
|
|
|
|
clean:
|
2007-11-23 12:40:33 +01:00
|
|
|
rm -f $(OBJ) $(PROGRAM_NAME) core
|
|
|
|
|
2007-11-23 12:30:50 +01:00
|
|
|
|
|
|
|
depend:
|
2007-12-19 11:51:21 +01:00
|
|
|
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
|
2007-11-23 12:30:50 +01:00
|
|
|
|
2007-11-23 12:40:33 +01:00
|
|
|
|
2007-11-23 12:30:50 +01:00
|
|
|
# Include generated dependencies.
|
|
|
|
include .depend
|
|
|
|
|