91 |
|
|
92 |
endif |
endif |
93 |
|
|
94 |
|
%.c: %.patch |
95 |
|
@xtmp="$(MODCURDIR)"; \ |
96 |
|
if [ "$${xtmp:0:5}" = "acore" ]; then \ |
97 |
|
xtmp1=$${xtmp:6} ; \ |
98 |
|
if [ ! -z "$${xtmp1}" ]; then xtmp1="$${xtmp1}/" ; fi ; \ |
99 |
|
echo "coping file alsa-kernel/core/$${xtmp1}$@"; \ |
100 |
|
cp $(TOPDIR)/alsa-kernel/core/$${xtmp1}$@ $@; \ |
101 |
|
else \ |
102 |
|
echo "Coping file alsa-kernel/core/$${xtmp}/$@"; \ |
103 |
|
cp $(TOPDIR)/alsa-kernel/$${xtmp}/$@ $@; \ |
104 |
|
fi |
105 |
|
@patch -p0 -i $< |
106 |
|
|
107 |
%.isapnp: %.c |
%.isapnp: %.c |
108 |
$(CPP) -C -D__KERNEL__ $(CFLAGS) $(EXTRA_CFLAGS) -D__isapnp_now__ -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $(CFLAGS_$@) $< | $(TOPDIR)/utils/convert_isapnp_ids > $@ |
$(CPP) -C -D__KERNEL__ $(CFLAGS) $(EXTRA_CFLAGS) -D__isapnp_now__ -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) $(CFLAGS_$@) $< | $(TOPDIR)/utils/convert_isapnp_ids > $@ |
109 |
|
|
146 |
# |
# |
147 |
# This make dependencies quickly |
# This make dependencies quickly |
148 |
# |
# |
149 |
fastdep: $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) update-sndversions |
fastdep: $(patsubst %,_sfdep_%,$(ALL_SUB_DIRS)) update-sndversions $(depend-files) |
150 |
ifneq "$(strip $(depend-files))" "" |
ifneq "$(strip $(depend-files))" "" |
151 |
$(CC) -M -D__KERNEL__ -D__isapnp_now__ $(CFLAGS) $(EXTRA_CFLAGS) $(depend-files) > .depend |
$(CC) -M -D__KERNEL__ -D__isapnp_now__ $(CFLAGS) $(EXTRA_CFLAGS) $(depend-files) > .depend |
152 |
endif |
endif |
317 |
|
|
318 |
.PHONY: clean1 |
.PHONY: clean1 |
319 |
clean1: |
clean1: |
320 |
rm -f .depend *.o *.isapnp |
rm -f .depend *.o *.isapnp $(EXTRA_CLEAN) |
321 |
|
|
322 |
.PHONY: clean |
.PHONY: clean |
323 |
clean: $(patsubst %,_sfclean_%,$(ALL_SUB_DIRS)) clean1 |
clean: $(patsubst %,_sfclean_%,$(ALL_SUB_DIRS)) clean1 |