File: Rules1.make

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

$(TOPDIR)/include/sndversions.h: $(SYMFILES)
	@echo updating $(TOPDIR)/include/sndversions.h
ifeq (1,$(newkernel))
	@(echo "#ifndef _LINUX_SNDMODVERSIONS";\
	echo "#define _LINUX_SNDNODVERSIONS";\
	echo "#include <linux/modsetver.h>";\
	cd $(TOPDIR)/include/modules; \
        for f in *.ver; do \
          if [ -f $$f ]; then echo "#include \"modules/$${f}\""; fi; \
        done; \
	echo "#endif") \
	> $(TOPDIR)/include/sndversions.h
else
	@(echo "#ifdef MODVERSIONS";\
	echo "#undef  CONFIG_MODVERSIONS";\
	echo "#define CONFIG_MODVERSIONS";\
	echo "#ifndef _set_ver";\
	echo "#define _set_ver(sym,vers) sym ## _R ## vers";\
	echo "#endif";\
	cd $(TOPDIR)/include/modules; \
        for f in *.ver; do \
          if [ -f $$f ]; then echo "#include \"modules/$${f}\""; fi; \
        done; \
	echo "#undef  CONFIG_MODVERSIONS";\
	echo "#endif") \
	> $(TOPDIR)/include/sndversions.h
endif