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 (89 lines) | stat: -rw-r--r-- 2,371 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# Makefile for ALSA low level driver (Linux version)
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@jcu.cz>
#

TOPDIR  = ..

include $(TOPDIR)/Makefile.conf

SUBDIRS = pcm1 mix seq
TARGETS = $(SNDVERSIONS) \
	  $(TOPDIR)/modules/persist.o \
          $(TOPDIR)/modules/snd.o $(TOPDIR)/modules/snd-mixer.o \
          $(TOPDIR)/modules/snd-pcm.o \
          $(TOPDIR)/modules/snd-midi.o $(TOPDIR)/modules/snd-timer.o \
          $(TOPDIR)/modules/snd-synth.o \
	  snd-test.o
SYMFILES= persist_export.c snd_export.c mixer_export.c \
          pcm_export.c midi_export.c timer_export.c synth_export.c
PERSIST = persist.o persist_export.o
OBJECTS = sound.o init.o isadma.o memory.o \
          info.o info_oss.o \
          control.o pci.o misc.o \
          snd_export.o
MIXER   = mixer.o mixer_export.o
PCM	= pcm.o pcm_proc.o ulaw.o pcm_export.o
MIDI    = midi.o rawmidi.o midi_export.o
TIMER	= timer.o timer_export.o
SYNTH   = synth.o synth_export.o
TEST	= test.o

include $(TOPDIR)/Rules.make

all: $(TARGETS)
	@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d; then exit 1; fi; done
	@echo
	@echo "ALSA kernel were sucessfully compiled."
	@echo

include $(TOPDIR)/Rules1.make

$(TOPDIR)/modules/persist.o: .depend $(SNDVERSIONS) $(PERSIST)
	$(LINKER) -o $@ $(PERSIST)

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

$(TOPDIR)/modules/snd-control.o: .depend $(SNDVERSIONS) $(CONTROL)
	$(LINKER) -o $@ $(CONTROL)

$(TOPDIR)/modules/snd-mixer.o: .depend $(SNDVERSIONS) $(MIXER)
	$(LINKER) -o $@ $(MIXER)

$(TOPDIR)/modules/snd-pcm.o: .depend $(SNDVERSIONS) $(PCM)
	$(LINKER) -o $@ $(PCM)

$(TOPDIR)/modules/snd-midi.o: .depend $(SNDVERSIONS) $(MIDI)
	$(LINKER) -o $@ $(MIDI)

$(TOPDIR)/modules/snd-timer.o: .depend $(SNDVERSIONS) $(TIMER)
	$(LINKER) -o $@ $(TIMER)

$(TOPDIR)/modules/snd-synth.o: .depend $(SNDVERSIONS) $(SYNTH)
	$(LINKER) -o $@ $(SYNTH)

snd-test.o: .depend $(SNDVERSIONS) $(TEST)
	$(LINKER) -o $@ $(TEST)

gcompile: $(TARGETS)

clean:
	$(MAKE) -C seq clean
	@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d clean; then exit 1; fi; done
	rm -f .depend *.o *.orig snd.map snd.map? *.old *~
	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