File: Makefile

package info (click to toggle)
alsadriver 0.2.0-pre8-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,808 kB
  • ctags: 6,550
  • sloc: ansic: 43,490; sh: 916; makefile: 759; perl: 54
file content (56 lines) | stat: -rw-r--r-- 1,272 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

#
# Makefile for ALSA low level driver (Linux version)
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@jcu.cz>
#

TOPDIR   = ../..

include  $(TOPDIR)/Makefile.conf

TARGETS  	= $(SNDVERSIONS) \
           	  $(TOPDIR)/modules/snd-mpu401-uart.o \
           	  $(TOPDIR)/modules/snd-opl3.o \
	   	  $(TOPDIR)/modules/snd-ac97-codec.o
SYMFILES 	= mpu401_uart_export.c opl3_export.c ac97_codec_export.c
MPU401   	= mpu401_uart.o mpu401_uart_export.o
OPL3	 	= opl3.o opl3_export.o
AC97_CODEC	= ac97_codec.o ak4531_codec.o ac97_codec_export.o

include  $(TOPDIR)/Rules.make

all: $(TARGETS)
	@echo
	@echo "ALSA lowlevel modules were sucessfully compiled."
	@echo

include  $(TOPDIR)/Rules1.make

$(TOPDIR)/modules/snd-mpu401-uart.o: .depend $(SNDVERSIONS) $(MPU401)
	$(LINKER) -o $@ $(MPU401)

$(TOPDIR)/modules/snd-opl3.o: .depend $(SNDVERSIONS) $(OPL3)
	$(LINKER) -o $@ $(OPL3)

$(TOPDIR)/modules/snd-ac97-codec.o: .depend $(SNDVERSIONS) $(AC97_CODEC)
	$(LINKER) -o $@ $(AC97_CODEC)

gcompile: $(TARGETS)

clean:
	rm -f .depend *.o *.orig *~
	rm -f core $(SNDVERSIONS) $(SYMFILES)

.depend: $(SYMFILES)
	$(CPP) $(COPTS) $(INCLUDE) *.c > .depend

dep:	.depend

dummy:

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif