minix/drivers/audio/es1371/Makefile
Ben Gras c078ec0331 Basic VM and other minor improvements.
Not complete, probably not fully debugged or optimized.
2008-11-19 12:26:10 +00:00

56 lines
859 B
Makefile
Executable file

# Makefile for the ES1371 sounddriver (SB16)
# directories
u = /usr
i = $u/include
s = $i/sys
m = $i/minix
b = $i/ibm
# programs, flags, etc.
CC = exec cc
CFLAGS = -I$i
LDFLAGS = -i
LIBS = -lsys
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
# build local binary
all: $(PROGRAM_NAME)
$(PROGRAM_NAME): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
audio_fw.o: ../framework/audio_fw.c ../framework/audio_fw.h
$(CC) -c ../framework/audio_fw.c
%.o: %.c
$(CC) $(CFLAGS) -c $<
install: $(INSTALL_BIN)
$(INSTALL_BIN): $(PROGRAM_NAME)
install -o root -S 1024k -c $? $@
# clean up local files
clean:
rm -f $(OBJ) $(PROGRAM_NAME) core
depend:
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
# Include generated dependencies.
include .depend