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 (68 lines) | stat: -rw-r--r-- 1,818 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
#
# Makefile for ALSA driver
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@jcu.cz>
#

TOPDIR   = .

ifeq (Makefile.conf,$(wildcard Makefile.conf))
include Makefile.conf
else
dummy:
	@echo
	@echo "Please, run configure script as first..."
	@echo
endif

SUBDIRS  = kernel lowlevel cards detect
CSUBDIRS = include test utils

all: compile

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

map:
	awk "{ if ( length( $$1 ) != 0 ) print $$1 }" snd.map | sort -o snd.map1
	mv -f snd.map1 snd.map

install: compile
	mkdir -p $(INSTROOT)$(moddir)
	rm -f $(INSTROOT)$(moddir)/snd*.o $(INSTROOT)$(moddir)/persist.o
	cp modules/*.o $(INSTROOT)$(moddir)
#	/sbin/depmod -a $(kversion).$(kpatchlevel).$(ksublevel)
	install -m 644 include/asound.h $(INSTROOT)$(prefix)/include/linux
	install -m 644 include/asoundid.h $(INSTROOT)$(prefix)/include/linux
	cat WARNING

clean:
	@for d in $(SUBDIRS); do if ! $(MAKE) -C $$d clean; then exit 1; fi; done
	@for d in $(CSUBDIRS); do if ! $(MAKE) -C $$d clean; then exit 1; fi; done
	rm -f core .depend *.o snd.map* *~
	rm -f `find . -name "out.txt"`
	rm -f `find . -name "*.orig"`
	rm -f $(DEXPORT)/*.ver
	rm -f modules/*.o
	rm -f doc/*~
	rm -f compile

mrproper: clean
	rm -f config.cache config.log config.status Makefile.conf
	rm -f utils/alsa-driver.spec

cvsclean: mrproper
	rm -f configure snddevices include/config.h

pack: mrproper
	chown -R root.root ../alsa-driver
	chmod 755 utils/alsasound
	mv ../alsa-driver ../alsa-driver-$(SND_VERSION)
	tar cvz -C .. -f ../alsa-driver-$(SND_VERSION).tar.gz alsa-driver-$(SND_VERSION)
	mv ../alsa-driver-$(SND_VERSION) ../alsa-driver

$(PEXPORT): $(TOPDIR)/utils/export-symbols.c
	make -C $(TOPDIR)/utils export-symbols